Öltankdeckel (mit Schnellverschluss) passend für Stihl MS261 Motorsäge

Artikelnummer: 6461032

var holidays = new Set(); document.addEventListener("DOMContentLoaded", function() { var countdownContainer = document.getElementById("countdown-container"); fetchHolidays() .then(function() { countdownContainer.style.display = "flex"; updateCountdown(); setInterval(updateCountdown, 1000); }) .catch(function(error) { console.error("Fehler beim Laden der Feiertage:", error); }); }); function fetchHolidays() { var apiUrl = "https://feiertage-api.de/api/?jahr=" + new Date().getFullYear() + "&nur_land=NW"; return fetch(apiUrl) .then(function(response) { if (!response.ok) { throw new Error("Feiertage konnten nicht geladen werden"); } return response.json(); }) .then(function(data) { holidays.clear(); Object.values(data).forEach(function(h) { holidays.add(h.datum); }); console.log('feiertage', holidays); }); } function getNextBusinessDay(date) { do { date.setDate(date.getDate() + 1); } while (date.getDay() === 6 || date.getDay() === 0 || holidays.has(date.toISOString().split('T')[0])); return date; } function runTest() { const testDate = document.getElementById("test-date").value; if (!testDate) { alert("Bitte ein Testdatum auswählen!"); return; } updateCountdown(testDate); } function updateCountdown(customDate) { var countdownText = document.getElementById("countdown-text"); if (!countdownText) return; var now = customDate ? new Date(customDate) : new Date(); var bestellSchluss = new Date(now); bestellSchluss.setHours(15, 0, 0, 0); if (now.getDay() === 6 || now.getDay() === 0 || holidays.has(now.toISOString().split('T')[0])) { bestellSchluss = getNextBusinessDay(bestellSchluss); } else if (now >= bestellSchluss) { bestellSchluss = getNextBusinessDay(bestellSchluss); } var versandTag = new Date(bestellSchluss); if (now >= bestellSchluss) { versandTag = getNextBusinessDay(versandTag); } var diff = bestellSchluss - now; var hours = Math.floor(diff / (1000 * 60 * 60)); var minutes = Math.floor((diff / (1000 * 60)) % 60); var seconds = Math.floor((diff / 1000) % 60); document.getElementById("hours").textContent = hours.toString().padStart(2, '0'); document.getElementById("minutes").textContent = minutes.toString().padStart(2, '0'); document.getElementById("seconds").textContent = seconds.toString().padStart(2, '0'); var today = new Date().toDateString(); var bestellTagHeute = bestellSchluss.toDateString() === today; var versandTagHeute = versandTag.toDateString() === today; var bestellTagName = bestellTagHeute ? "heute" : bestellSchluss.toLocaleDateString("de-DE", { weekday: "long" }); var versandTagName = versandTagHeute ? "noch heute" : "am " + versandTag.toLocaleDateString("de-DE", { weekday: "long" }); var newText = "Bestellen Sie Ihre Auftrag bis " + bestellTagName + ",\n 15:00 Uhr " + "damit es " + versandTagName + " verschickt wird."; if (countdownText.innerText !== newText) { countdownText.innerText = newText; } }

1 Monat Rückgaberecht

Öltankdeckel Ausführung mit Schnellverschluss kompatibel mit Stihl MS261 Motorsäge

Achten Sie auf die Ausführung an Ihrem Modell. Es passt entweder nur die geschraubte Version oder die Ausführung mit Schnellverschluss!

Herstellerinformationen

MA-Versand GmbH

In der Laach- 1-3

53925 Kall

info@ma-versand.de