move the card thingie
parent
11852d1333
commit
cb612d1a3f
@ -1,9 +1,22 @@
|
|||||||
|
|
||||||
function togglemenu(){
|
function togglemenu() {
|
||||||
let menu = document.getElementById("menu");
|
let menu = document.getElementById("menu");
|
||||||
if(menu.style.display !== "none"){
|
if (menu.style.display !== "none") {
|
||||||
menu.style.display = "none";
|
menu.style.display = "none";
|
||||||
} else {
|
} else {
|
||||||
menu.style.display = "block";
|
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")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
Loading…
Reference in New Issue