Loading...
Hauptstraße 102
40764 Langenfeld (Rheinland)
Tel.: 02173 - 7 47 07

KontaKt

Danke! Wir haben Ihre Nachricht erhalten ...
Ooops - da ist wohl etwas schief gelaufen ...
KontaKt
Loading...
// Info Banner mit funktionalem Cookie document.addEventListener('DOMContentLoaded', function() { var notificationWrapper = document.querySelector('[info-banner="wrapper"]'); var closeBtn = document.querySelector('[info-banner="close-button"]'); var expiryDays = 1; // Default-Wert if (notificationWrapper) { var expiryDaysAttribute = notificationWrapper.getAttribute('info-banner-expiry-days'); if (expiryDaysAttribute) { expiryDays = parseInt(expiryDaysAttribute); } if (!localStorage.getItem('notification') || isNotificationExpired()) { notificationWrapper.style.display = 'block'; } else { notificationWrapper.style.display = 'none'; } closeBtn.addEventListener('click', function() { localStorage.setItem('notification', 'notification closed'); localStorage.setItem('notificationExpiry', calculateExpiryDate()); notificationWrapper.style.display = 'none'; }); } function isNotificationExpired() { var expiryDate = localStorage.getItem('notificationExpiry'); if (!expiryDate) return false; var currentTime = new Date().getTime(); return currentTime >= parseInt(expiryDate); } function calculateExpiryDate() { var currentDate = new Date(); currentDate.setDate(currentDate.getDate() + expiryDays); return currentDate.getTime().toString(); } });