Inital commit

This commit is contained in:
𝓜𝓪𝓬𝓮™
2026-04-02 11:54:46 +02:00
commit b89887106d
7 changed files with 450 additions and 0 deletions

20
assets/js/main.js Normal file
View File

@@ -0,0 +1,20 @@
document.addEventListener("DOMContentLoaded", () => {
const links = document.querySelectorAll('a[href^="#"]');
links.forEach((link) => {
link.addEventListener("click", (event) => {
const targetId = link.getAttribute("href");
if (!targetId || targetId === "#") {
return;
}
const target = document.querySelector(targetId);
if (!target) {
return;
}
event.preventDefault();
target.scrollIntoView({ behavior: "smooth", block: "start" });
});
});
});