Skip to content

London | 26-ITP-Jan | Angela McLeary | Sprint 3 | Alarm clock app#1134

Open
AngelaMcLeary wants to merge 9 commits intoCodeYourFuture:mainfrom
AngelaMcLeary:Sprint-3/alarm-clock-app
Open

London | 26-ITP-Jan | Angela McLeary | Sprint 3 | Alarm clock app#1134
AngelaMcLeary wants to merge 9 commits intoCodeYourFuture:mainfrom
AngelaMcLeary:Sprint-3/alarm-clock-app

Conversation

@AngelaMcLeary
Copy link
Copy Markdown

@AngelaMcLeary AngelaMcLeary commented Mar 28, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Creating the alarm clock and styling it.

@github-actions

This comment has been minimized.

@AngelaMcLeary AngelaMcLeary added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@AngelaMcLeary AngelaMcLeary added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@AngelaMcLeary AngelaMcLeary added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@AngelaMcLeary AngelaMcLeary added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 28, 2026
@Luro91 Luro91 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 7, 2026
//what ever we input is turned into seconds
let totalSeconds = parseInt(timeRemaining.value);

if (isNaN(totalSeconds) || totalSeconds <= 0) return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice input validation. How could you inform the users that the input was invalid?

let colorInterval;

function setAlarm() {
clearInterval(alarmInterval);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice that you clear the interval here so that the running countdown is stopped

});
});
//not sure that this is helping. The function works without it.
window.setAlarm = setAlarm;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You don't need to attach the function to the window object as the function is already declared in the file and available here in this file

//set the background color transition
document.body.style.transition = "background-color 0.7s ease";
// call the entire page
window.addEventListener("load", function () {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice that you did the extension task with changing colors

@Luro91 Luro91 added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 7, 2026
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 with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants