js/src/utilities/countdown.js
// Checks if we've hit our target, and if so ticks down a second
Checks if we've hit our target, and if so ticks down a second
Checks if we ' ve hit our target and if so ticks down a second
function runTimer() {
        if (targetTime <= window.performance.now()) {
            tickDown();
            if (currentCount === 0) {
                return complete();
            }
        }
        clearCurrent = window.requestAnimationFrame(runTimer);
    }
function runTimer ( ) { if ( targetTime <= window . performance . now ( ) ) { tickDown ( ) ; if ( currentCount === 0 ) { return complete ( ) ; } } clearCurrent = window . requestAnimationFrame ( runTimer ) ; }
Checks if we've hit our target, and if so ticks down a second
Checks if we ' ve hit our target and if so ticks down a second
// break out of the timer once count is zero'd