aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes/notes.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim@squarespace.com>2013-06-09 16:51:35 +0200
committerHakim El Hattab <hakim@squarespace.com>2013-06-09 16:51:35 +0200
commitf5a379b8a1266859c747e3bb1feb0d768bbf074f (patch)
treec5266ea97bd1beea96d448505696d126fbdab17c /plugin/notes/notes.html
parentaa9e298f3dcccef0342b3c5297b8042d695c60d5 (diff)
parent28d370f2aff34806f3c2d91bff06bf8f72c4b8ac (diff)
downloadperl-software-in-gnu-guix-f5a379b8a1266859c747e3bb1feb0d768bbf074f.tar
perl-software-in-gnu-guix-f5a379b8a1266859c747e3bb1feb0d768bbf074f.tar.gz
merge notes timer rounding fix
Diffstat (limited to 'plugin/notes/notes.html')
-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 );