Static content serving from non-root routes

This commit is contained in:
Jai A
2020-06-02 20:59:20 -07:00
parent e03e58323b
commit a47634bf49
10 changed files with 102 additions and 76 deletions

8
static/js/mod.js Normal file
View File

@@ -0,0 +1,8 @@
let currentlySelected = document.getElementById("description-bar");
let currentlySelectedDiv = document.getElementById("description");
function toggleSection(element) {
currentlySelected.classList.remove("mod-bar-active");
currentlySelected = element;
currentlySelected.classList.add("mod-bar-active");
}