File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- function setAlarm ( ) { }
1+ function setAlarm ( ) {
2+ timeRemaining = document . getElementById ( "timeRemaining" )
3+ alarmSet = document . getElementById ( "alarmSet" ) . value
24
5+
6+
7+
8+
9+ timeRemaining . textContent = `Time Remaining: ${ remainingMinutes } :${ remainingSeconds } `
10+ }
11+
12+ function countdown ( time ) {
13+ setInterval ( ( ) => {
14+
15+ } , 1000 )
16+ }
17+
18+ function convertTime ( timeSeconds ) {
19+ if ( timeSeconds > 5999 ) { return [ 99 , 59 ] } ;
20+ const seconds = timeSeconds % 60 ;
21+ const minutes = ( timeSeconds - seconds ) / 60 ;
22+ console . log ( [ minutes , seconds ] )
23+ return [ minutes , seconds ] ;
24+ }
25+
26+ convertTime ( 5000000 )
27+ convertTime ( 50 )
28+ convertTime ( 500 )
29+ convertTime ( 5000000 )
30+
31+ /*
332// DO NOT EDIT BELOW HERE
433
534var audio = new Audio("alarmsound.mp3");
@@ -23,3 +52,4 @@ function pauseAlarm() {
2352}
2453
2554window.onload = setup;
55+ */
You can’t perform that action at this time.
0 commit comments