Fix aria stuff

master
Talon 2025-07-18 23:10:36 +01:00
parent fc5c17752a
commit 23bdef0b84
2 changed files with 5 additions and 8 deletions

View File

@ -751,21 +751,18 @@
<button class="command-tab active"
role="tab"
aria-selected="true"
aria-controls="movement-panel"
id="movement-tab"
data-category="Movement"
tabindex="0">Movement</button>
<button class="command-tab"
role="tab"
aria-selected="false"
aria-controls="actions-panel"
id="actions-tab"
data-category="Actions"
tabindex="-1">Actions</button>
<button class="command-tab"
role="tab"
aria-selected="false"
aria-controls="system-panel"
id="system-tab"
data-category="System"
tabindex="-1">System</button>

View File

@ -37,13 +37,13 @@ if (localStorage.getItem("save")) {
});
} else {
setState(states.BEFORE_PLAY);
addButtonEventListener("begin", () => {
setState(states.PLAY_AREA);
startGame(true);
});
}
addButtonEventListener("begin", () => {
setState(states.PLAY_AREA);
startGame(true);
});
function startGame(newGame) {
const game = new Game(newGame);