improvements
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user