Add new percentage bar feature

This commit is contained in:
Cryptkeeper
2017-03-11 18:52:07 -06:00
parent 2c4f3e0865
commit f722f5295a
4 changed files with 127 additions and 3 deletions

View File

@ -196,6 +196,10 @@ function stringToColor(base) {
return '#' + Array(6 - color.length + 1).join('0') + color;
}
function roundToPoint(val, scale) {
return Math.round(val * scale) / scale;
}
function msToTime(timer) {
var milliseconds = timer % 1000;
timer = (timer - milliseconds) / 1000;