Theme Files Update

This commit is contained in:
GitHub Action
2023-08-19 07:24:17 +00:00
parent dd0cc8f02d
commit 680dbbd43f
15 changed files with 69 additions and 20 deletions

View File

@ -99,16 +99,4 @@ if (header !== null) {
toggleMobileMenu();
}
}, 250));
}
// Scroll to Top button Toggle
//
const scroll = document.querySelector(".scroll-up"), rootElement = document.documentElement;
function handleScroll() {
if (rootElement.scrollTop / (rootElement.scrollHeight - rootElement.clientHeight) > 0.4) {
scroll.classList.remove("hide");scroll.classList.add("show");
} else {
scroll.classList.add("hide");scroll.classList.remove("show");
}
}
document.addEventListener("scroll", handleScroll);
}