summaryrefslogtreecommitdiff
path: root/js/setNavBarState.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/setNavBarState.ts')
-rw-r--r--js/setNavBarState.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/js/setNavBarState.ts b/js/setNavBarState.ts
deleted file mode 100644
index cfcc509..0000000
--- a/js/setNavBarState.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-enum NavBarState {
- Visible,
- Hidden,
-}
-
-function setNavBarState(state: NavBarState) {
- console.log("setting navigation bar to `" + NavBarState[state] + "`");
-
- let nav_bar = document.getElementById("navBar")!;
- let hamburger = document.getElementById("hamburger")!;
-
- nav_bar.setAttribute("data-state", NavBarState[state]);
- hamburger.setAttribute("data-navBarState", NavBarState[state]);
-}