<script> var days; var hrs; var min; var sec; jQuery(function() { timeToLaunch(); setTimeout(countDownTimer,1001); }); function timeToLaunch(){ var currentDate = new Date(); var diff = (currentDate-targetDate)/1000; var diff = Math.abs(Math.floor(diff)); days = Math.floor(diff/(24*60*60)); sec = diff-days * 24*60*60; hrs = Math.floor(sec/(60*60)); sec = sec-hrs * 60*60; min = Math.floor(sec/(60)); sec = sec-min * 60; } function countDownTimer(){ timeToLaunch(); jQuery( "#days .number" ).text(days); jQuery( "#hours .number" ).text(hrs); jQuery( "#minutes .number" ).text(min); jQuery( "#seconds .number" ).text(sec); setTimeout(countDownTimer,1000); } function numberTransition(id, endPoint, transitionDuration, transitionEase){ jQuery({numberCount: jQuery(id).text()}).animate({numberCount: endPoint}, { duration: transitionDuration, easing:transitionEase, step: function() { jQuery(id).text(Math.floor(this.numberCount)); }, complete: function() { jQuery(id).text(this.numberCount); } }); }; </script>
<style> #main-content { margin: 0 !important; } ul#countdown { width: 100%; margin: 0 auto; padding: 0 !important; color: #fff; font-weight: bold; font-family: Oswald; } ul#countdown li { margin: 0 -5px 0 0; padding: 0; display: inline-block; width: 25%; font-size: 72px; font-size: 6vw; text-align: center; } ul#countdown li .label { color: #fff; font-size: 18px; font-size: 1vw; text-transform: uppercase; } ul#countdown li .number { line-height: 1em; } .et_pb_social_media_follow li a.icon::before { color: #2ea3f2 !important; } h2 { font-family: Merriweather; margin-bottom: 20px; display: inline-block; } </style>
ein wenig Geduld brauchen Sie noch…
<ul id="countdown"> <li id="days"> <div class="number">00</div> <div class="label">Days</div> </li> <li id="hours"> <div class="number">00</div> <div class="label">Hours</div> </li> <li id="minutes"> <div class="number">00</div> <div class="label">Minutes</div> </li> <li id="seconds"> <div class="number">00</div> <div class="label">Seconds</div> </li> </ul>