File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11
22
3- // function setAlarm() {}
3+
44
55let timeLeft = 0 ;
66let timer = null ;
77let flashing = null ;
88
99// DOM references
1010window . addEventListener ( "DOMContentLoaded" , ( ) => {
11- // const display = document.getElementById("timeRemaining");
11+
1212const setButton = document . getElementById ( "set" ) ;
1313const stopButton = document . getElementById ( "stop" ) ;
1414
1515// Event listeners
16- // if (setButton) setButton.addEventListener("click", () => playAlarm());
16+
1717if ( stopButton ) stopButton . addEventListener ( "click" , stopAlarm ) ;
1818
1919// Show 00:00 on load
@@ -86,7 +86,6 @@ function startAlarm() {
8686}
8787
8888function stopAlarm ( ) {
89- if ( typeof pauseAlarm === "function" ) pauseAlarm ( ) ;
9089
9190 clearInterval ( flashing ) ;
9291 flashing = null ;
You can’t perform that action at this time.
0 commit comments