Abtriebswelle für BMW R50/5-R75/5

Abtriebswelle für BMW R50/5-R75/5

Abtriebswelle für BMW R50/5-R75/5

499,00EUR (inkl. 19% MwSt.)

Artikel-Nr.: 1230077

Bild-Nr.: 23a_085


verfügbar
passend für BMW:
 
R50/5, R60/5, R75/5
function countDown() { document.addEventListener('DOMContentLoaded', (event) => { if (document.getElementsByClassName("countdown")) { let countdowns = document.getElementsByClassName("countdown"); for (let i = 0; i < countdowns.length; i++) { /* --- Calculate End Date ---*/ if (!document.getElementsByClassName("countdownEndDate")[i]) { continue; } let countDownDateEnd = document.getElementsByClassName("countdownEndDate")[i].innerHTML; if (countDownDateEnd === "") { console.log("continues enddate"); continue; } let countDownDateDayEnd = countDownDateEnd.split('')[0] + countDownDateEnd.split('')[1]; let countDownDateMonthEnd = countDownDateEnd.split('')[3] + countDownDateEnd.split('')[4]; let countDownDateYearEnd = countDownDateEnd.split('')[6] + countDownDateEnd.split('')[7] + countDownDateEnd.split('')[8] + countDownDateEnd.split('')[9]; if (countDownDateMonthEnd === "01") { countDownDateMonthEnd = "January"; } else if (countDownDateMonthEnd === "02") { countDownDateMonthEnd = "February"; } else if (countDownDateMonthEnd === "03") { countDownDateMonthEnd = "March"; } else if (countDownDateMonthEnd === "04") { countDownDateMonthEnd = "April"; } else if (countDownDateMonthEnd === "05") { countDownDateMonthEnd = "May"; } else if (countDownDateMonthEnd === "06") { countDownDateMonthEnd = "June"; } else if (countDownDateMonthEnd === "07") { countDownDateMontEnd = "July"; } else if (countDownDateMonthEnd === "08") { countDownDateMonthEnd = "August"; } else if (countDownDateMonthEnd === "09") { countDownDateMonthEnd = "September"; } else if (countDownDateMonthEnd === "10") { countDownDateMonthEnd = "October"; } else if (countDownDateMonthEnd === "11") { countDownDateMonthEnd = "November"; } else if (countDownDateMonthEnd === "12") { countDownDateMonthEnd = "December"; } let countDownDateEndTransformed = countDownDateMonthEnd + " " + countDownDateDayEnd + ", " + countDownDateYearEnd + " 23:59:59"; /* --- Calculate Start Date ---*/ if (!document.getElementsByClassName("countdownStartDate")[i]) { continue; } let countDownDateStart = document.getElementsByClassName("countdownStartDate")[i].innerHTML; if (countDownDateStart === "" && countDownDateEnd === "") { console.log("continues startdate"); } else if (countDownDateStart === "" && countDownDateEnd !== "") { console.log("startdate set to january 1 2022"); countDownDateStart = "January 1, 2022 00:00:01"; } let countDownDateDayStart = countDownDateStart.split('')[0] + countDownDateStart.split('')[1]; let countDownDateMonthStart = countDownDateStart.split('')[3] + countDownDateStart.split('')[4]; let countDownDateYearStart = countDownDateStart.split('')[6] + countDownDateStart.split('')[7] + countDownDateStart.split('')[8] + countDownDateStart.split('')[9]; if (countDownDateMonthStart === "01") { countDownDateMonthStart = "January"; } else if (countDownDateMonthStart === "02") { countDownDateMonthStart = "February"; } else if (countDownDateMonthStart === "03") { countDownDateMonthStart = "March"; } else if (countDownDateMonthStart === "04") { countDownDateMonthStart = "April"; } else if (countDownDateMonthStart === "05") { countDownDateMonthStart = "May"; } else if (countDownDateMonthStart === "06") { countDownDateMonthStart = "June"; } else if (countDownDateMonthStart === "07") { countDownDateMonthStart = "July"; } else if (countDownDateMonthStart === "08") { countDownDateMonthStart = "August"; } else if (countDownDateMonthStart === "09") { countDownDateMonthStart = "September"; } else if (countDownDateMonthStart === "10") { countDownDateMonthStart = "October"; } else if (countDownDateMonthStart === "11") { countDownDateMonthStart = "November"; } else if (countDownDateMonthStart === "12") { countDownDateMonthStart = "December"; } let countDownDateStartTransformed = countDownDateMonthStart + " " + countDownDateDayStart + ", " + countDownDateYearStart + " 23:59:59"; let countDownDateStartDate = new Date(countDownDateStartTransformed).getTime(); let countDownDateEndDate = new Date(countDownDateEndTransformed).getTime(); const countdownFunction = setInterval((i) => { const now = new Date().getTime(); const startDistance = now - countDownDateStartDate; const endDistance = countDownDateEndDate - now; const days = Math.floor(endDistance / (1000 * 60 * 60 * 24)); const hours = Math.floor((endDistance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((endDistance % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((endDistance % (1000 * 60)) / 1000); countdowns[i].getElementsByClassName("days")[0].innerHTML = days; countdowns[i].getElementsByClassName("hours")[0].innerHTML = hours; countdowns[i].getElementsByClassName("minutes")[0].innerHTML = minutes; countdowns[i].getElementsByClassName("seconds")[0].innerHTML = seconds; if (startDistance > 0 && endDistance > 0) { countdowns[i].classList.remove("hidden"); } else { clearInterval(countdownFunction); countdowns[i].classList.add("hidden"); } }, 1000); } } }); } countDown();