@@ -6,7 +6,7 @@ var outputMinute = document.getElementById("outputMinute");
6
6
var outputSecond = document . getElementById ( "outputSecond" ) ;
7
7
var startBtn = document . getElementById ( "startBtn" ) ;
8
8
var stopBtn = document . getElementById ( "stopBtn" ) ;
9
- var stopWatch ;
9
+ var timer ;
10
10
var outputContainer = document . getElementById ( "outputContainer" ) ;
11
11
12
12
function SetTimerValue ( )
@@ -21,10 +21,12 @@ function StartClock()
21
21
if ( inputHour > 0 || inputMinute > 0 || inputSecond > 0 )
22
22
{
23
23
outputHour . innerHTML = FormatTime ( inputHour ) ;
24
+ outputMinute . innerHTML = FormatTime ( inputMinute ) ;
25
+ outputSecond . innerHTML = FormatTime ( inputSecond ) ;
24
26
outputContainer . style . display = "flex" ;
25
27
startBtn . style . display = "none" ;
26
28
stopBtn . style . display = "inline-block" ;
27
- stopWatch = setInterval ( myClock , 1000 ) ;
29
+ timer = setInterval ( myClock , 1000 ) ;
28
30
}
29
31
}
30
32
@@ -33,7 +35,7 @@ function StopClock()
33
35
startBtn . style . display = "inline-block" ;
34
36
stopBtn . style . display = "none" ;
35
37
36
- clearInterval ( stopWatch ) ;
38
+ clearInterval ( timer ) ;
37
39
}
38
40
39
41
function ResetClock ( )
0 commit comments