ajout d'un timer et d'un bouton pause pour troll

This commit is contained in:
Axel O 2022-12-05 17:30:03 +01:00
parent b4bc6a8ab0
commit 678a1f6b2b
2 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,8 @@
your experience.
</p>
<![endif]-->
<div id="timer">Time</div>
<button id="Pause" onclick="Pause()">Pause</button>
<canvas id="canvas" width="800" height="400"></canvas>
</body>
<!-- <script type="module" src="./modules/ressources.mjs"></script> -->

View file

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