Skip to content

Commit 67ca5df

Browse files
Add event listener to stop the flash
1 parent 4c8eeb9 commit 67ca5df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ function updateDisplay(seconds) {
4242
title.textContent = `Time Remaining: ${mins}:${secs}`;
4343
}
4444

45+
document.getElementById("stop").addEventListener("click", () => {
46+
document.body.classList.remove("flash");
47+
});
4548

4649

4750
// DO NOT EDIT BELOW HERE

0 commit comments

Comments
 (0)