improvements

This commit is contained in:
ben7sys
2024-11-15 12:31:05 +01:00
parent 30019debe6
commit 14a2408791
2 changed files with 17 additions and 4 deletions

View File

@@ -39,6 +39,19 @@ document.addEventListener('DOMContentLoaded', function() {
const header = document.querySelector('header');
if (!header) return;
const pagesToHideLinks = [
'datenschutz.html',
'impressum.html'
];
if (pagesToHideLinks.some(page => window.location.pathname.includes(page))) {
const expertiseLink = document.getElementById('expertise-link');
const contactLink = document.getElementById('contact-link');
if (expertiseLink) expertiseLink.style.display = 'none';
if (contactLink) contactLink.style.display = 'none';
}
const mobileMenuToggle = header.querySelector('.mobile-menu-toggle');
const navMenu = header.querySelector('.nav-menu');