|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
function initTimer() {
|
|
|
|
|
document.querySelector(".timer_txt").innerHTML = timeEnd - timer.getTimeValues().seconds;
|
|
|
|
|
document.querySelector(".progress_bar").style.animationPlayState = 'paused';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function move() {
|
|
|
|
@ -32,6 +33,7 @@ timer.addEventListener('secondsUpdated', function (e) {
|
|
|
|
|
if (timer.getTimeValues().seconds <= timeEnd) {
|
|
|
|
|
move();
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
timeTot = timeTot + timer.getTimeValues().seconds;
|
|
|
|
|
endTime();
|
|
|
|
|
timer.stop();
|
|
|
|
@ -78,4 +80,4 @@ function resetStar() {
|
|
|
|
|
document.querySelector("#star3").style.color = document.body.style.color;
|
|
|
|
|
document.querySelector("#star4").style.color = document.body.style.color;
|
|
|
|
|
document.querySelector("#star5").style.color = document.body.style.color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|