projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8345760
)
Use Math.floor in 90-timers
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 17 Apr 2015 20:59:34 +0000
(23:59 +0300)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 18 Apr 2015 08:52:00 +0000
(11:52 +0300)
js/90-timers.js
patch
|
blob
|
blame
|
history
diff --git
a/js/90-timers.js
b/js/90-timers.js
index af971be22f1a9ed320249d8c4ed999da291b99f3..d439299ebe6d562f3d47cab5883f4f986589ce34 100644
(file)
--- a/
js/90-timers.js
+++ b/
js/90-timers.js
@@
-13,9
+13,9
@@
function update_timer(timer){
value = Math.max(value * 3 / 10, value * left / total);
timer.innerHTML = Math.floor(value);
} else {
- var hours =
left / 60 / 60
;
+ var hours =
Math.floor(left / 60 / 60)
;
hours = hours < 10 ? '0' + hours : hours;
- var minutes =
left / 60
% 60;
+ var minutes =
Math.floor(left / 60)
% 60;
minutes = minutes < 10 ? '0' + minutes : minutes;
var seconds = left % 60;
seconds = seconds < 10 ? '0' + seconds : seconds;
This page took
0.010639 seconds
and
4
git commands to generate.