Create back and start buttons

This commit is contained in:
2024-05-06 21:00:49 +04:00
parent 63af1c5367
commit c38e4ee160
3 changed files with 55 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
<?= "
<div style='display: flex; justify-content: center; align-items: center;'>
<h1 id='title'>$zone</h1>
<a style='text-decoration: none;' href='/'>
<button id='back-button'>🔙 Retour</button>
</a>
</div>
";
?>
+12
View File
@@ -0,0 +1,12 @@
<?= "
<div style='display: flex; justify-content: center;'>
<button class='game-button' disabled style='margin-right: 2em;' onClick='startGame()' id='start' type='button'>Commencer la partie</button>
<button class='game-button' disabled onClick='restartGame()' id='restart' type='button'>Recommencer</button>
</div>
<div id='chrono'></div>
<div id='score' style='display: flex; justify-content: center;'></div>
<div id='question'></div>
";
?>