ajout d'un timer et d'un bouton pause pour troll
This commit is contained in:
parent
b4bc6a8ab0
commit
678a1f6b2b
2 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,8 @@
|
||||||
your experience.
|
your experience.
|
||||||
</p>
|
</p>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
<div id="timer">Time</div>
|
||||||
|
<button id="Pause" onclick="Pause()">Pause</button>
|
||||||
<canvas id="canvas" width="800" height="400"></canvas>
|
<canvas id="canvas" width="800" height="400"></canvas>
|
||||||
</body>
|
</body>
|
||||||
<!-- <script type="module" src="./modules/ressources.mjs"></script> -->
|
<!-- <script type="module" src="./modules/ressources.mjs"></script> -->
|
||||||
|
|
|
@ -55,7 +55,7 @@ function timer(){
|
||||||
txt.innerHTML= afficher;
|
txt.innerHTML= afficher;
|
||||||
|
|
||||||
time = time <= 0 ? 0 : time -1;
|
time = time <= 0 ? 0 : time -1;
|
||||||
if (time == -1)
|
if (time == )
|
||||||
{
|
{
|
||||||
clearInterval(maVar);
|
clearInterval(maVar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue