Skip to content

Commit

Permalink
round decreasing timers to mirror increasing timers
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers committed Apr 20, 2017
1 parent 1eada3b commit 933eba8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/notes/notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,10 @@ <h4 class="label">Notes</h4>
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' );
Expand Down

0 comments on commit 933eba8

Please sign in to comment.