/* ------ CASSETTE BEASTS SHRINE HEADER COMPONENT ------ */ document.querySelector(".main-header").innerHTML = ` `; /* ------ CASSETTE BEASTS SHRINE NAVIGATION BAR COMPONENT ------ */ document.querySelector(".navbar").innerHTML = ` `; // Make the navigation bar sticky const header = document.querySelector(".main-header"); const navbar = document.querySelector(".navbar"); window.addEventListener("scroll", e => { const scrollPos = window.scrollY || document.documentElement.scrollTop; const stickyLine = header.scrollHeight - navbar.scrollHeight; if (scrollPos > stickyLine) { navbar.classList.add("sticky-nav"); } else { navbar.classList.remove("sticky-nav"); } }); /* ------ CASSETTE BEASTS SHRINE SIDEBAR COMPONENT ------ */ document.querySelector(".right-sidebar").innerHTML = ` `; /* ------ CASSETTE BEASTS SHRINE FOOTER COMPONENT ------ */ document.querySelector(".main-footer").innerHTML = `

Made with ♥ by Leilukin | Shrine Launched: August 3, 2023

Back to top

`;