CHANGE image handling, ADD partials to reuse structure, REFACTOR

This commit is contained in:
Hoernschen 2025-04-17 16:22:33 +02:00
parent 1265491dee
commit 01dcf04b8a
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
36 changed files with 1181 additions and 864 deletions

View file

@ -1,10 +1,10 @@
const scrollToTopButton = document.getElementById('totop');
const scrollToTopListener = () => {
if (window.scrollY > 0) {
scrollToTopButton.className = "totop show";
scrollToTopButton.className = "button fab show";
} else {
scrollToTopButton.className = "totop hide";
scrollToTopButton.className = "button fab hide";
}
};
window.addEventListener("scroll", scrollToTopListener);
window.addEventListener("scroll", scrollToTopListener);