Cape Town | 26-ITP-May | Shafiek Walker | Sprint 3 | Alarm Clock App - #1348
Cape Town | 26-ITP-May | Shafiek Walker | Sprint 3 | Alarm Clock App#1348shafiekwalker7861 wants to merge 3 commits into
Conversation
| window.clearInterval(countdownId); | ||
|
|
There was a problem hiding this comment.
A user may not click the "Stop" button first before starting a new count down. Are there any other application states that should also be reset?
There was a problem hiding this comment.
Thank you. I updated setAlarm() to pause and rewind any existing alarm audio before starting a new countdown.
| function updateTimeRemaining() { | ||
| const heading = document.getElementById("timeRemaining"); | ||
|
|
||
| heading.textContent = `Time Remaining: ${formatTime(secondsRemaining)}`; | ||
| } |
There was a problem hiding this comment.
Why not design this function to take secondsRemaining through a parameter?
There was a problem hiding this comment.
Thank you. I updated updateTimeRemaining() to receive the remaining seconds as a parameter, reducing its dependency on global state.
cjyuan
left a comment
There was a problem hiding this comment.
Changes look good.
I think the app could also stop the countdown when the user click the "Stop Alarm" button.
|
Thanks CJ,
Feedback much appreciated
…On Sat, 08 Aug 2026, 12:22 CJ Yuan, ***@***.***> wrote:
***@***.**** commented on this pull request.
Changes look good.
I think the app could also stop the countdown when the user click the
"Stop Alarm" button.
—
Reply to this email directly, view it on GitHub
<#1348?email_source=notifications&email_token=A4CDQ6R5MF7QJ6UNK3L5B6L5I35QFA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIOBYHA3DGMBZHE2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#pullrequestreview-4888630994>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4CDQ6XUQ67ECOUVC3Y2PVL5I35QFAVCNFSNUABFKJSXA33TNF2G64TZHM3TSOJSGQ2TMMRUHNEXG43VMU5TKMBTGEZDQNRQHA42C5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/A4CDQ6W2MAQQ62WJ2HTN3ED5I35QFA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIOBYHA3DGMBZHE2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/A4CDQ6SZZIWJVJBM5WHBZND5I35QFA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIOBYHA3DGMBZHE2KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Learners, PR Template
Self checklist
Changelist