round decreasing timers to mirror increasing timers
This commit is contained in:
parent
1eada3b360
commit
933eba8789
@ -464,9 +464,10 @@
|
|||||||
secondsEl = timeEl.querySelector( '.seconds-value' );
|
secondsEl = timeEl.querySelector( '.seconds-value' );
|
||||||
|
|
||||||
function _displayTime( hrEl, minEl, secEl, time) {
|
function _displayTime( hrEl, minEl, secEl, time) {
|
||||||
var hours = Math.floor( time / ( 1000 * 60 * 60 ) );
|
time = Math.round(time / 1000);
|
||||||
var minutes = Math.floor( ( time / ( 1000 * 60 ) ) % 60 );
|
var seconds = time % 60;
|
||||||
var seconds = Math.floor( ( time / 1000 ) % 60 );
|
var minutes = ( time / 60 ) % 60 ;
|
||||||
|
var hours = time / ( 60 * 60 ) ;
|
||||||
hrEl.innerHTML = zeroPadInteger( hours );
|
hrEl.innerHTML = zeroPadInteger( hours );
|
||||||
if (hours == 0) {
|
if (hours == 0) {
|
||||||
hrEl.classList.add( 'mute' );
|
hrEl.classList.add( 'mute' );
|
||||||
|
Loading…
Reference in New Issue
Block a user