-
-
Notifications
You must be signed in to change notification settings - Fork 93
ITP_London | Maryna Romanova | Module_Data_Groups | Sprint-3 | AlarmClock #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alarm
Shouldn't the alarm clock JS code be referred to your index html to run the functions - you only need one index html page |
function setAlarm() { | ||
let firstReminder = +timeRemaining.innerHTML * 1000; | ||
|
||
if (intervalId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if statement does not seem complete
}, 100); | ||
} | ||
|
||
function pauseAlarm() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the code refer to the button (listener) that makes pauseAlarm to happen?
} | ||
|
||
intervalId = setInterval(() => { | ||
firstReminder -= 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this to be 1000
I tried running your alarmclock.js file in my browser it's still not working. Made a few comments in your code. |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.