Main mod page

This commit is contained in:
Jai A
2020-06-03 20:19:19 -07:00
parent a47634bf49
commit 90373806c0
4 changed files with 60 additions and 12 deletions

View File

@@ -5,4 +5,12 @@ function toggleSection(element) {
currentlySelected.classList.remove("mod-bar-active");
currentlySelected = element;
currentlySelected.classList.add("mod-bar-active");
currentlySelectedDiv.classList.remove("mod-show");
currentlySelectedDiv.classList.add("mod-hide");
currentlySelectedDiv = document.getElementById(element.id.replace("-bar", ""));
currentlySelectedDiv.classList.remove("mod-hide");
currentlySelectedDiv.classList.add("mod-show");
}