Countdown
Inline Countdown
Download Countdown
Start Download
Your Download should start automatically. If it dosen't, click here.
Please Wait! Download will start in .
<!--
OPTIONAL FOR OTHER LANGUAGE - ADD:
data-labels="Years,Months,Weeks,Days,Hours,Minutes,Seconds"
OR FOR SHORT LABELS:
data-labels="years,months,weeks,days,hour,min,sec"
FOR CIRCLE & SQUARED:
.dark (used on sliders - example: page-coming-soon-2.html)
.light (used on sliders)
.theme-style
-->
<!-- Small Countdown -->
<div class="countdown countdown-sm" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Medium Countdown -->
<div class="countdown countdown-md" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Large Countdown -->
<div class="countdown countdown-lg" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Circle Countdown -->
<div class="countdown circle" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Squared Countdown -->
<div class="countdown squared" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Bordered Circle Countdown -->
<div class="countdown bordered" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Bordered Squared Countdown -->
<div class="countdown bordered-squared" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Bordered Theme Style Countdown -->
<div class="countdown bordered-squared theme-style" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Inline Countdown -->
<div class="countdown countdown-inline" data-from="December 31, 2018 15:03:26"><!-- Example Date From: December 31, 2018 15:03:26 --></div>
<!-- Download Countdown -->
<!-- Download Button -->
<a href="http://www.stepofweb.com" class="countdown-download btn btn-success btn-lg"
data-for="download_container"
data-seconds="5">Start Download</a>
<!-- Download Container - see data-for and this container ID -->
<span id="download_container" class="hide">
<span class="download-message hide"><!-- Unable to redirect message -->
Your Download should start automatically. If it dosen't,
<a href="http://www.stepofweb.com" class="alert-link">click here</a>.
</span>
<span class="download-wait"><!-- Wait (see data-seconds) to redirect! -->
<strong>Please Wait!</strong> Download will start in <span class="countdown countdown-inline"></span>.
</span>
</span>
// JAVASCRIPT USED FOR BUTTON DOWNLOAD [assets/js/scripts.js, function _countDown()]
jQuery(".countdown-download").bind("click", function(e){
e.preventDefault();
var _t = jQuery(this),
cd_container = _t.attr('data-for'),
_countdown = jQuery("#"+cd_container+' span.download-wait>.countdown'),
_seconds = parseInt(_t.attr('data-seconds')),
_dataURL = _t.attr('href');
_t.fadeOut(250, function(){
jQuery("#"+cd_container).fadeIn(250, function() {
var currentDate = new Date();
currentDate.setSeconds(currentDate.getSeconds() + _seconds);
_countdown.countdown({
until: currentDate,
format: 'S',
expiryUrl: _dataURL,
onExpiry: function(){
jQuery("#"+cd_container+' span.download-message').removeClass('hide');
jQuery("#"+cd_container+' span.download-wait').addClass('hide');
}
});
});
});
return false;
});