first commit

This commit is contained in:
2025-12-08 16:54:01 +01:00
commit 66e2a5d403
5 changed files with 598 additions and 0 deletions

15
script.js Normal file
View File

@@ -0,0 +1,15 @@
document.querySelectorAll('nav a').forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const target = this.getAttribute('href');
document.querySelector(target).scrollIntoView({
behavior: 'smooth'
});
});
});
document.querySelector('.scroll-down').addEventListener('click', function() {
document.querySelector('#apropos').scrollIntoView({
behavior: 'smooth'
});
});