let menuCatId=parseInt("388");
Jetzt bis zu 30% sparen! Aktion endet in:

00d 00h 00m 00s
// ------------------------------- // Configuration Variables // ------------------------------- // Initial default end date (only used once) var defaultEndDateStr = "2025-03-31 16:00:00"; // Set the countdown message text var countdownText = "Jetzt bis zu 30% sparen! Aktion endet in: "; // Function to parse the given end date function getEndDate(dateStr) { return new Date(dateStr.replace(" ", "T")); } // Function to add a number of hours to a date string function addHoursToDate(dateStr, hours) { let date = new Date(dateStr.replace(" ", "T")); // Ensure compatibility if (isNaN(date.getTime())) { console.error("Invalid date format. Use 'YYYY-MM-DD HH:MM:SS'"); return null; } date.setHours(date.getHours() + hours); // Add hours return date.toISOString().replace("T", " ").slice(0, 19); // Return in the "YYYY-MM-DD HH:MM:SS" format } // Function to update the countdown function updateCountdown() { document.getElementById("countdown-text").innerHTML = countdownText; var countdownDate = getEndDate(defaultEndDateStr).getTime(); var countdownFunction = setInterval(function () { var now = new Date().getTime(); var distance = countdownDate - now; // If countdown is over, extend by 49 hours and restart if (distance < 0) { defaultEndDateStr = addHoursToDate(defaultEndDateStr, 49); countdownDate = getEndDate(defaultEndDateStr).getTime(); distance = countdownDate - now; } 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); document.getElementById("days").innerHTML = days < 10 ? "0" + days : days; document.getElementById("hours").innerHTML = hours < 10 ? "0" + hours : hours; document.getElementById("minutes").innerHTML = minutes < 10 ? "0" + minutes : minutes; document.getElementById("seconds").innerHTML = seconds < 10 ? "0" + seconds : seconds; }, 1000); } // Initialize the countdown updateCountdown();

Hinweise zu Produktabbildungen

Von Ihnen bestellte bzw. nach Ihren speziellen Wünschen konfigurierte Produkte mit Details und Maßen unserer Artikelbeschreibung sind jeweils Vertragsgegenstand. Bilder, Skizzen, o.ä. auf unserer Website dienen zur allgemeinen Veranschaulichung. Produktinformationen in bildlicher Darstellung haben keinen Anspruch auf Vollständigkeit oder Richtigkeit.

Die schematischen Abbildungen der bestellten Fenster und Türen im Zuge des Bestellvorgangs sowie in der Auftragsbestätigung sind nicht maßstabsgetreu. Sie dienen alleine der Veranschaulichung der Öffnungsart bzw. Öffnungsrichtung und stellen insbesondere auch nicht die Positionierung (z.B. Höhe) von vertragsgegenständlichen Griffen dar.