blob: 329a223761f0292813cdfd05bfb956c869eabd93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/// <reference path="setNavBarState.ts" />
function toggleNavBar() {
let nav_bar = document.getElementById("navBar")!;
let state = NavBarState[nav_bar?.getAttribute("data-state")!];
if (state == NavBarState.Visible) {
state = NavBarState.Hidden;
} else if (state == NavBarState.Hidden) {
state = NavBarState.Visible;
};
setNavBarState(state);
}
|