Compare commits

..

3 commits

2 changed files with 3 additions and 1 deletions

View file

@ -29,6 +29,8 @@
======= =======
<div id="timer">Time</div> <div id="timer">Time</div>
<button id="Pause" onclick="Pause()">Pause</button> <button id="Pause" onclick="Pause()">Pause</button>
<br>
<div></div>
<canvas id="canvas" width="800" height="400"></canvas> <canvas id="canvas" width="800" height="400"></canvas>
>>>>>>> 380cebd36dc4e3a1f3af185d1a7e3f0adb3e04d1 >>>>>>> 380cebd36dc4e3a1f3af185d1a7e3f0adb3e04d1
<div class="to-center"> <div class="to-center">

View file

@ -61,7 +61,7 @@ function timer(){
txt.innerHTML= afficher; txt.innerHTML= afficher;
time = time <= 0 ? 0 : time -1; time = time <= 0 ? 0 : time -1;
if (time == ) if (time == 0)
{ {
clearInterval(maVar); clearInterval(maVar);
} }