Skip to content

Commit d4458e2

Browse files
deleted broken functions and updated Id pause name
1 parent 7e08577 commit d4458e2

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

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

44-
function stopAlarm() {
45-
clearInterval(intervalId);
46-
intervalId = null;
47-
pauseAlarm();
48-
}
49-
document.body.classList.add("flash");
50-
51-
let isPaused = false;
52-
53-
54-
5544

5645

5746
// DO NOT EDIT BELOW HERE

‎Sprint-3/alarmclock/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1 id="timeRemaining">Time Remaining: 00:00</h1>
1414

1515
<button id="set" type="button">Set Alarm</button>
1616
<button id="stop" type="button">Stop Alarm</button>
17-
<button id="pause-alarm">Pause</button>
17+
<button id="pause">Pause</button>
1818

1919
</div>
2020
<script src="alarmclock.js"></script>

0 commit comments

Comments
 (0)