intitial
Some checks failed
Build and Deploy Container / build_and_deploy (push) Failing after 33s

This commit is contained in:
Clemens Hering
2025-11-19 21:57:50 +01:00
parent 9490050690
commit 74a6ae33b9
13 changed files with 0 additions and 0 deletions

27
script.js Normal file
View File

@@ -0,0 +1,27 @@
document.addEventListener('DOMContentLoaded', () => {
const mobileToggle = document.querySelector('.mobile-toggle');
const navLinks = document.querySelector('.nav-links');
if (mobileToggle) {
mobileToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
}
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth'
});
// Close mobile menu on click
if (navLinks.classList.contains('active')) {
navLinks.classList.remove('active');
}
}
});
});
});