Caricamento template

This commit is contained in:
2025-10-07 21:30:21 +02:00
parent 861769cd69
commit fdc104e8d6
20 changed files with 522 additions and 44 deletions

11
js/script.js Normal file
View File

@@ -0,0 +1,11 @@
function scrollHeader() {
const h = document.getElementById("header");
if (window.scrollY > 0) {
h.classList.add("fixed");
} else {
h.classList.remove("fixed");
}
}
window.addEventListener("scroll", scrollHeader);
window.addEventListener("load", scrollHeader);