aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/notes')
-rw-r--r--plugin/notes/notes.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 15bca19..34f6073 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -464,9 +464,10 @@
secondsEl = timeEl.querySelector( '.seconds-value' );
function _displayTime( hrEl, minEl, secEl, time) {
- var hours = Math.floor( time / ( 1000 * 60 * 60 ) );
- var minutes = Math.floor( ( time / ( 1000 * 60 ) ) % 60 );
- var seconds = Math.floor( ( time / 1000 ) % 60 );
+ time = Math.round(time / 1000);
+ var seconds = time % 60;
+ var minutes = ( time / 60 ) % 60 ;
+ var hours = time / ( 60 * 60 ) ;
hrEl.innerHTML = zeroPadInteger( hours );
if (hours == 0) {
hrEl.classList.add( 'mute' );