We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6799a86 commit fbb165fCopy full SHA for fbb165f
Sprint-3/alarmclock/alarmclock.js
@@ -2,7 +2,7 @@ let intervalId;
2
let isPaused;
3
let remainingSeconds = 0;
4
function setAlarm() {
5
- isPaused = false;
+
6
const pauseButton = document.getElementById("pause-button");
7
pauseButton.textContent = "Pause";
8
pauseButton.addEventListener("click", pauseCountDown);
@@ -62,6 +62,7 @@ function pauseCountDown(e) {
62
}
63
64
function cleanInitialState() {
65
+ isPaused = false;
66
clearInterval(intervalId);
67
document.body.classList.remove("finish-countdown");
68
updateDisplayedTime(0)
0 commit comments