Hotline 030 921 092 322 Mo - Fr von 9 bis 16 Uhr
let menuCatId=parseInt("1162");
Event starts in:
00d 00h 00m 00s
// ------------------------------- // Configuration Variables // ------------------------------- // Set the end date and time for the countdown (YYYY-MM-DD HH:MM:SS format) var endDateStr = "2024-11-25 07:00:00"; // Set the text to display above the countdown timer var countdownText = "Goldener Herbst: Jetzt 15% Rabatt! Nur noch "; // ------------------------------- // 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 = "The event has started!"; } }, 1000); var foo=23;
var pimodel="8150"; var picatid=1162;