• 20% Rabatt auf ALLES0000000  Code: 24PFNGSTN
function countdown( dateEnd ) { var timer, days, hours, minutes, seconds; dateEnd = new Date( dateEnd ); dateEnd = dateEnd.getTime(); var today = new Date(); Date.prototype.stdTimezoneOffset = function () { var jan = new Date(this.getFullYear(), 0, 1); var jul = new Date(this.getFullYear(), 6, 1); return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset()); } Date.prototype.isDstObserved = function () { return this.getTimezoneOffset() < this.stdTimezoneOffset(); } if ( isNaN( dateEnd ) ) { return; } timer = setInterval( calculate, 1000 ); function calculate() { var dateStart = new Date(); var dateStart = new Date( dateStart.getUTCFullYear(), dateStart.getUTCMonth(), dateStart.getUTCDate(), dateStart.getUTCHours(), dateStart.getUTCMinutes(), dateStart.getUTCSeconds() ); var timeRemaining = parseInt( ( dateEnd - dateStart.getTime() ) / 1000 ); if ( timeRemaining >= 0 ) { days = parseInt( timeRemaining / 86400 ); timeRemaining = ( timeRemaining % 86400 ); if (today.isDstObserved()) { hours = parseInt( timeRemaining / 3600 ); } else { hours = parseInt( (timeRemaining / 3600) - 1 ); } timeRemaining = ( timeRemaining % 3600 ); minutes = parseInt( timeRemaining / 60 ); timeRemaining = ( timeRemaining % 60 ); seconds = parseInt( timeRemaining ); var daysClass = document.getElementsByClassName( "days6647544774a95" ); var hoursClass = document.getElementsByClassName( "hours6647544774a95" ); var minutesClass = document.getElementsByClassName( "minutes6647544774a95" ); var secondsClass = document.getElementsByClassName( "seconds6647544774a95" ); for(var i = 0; i < daysClass.length; i++) { daysClass[i].innerHTML = parseInt( days, 10 ); } for(var i = 0; i < hoursClass.length; i++) { hoursClass[i].innerHTML = ( "0" + hours ).slice( -2 ); } for(var i = 0; i < minutesClass.length; i++) { minutesClass[i].innerHTML = ( "0" + minutes ).slice( -2 ); } for(var i = 0; i < secondsClass.length; i++) { secondsClass[i].innerHTML = ( "0" + seconds ).slice( -2 ); } document.getElementById( "countDown6647544774a95" ).classList.remove("spin"); if ( parseInt( days, 10 ) == 1 ) { for(var i = 0; i < daysClass.length; i++) { daysClass[i].classList.add("one"); } } if ( parseInt( days, 10 ) == 0 ) { for(var i = 0; i < daysClass.length; i++) { daysClass[i].classList.add("hide"); } } } else { document.getElementById( "countDown6647544774a95" ).innerHTML = "Aktion beendet"; } } function display( days, hours, minutes, seconds ) {} } countdown( '2024-05-21T00:00:00+02:00' );
  • 20% Rabatt auf ALLES 0000000  Code: 24PFNGSTN
function countdown( dateEnd ) { var timer, days, hours, minutes, seconds; dateEnd = new Date( dateEnd ); dateEnd = dateEnd.getTime(); var today = new Date(); Date.prototype.stdTimezoneOffset = function () { var jan = new Date(this.getFullYear(), 0, 1); var jul = new Date(this.getFullYear(), 6, 1); return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset()); } Date.prototype.isDstObserved = function () { return this.getTimezoneOffset() < this.stdTimezoneOffset(); } if ( isNaN( dateEnd ) ) { return; } timer = setInterval( calculate, 1000 ); function calculate() { var dateStart = new Date(); var dateStart = new Date( dateStart.getUTCFullYear(), dateStart.getUTCMonth(), dateStart.getUTCDate(), dateStart.getUTCHours(), dateStart.getUTCMinutes(), dateStart.getUTCSeconds() ); var timeRemaining = parseInt( ( dateEnd - dateStart.getTime() ) / 1000 ); if ( timeRemaining >= 0 ) { days = parseInt( timeRemaining / 86400 ); timeRemaining = ( timeRemaining % 86400 ); if (today.isDstObserved()) { hours = parseInt( timeRemaining / 3600 ); } else { hours = parseInt( (timeRemaining / 3600) - 1 ); } timeRemaining = ( timeRemaining % 3600 ); minutes = parseInt( timeRemaining / 60 ); timeRemaining = ( timeRemaining % 60 ); seconds = parseInt( timeRemaining ); var daysClass = document.getElementsByClassName( "days6647544774c99" ); var hoursClass = document.getElementsByClassName( "hours6647544774c99" ); var minutesClass = document.getElementsByClassName( "minutes6647544774c99" ); var secondsClass = document.getElementsByClassName( "seconds6647544774c99" ); for(var i = 0; i < daysClass.length; i++) { daysClass[i].innerHTML = parseInt( days, 10 ); } for(var i = 0; i < hoursClass.length; i++) { hoursClass[i].innerHTML = ( "0" + hours ).slice( -2 ); } for(var i = 0; i < minutesClass.length; i++) { minutesClass[i].innerHTML = ( "0" + minutes ).slice( -2 ); } for(var i = 0; i < secondsClass.length; i++) { secondsClass[i].innerHTML = ( "0" + seconds ).slice( -2 ); } document.getElementById( "countDown6647544774c99" ).classList.remove("spin"); if ( parseInt( days, 10 ) == 1 ) { for(var i = 0; i < daysClass.length; i++) { daysClass[i].classList.add("one"); } } if ( parseInt( days, 10 ) == 0 ) { for(var i = 0; i < daysClass.length; i++) { daysClass[i].classList.add("hide"); } } } else { document.getElementById( "countDown6647544774c99" ).innerHTML = "Aktion beendet"; } } function display( days, hours, minutes, seconds ) {} } countdown( '2024-05-21T00:00:00+02:00' );
Shirts
Filter anzeigen
Filter