assets/javascript/app.js
// Result timer during post question section
Result timer during post question section
Result timer during post question section
function startQuestionResultTimer() {
        time = timePerQuestionResult;
        timer = setInterval(function () {
            time--;
            if (time === 0) {
                stopTimer();
                if (game.currentQuestionIndex === questions.length) {
                    endGame();
                } else {
                    showQuestion();
                }
            }
            $('#time-remaining').text(time);
        }, secondsToMiliseconds(1));
    }
function startQuestionResultTimer ( ) { time = timePerQuestionResult ; timer = setInterval ( function ( ) { time -- ; if ( time === 0 ) { stopTimer ( ) ; if ( game . currentQuestionIndex === questions . length ) { endGame ( ) ; } else { showQuestion ( ) ; } } $ ( '#time-remaining' ) . text ( time ) ; } , secondsToMiliseconds ( 1 ) ) ; }
Result timer during post question section
Result timer during post question section