How many hours left before the event.
Hours countdown in HH:MM:SS
format.
formatDelimiter
(string) default value is:
this is forstring mode
timer elements delimiterendAt
(number) timestamp to end promo date, defaultnull
, you can set this settings viadata-end-at
attribute,hoursSelector
(string) css selector for hours blockminutesSelector
(string) css selector for minutes blocksecondsSelector
(string) css selector for seconds blockisString
(boolean) set modestring mode
orspan mode
iffalse
startThreshold
(number) this is threshold of the starting countdown, if we have 30 hour to the end event andthreshold
set to 20 then countdown staring when event start in 20 hours
in html:
<!-- For span mode -->
<div class="timer">
<span class="hours"></span>
<span class="minutes"></span>
<span class="seconds"></span>
</div>
<!-- For string mode -->
<div class="timer" data-end-at="2015-12-31 23:59:59"></div>
in js:
$('.timer').promoTimer({
endAt: Date.now() + 100000,
startThreshold: 24 * 3600 // start when left less then 24 hours
});