Skip to content

Instantly share code, notes, and snippets.

View bbq-all-stars's full-sized avatar
🐱
Cats can be either liquid or solid

Shun bbq-all-stars

🐱
Cats can be either liquid or solid
View GitHub Profile
@bbq-all-stars
bbq-all-stars / cal.js
Last active February 1, 2018 02:56
ネクストIC 時間集計用Bookmaklet
var allSum = 0;
var dt = new Date();
var curYYYYMMDD = ( dt.getFullYear() + ("0"+(dt.getMonth() + 1)).slice(-2) + ("0"+dt.getDate()).slice(-2) ) * 1;
var selectedYYYYMM = $('#year_month').val() * 100, sumCell;
//丸め処理(15分)
var doRound = function(v, floor = true, step = 15){
return (floor ? Math.floor : Math.ceil)(v / step) * step;
};