Skip to content

Commit 0c28ad1

Browse files
committed
replaced getElementByID
1 parent 8eae099 commit 0c28ad1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Sprint-3/alarmclock/alarmclock.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ function pauseAlarm() {
2424

2525
window.onload = setup;
2626

27-
const timeRemainingElement = document.querySelector("#timeRemaining");
28-
const alarmSetElement = document.querySelector("#alarmSet");
29-
const setButtonElement = document.querySelector("#set");
30-
const stopButtonElement = document.querySelector("#stop");
27+
const timeRemainingElement = document.getElementById("timeRemaining");
28+
const alarmSetElement = document.getElementById("alarmSet");
29+
const setButtonElement = document.getElementById("set");
30+
const stopButtonElement = document.getElementById("stop");
3131
const bodyElement = document.querySelector("body");
32-
const alarmSoundElement = document.querySelector("#alarmSound");
32+
const alarmSoundElement = document.getElementById("alarmSound");
3333

3434
let remainingTime;
3535
let intervalID;

0 commit comments

Comments
 (0)