highscore

This commit is contained in:
Adrien MALINGREY 2023-04-29 22:14:38 +02:00
parent 8f96053440
commit 6fc00d50ab

View File

@ -143,10 +143,13 @@
<div class="card"> <div class="card">
<table id="statsTable" class="table mb-0"> <table id="statsTable" class="table mb-0">
<tr><th>Score</th> <td id="scoreCell">0</td> </tr> <tr><th>Score</th> <td id="scoreCell">0</td> </tr>
<tr><th>Meilleur</th> <td id="highScoreCell"> <tr>
<th>Meilleur<br/>score</th>
<td id="highScoreCell">
<script>document.write(Number(localStorage["highScore"]) || 0)</script> <script>document.write(Number(localStorage["highScore"]) || 0)</script>
</td></tr> </td>
<tr><th>Niveau</th> <td id="levelCell">0</td> </tr> </tr>
<tr><th>Niveau</th><td id="levelCell">0</td> </tr>
<tr><th>But</th> <td id="goalCell">0</td> </tr> <tr><th>But</th> <td id="goalCell">0</td> </tr>
<tr><th>Temps</th> <td id="timeCell">00:00</td> </tr> <tr><th>Temps</th> <td id="timeCell">00:00</td> </tr>
</table> </table>