You've already forked AstralRinth
forked from didirus/AstralRinth
Static content serving from non-root routes
This commit is contained in:
8
static/js/mod.js
Normal file
8
static/js/mod.js
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user