let menuCatId=parseInt("485");
Event starts in:
// ------------------------------- // Configuration Variables // ------------------------------- // Set the end date and time for the countdown (YYYY-MM-DD HH:MM:SS format) var endDateStr = "2024-12-19 16:00:00"; // Set the text to display above the countdown timer var countdownText = "XMAS Deals mit bis zu 30% Rabatt nur noch bis zum 31.12.2024!"; // ------------------------------- // Countdown Script // ------------------------------- // Update the countdown text document.getElementById("countdown-text").innerHTML = countdownText; // Parse the end date string into a Date object var countdownDate = new Date(endDateStr.replace(/-/g, '/')).getTime(); // Update the countdown every 1 second var countdownFunction = setInterval(function() { // Get current date and time var now = new Date().getTime(); // Calculate the distance between now and the countdown date var distance = countdownDate - now; // Time calculations for days, hours, minutes, and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); // Format numbers with leading zeros if less than 10 days = days < 10 ? "0" + days : days; hours = hours < 10 ? "0" + hours : hours; minutes = minutes < 10 ? "0" + minutes : minutes; seconds = seconds < 10 ? "0" + seconds : seconds; // Display the result in the respective HTML elements document.getElementById("days").innerHTML = days; document.getElementById("hours").innerHTML = hours; document.getElementById("minutes").innerHTML = minutes; document.getElementById("seconds").innerHTML = seconds; // If the countdown is finished, display a message if (distance < 0) { clearInterval(countdownFunction); document.getElementById("countdown-timer").innerHTML = "XMAS Deals mit bis zu 30% Rabatt nur noch bis zum 31.12.2024!"; } }, 1000); var foo=3;

Balkontür Zweiflüglig

Hersteller