Reset progress animation when restarting
This commit is contained in:
parent
82868a6b22
commit
dc46288e6d
@ -49,8 +49,8 @@ document.getElementById("restart").onclick = function() {
|
|||||||
case "timer":
|
case "timer":
|
||||||
|
|
||||||
// Reset progress bar
|
// Reset progress bar
|
||||||
// TODO
|
progressBar.style.animationName = "none";
|
||||||
progressBar.animationName = "";
|
progressBar.offsetHeight; // Trigger reflow
|
||||||
progressBar.animationName = "progress";
|
progressBar.animationName = "progress";
|
||||||
|
|
||||||
initTimer();
|
initTimer();
|
||||||
@ -193,7 +193,6 @@ function timeUp() {
|
|||||||
[].slice.call(document.querySelectorAll("main > span")).forEach(function(elem) {
|
[].slice.call(document.querySelectorAll("main > span")).forEach(function(elem) {
|
||||||
elem.classList.toggle("red");
|
elem.classList.toggle("red");
|
||||||
});
|
});
|
||||||
//document.querySelector
|
|
||||||
|
|
||||||
// Blink title
|
// Blink title
|
||||||
if (document.title.indexOf(timesUpStr) === -1) document.title = timesUpStr + document.title;
|
if (document.title.indexOf(timesUpStr) === -1) document.title = timesUpStr + document.title;
|
||||||
|
Loading…
Reference in New Issue
Block a user