Reset progress animation when restarting

This commit is contained in:
Reimar 2025-08-09 12:43:47 +02:00
parent 82868a6b22
commit dc46288e6d

View File

@ -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;