Fix aria stuff
parent
fc5c17752a
commit
23bdef0b84
|
@ -751,21 +751,18 @@
|
||||||
<button class="command-tab active"
|
<button class="command-tab active"
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-selected="true"
|
aria-selected="true"
|
||||||
aria-controls="movement-panel"
|
|
||||||
id="movement-tab"
|
id="movement-tab"
|
||||||
data-category="Movement"
|
data-category="Movement"
|
||||||
tabindex="0">Movement</button>
|
tabindex="0">Movement</button>
|
||||||
<button class="command-tab"
|
<button class="command-tab"
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-selected="false"
|
aria-selected="false"
|
||||||
aria-controls="actions-panel"
|
|
||||||
id="actions-tab"
|
id="actions-tab"
|
||||||
data-category="Actions"
|
data-category="Actions"
|
||||||
tabindex="-1">Actions</button>
|
tabindex="-1">Actions</button>
|
||||||
<button class="command-tab"
|
<button class="command-tab"
|
||||||
role="tab"
|
role="tab"
|
||||||
aria-selected="false"
|
aria-selected="false"
|
||||||
aria-controls="system-panel"
|
|
||||||
id="system-tab"
|
id="system-tab"
|
||||||
data-category="System"
|
data-category="System"
|
||||||
tabindex="-1">System</button>
|
tabindex="-1">System</button>
|
||||||
|
|
|
@ -37,12 +37,12 @@ if (localStorage.getItem("save")) {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setState(states.BEFORE_PLAY);
|
setState(states.BEFORE_PLAY);
|
||||||
}
|
|
||||||
|
|
||||||
addButtonEventListener("begin", () => {
|
addButtonEventListener("begin", () => {
|
||||||
setState(states.PLAY_AREA);
|
setState(states.PLAY_AREA);
|
||||||
startGame(true);
|
startGame(true);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function startGame(newGame) {
|
function startGame(newGame) {
|
||||||
const game = new Game(newGame);
|
const game = new Game(newGame);
|
||||||
|
|
Loading…
Reference in New Issue