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":
|
||||
|
||||
// Reset progress bar
|
||||
// TODO
|
||||
progressBar.animationName = "";
|
||||
progressBar.style.animationName = "none";
|
||||
progressBar.offsetHeight; // Trigger reflow
|
||||
progressBar.animationName = "progress";
|
||||
|
||||
initTimer();
|
||||
@ -193,7 +193,6 @@ function timeUp() {
|
||||
[].slice.call(document.querySelectorAll("main > span")).forEach(function(elem) {
|
||||
elem.classList.toggle("red");
|
||||
});
|
||||
//document.querySelector
|
||||
|
||||
// Blink title
|
||||
if (document.title.indexOf(timesUpStr) === -1) document.title = timesUpStr + document.title;
|
||||
|
Loading…
Reference in New Issue
Block a user