Skip to content

Commit ee65ee0

Browse files
Reset background color when setting alarm and stopping alarm
1 parent c3c3993 commit ee65ee0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sprint-3/alarmclock/alarmclock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
let timerInterval = null;
22
function setAlarm() {
3+
document.body.style.backgroundColor = ""; // Resets to the CSS default
34
// 1. Get the input from the user
45
const inputField = document.getElementById("alarmSet");
56
let timeRemaining = parseInt(inputField.value);

0 commit comments

Comments
 (0)