tabindex in html

This commit is contained in:
Adrien MALINGREY 2023-07-02 01:55:17 +02:00
parent 1499dddb10
commit 1f33ea3aa6
2 changed files with 1 additions and 2 deletions

1
app.js
View File

@ -1058,7 +1058,6 @@ let game = {
music.pause()
document.onkeydown = null
pauseSpan.tabIndex = 1
pauseSpan.onfocus = game.resume
pauseSpan.className = "pause"
},

View File

@ -30,7 +30,7 @@
</div>
</div>
<span id="messagesSpan"></span>
<span id="pauseSpan">PAUSE</span>
<span id="pauseSpan" tabindex="1">PAUSE</span>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
<script type="module" src="app.js"></script>
</body>