stop annoying page jumping

master
Aevann 2023-08-02 10:18:00 +03:00
parent e23aa56f92
commit 6820e09a00
1 changed files with 0 additions and 8 deletions

View File

@ -201,14 +201,6 @@ document.addEventListener("click", function (e) {
const toggling = document.querySelector(element.dataset.toggleelement)
const attr = element.dataset.toggleattr;
if (attr == "d-none" && toggling.classList.contains(attr)) {
document.querySelectorAll(".toggled-visible").forEach(i => {
i.classList.add(attr)
i.classList.remove("toggled-visible")
});
toggling.classList.add("toggled-visible")
}
toggling.classList.toggle(attr);
}