Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarynaRomashca
Copy link

@MarynaRomashca MarynaRomashca commented Apr 17, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link
Author

@MarynaRomashca MarynaRomashca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alarm

@MarynaRomashca MarynaRomashca changed the title AlarmClock - Project | Maryna Romanova ITP_London | Maryna Romanova | Module_Data_Groups | Sprint-3 | AlarmClock Apr 17, 2025
@MarynaRomashca MarynaRomashca added the Needs Review Participant to add when requesting review label Apr 17, 2025
@MarynaRomashca MarynaRomashca mentioned this pull request Apr 17, 2025
5 tasks
@fearcyf
Copy link

fearcyf commented Apr 17, 2025

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) {
Copy link

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() {
Copy link

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;
Copy link

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

@fearcyf
Copy link

fearcyf commented Apr 17, 2025

I tried running your alarmclock.js file in my browser it's still not working. Made a few comments in your code.

@fearcyf fearcyf added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Participant to add when requesting review labels Apr 17, 2025
@fearcyf fearcyf added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants