summaryrefslogtreecommitdiffhomepage
path: root/plugin/notes
diff options
context:
space:
mode:
authorHakim El Hattab2013-06-10 16:53:41 -0400
committerHakim El Hattab2013-06-10 16:53:41 -0400
commit7094f44eb9668f43046836936d1a925fc8698e49 (patch)
treed5206ace53b767ed4a9836c300cdfa7d5f7bd041 /plugin/notes
parent8b355eaba0aa1fc51c8284b02f3f9a6f7ab64410 (diff)
parent424f8ee9618803d96a31d363597d0b25f876497f (diff)
merge conflicts w preview & backgrounds
Diffstat (limited to 'plugin/notes')
-rw-r--r--plugin/notes/notes.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 2333878..8af43fb 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -213,9 +213,9 @@
now = new Date();
diff = now.getTime() - start.getTime();
- hours = parseInt( diff / ( 1000 * 60 * 60 ) );
- minutes = parseInt( ( diff / ( 1000 * 60 ) ) % 60 );
- seconds = parseInt( ( diff / 1000 ) % 60 );
+ hours = Math.floor( diff / ( 1000 * 60 * 60 ) );
+ minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
+ seconds = Math.floor( ( diff / 1000 ) % 60 );
clockEl.innerHTML = now.toLocaleTimeString();
hoursEl.innerHTML = zeroPadInteger( hours );