start game leval at location hash

This commit is contained in:
2020-10-14 20:24:01 +02:00
parent 3fccefc57c
commit 1d1b2b24d2
2 changed files with 11 additions and 13 deletions

View File

@ -106,9 +106,9 @@
<legend>Nouvelle partie</legend>
<div>
<label for="startLevel">Niveau</label>
<input type="number" id="startLevel" min="1" max="15" step="1">
<input type="number" id="startLevelInput" min="1" max="15" step="1">
<div></div>
<button id="startButton" type="button" onclick="newGame()" disabled>JOUER</button>
<button id="startButton" type="button" onclick="newGame(startLevelInput.value)" disabled>JOUER</button>
</div>
</fieldset>
</section>