function togglemenu() { let menu = document.getElementById("menu"); if (menu.style.display !== "none") { menu.style.display = "none"; } else { menu.style.display = "block"; } } window.addEventListener("DOMContentLoaded", function (e) { var footerEl = document.querySelector(".annoying"); document.querySelector(".fn-close-cookies").addEventListener("click", (e) => { e.preventDefault(); var pos = footerEl.getAttribute("position"); if(pos == "left") { footerEl.setAttribute("position", "right") } else { footerEl.setAttribute("position", "left") } }) }) function closemodal(){ let modal = document.getElementById("modal"); if (modal.style.display !== "none") { modal.style.display = "none"; } else { modal.style.display = "block"; } }