diff --git a/projects/pomodoro-timer/index.js b/projects/pomodoro-timer/index.js index 22b4ede..ed6fbc2 100644 --- a/projects/pomodoro-timer/index.js +++ b/projects/pomodoro-timer/index.js @@ -17,6 +17,7 @@ function updateTimer() { } function startTimer() { + startEl.disabled = true; interval = setInterval(() => { timeLeft--; updateTimer(); @@ -29,9 +30,12 @@ function startTimer() { }, 1000); } function stopTimer() { + startEl.disabled = false; clearInterval(interval); + } function resetTimer() { + startEl.disabled = false; clearInterval(interval); timeLeft = 1500; updateTimer();
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: