let menuCatId=parseInt("1312");
Silvester-Kracher: -40% auf alle Fenster & Türen! Aktion endet in
00d 00h 00m 00s
document.addEventListener("DOMContentLoaded", function () { // --- Hide banner only on the specific page --- if (window.location.pathname.includes('/inhalte/unternehmen/partner-werden')) { const wrapper = document.getElementById('countdown-wrapper'); if (wrapper) { wrapper.style.display = 'none'; } return; // Stop further execution if hidden } // --- Countdown configuration --- const countdownDate = new Date("2026-01-01T23:59:00").getTime(); const countdownFunction = setInterval(function () { const now = new Date().getTime(); const distance = countdownDate - now; if (distance <= 0) { clearInterval(countdownFunction); document.getElementById("countdown-banner").innerHTML = `
Silvester-Kracher: -40% auf alle Fenster & Türen!
`; return; } const days = String(Math.floor(distance / (1000 * 60 * 60 * 24))).padStart(2, '0'); const hours = String(Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))).padStart(2, '0'); const minutes = String(Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60))).padStart(2, '0'); const seconds = String(Math.floor((distance % (1000 * 60)) / 1000)).padStart(2, '0'); document.getElementById("days").textContent = days; document.getElementById("hours").textContent = hours; document.getElementById("minutes").textContent = minutes; document.getElementById("seconds").textContent = seconds; }, 1000); });
document.addEventListener("DOMContentLoaded", function (event) { function GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } } var model = GetURLParameter('model'); if(!model || 'undefined'===model){ model="-"; } window.setTimeout(function(){ $('#kontaktframe').append('') },1000); });