Squashed 'themes/codex/' content from commit da2d16a

git-subtree-dir: themes/codex
git-subtree-split: da2d16a4f95fc37e71548dfc139d51e22ebb09bd
This commit is contained in:
2020-12-11 02:43:08 +05:30
commit bfb1829a86
77 changed files with 3137 additions and 0 deletions

19
assets/js/index.js Normal file
View File

@@ -0,0 +1,19 @@
/*
* Handles mobile nav
*/
function toggleMobileNavState() {
const body = document.querySelector("body");
body.classList.toggle("nav--active");
}
/*
* Initializes burger functionality
*/
function initBurger() {
const burger = document.querySelector(".burger");
burger.addEventListener("click", toggleMobileNavState);
}
initBurger();