Added website

This commit is contained in:
fuomag9
2025-11-15 11:07:33 +01:00
parent d071fbf90e
commit ffd7ded175
7 changed files with 473 additions and 0 deletions

22
docs/scripts.js Normal file
View File

@@ -0,0 +1,22 @@
const yearEl = document.getElementById('year');
if (yearEl) {
yearEl.textContent = new Date().getFullYear();
}
const navLinks = document.querySelectorAll('a[href^="#"]');
navLinks.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' });
});
});