We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6cd0fd commit 4bcc01aCopy full SHA for 4bcc01a
Sprint-3/alarmclock/alarmclock.js
@@ -7,6 +7,7 @@ const timeRemaining = document.getElementById("timeRemaining");
7
function setAlarm() {
8
// gets the value of the input field and stores it in a variable
9
let timeInSeconds = document.getElementById("alarmSet").value;
10
+ botton.disabled = true;
11
12
let clock = setInterval(() => {
13
function pad(num) {
@@ -26,6 +27,7 @@ function setAlarm() {
26
27
if (timeInSeconds == 0) {
28
clearInterval(clock);
29
playAlarm();
30
+ botton.disabled = false;
31
}
32
timeRemaining.innerHTML =
33
"time remaining " + formatTimeDisplay(timeInSeconds);
0 commit comments