document.addEventListener("DOMContentLoaded", function() { setDarkMode() var coll = document.getElementsByClassName("collapsible") for (let i = 0; i < coll.length; i++) { coll[i].addEventListener("click", function() { this.classList.toggle("active") var content = this.nextElementSibling if (content.style.display === "block") { content.style.display = "none" } else { content.style.display = "block" } }) } }) function setCookie(cname, cvalue, exdays) { document.cookie = cname + "=" + cvalue + ";path=/" } function getCookie(cname) { let name = cname + "=" let decodedCookie = decodeURIComponent(document.cookie) let ca = decodedCookie.split(';') for(let i = 0; i