Skip to content

London | ITP-May-2025 | Hibo Sharif | Module-Data-Groups | Alarm clock #584

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

hibosharif202504
Copy link

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 REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

I have implemented changes to the alarmclock.js file to update the setup of the alarm. I have also made changes to the CSS style and the index.html files to add new features to the alarm clock app.

  • I have added a pause button to the alarm.
  • Flashlight when the alarm goes off.
  • The background colour flashes with a different colour from the background.

Questions

Ask any questions you have for your reviewer.

…background, flashing effect and pause button.
@hibosharif202504 hibosharif202504 added the Needs Review Participant to add when requesting review label Jul 11, 2025
@MorganDavid MorganDavid added Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review labels Jul 12, 2025
@MorganDavid
Copy link

Looks good to me! well done!

Comment on lines 58 to +62
function pauseAlarm() {
audio.pause();
document.body.classList.remove("flash");
}

Copy link

@MorganDavid MorganDavid Jul 12, 2025

Choose a reason for hiding this comment

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

Would this function be better called stopAlarm?

Choose a reason for hiding this comment

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

Ideally, we should also clear all the timer variables when we stop the alarm, so they're ready for next time, with clearInterval and timeRemaining = 0

Copy link
Author

Choose a reason for hiding this comment

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

Hi @MorganDavid ,

Thank you for the review. I will make the changes to the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants