Fix aria stuff
parent
fc5c17752a
commit
23bdef0b84
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue