Sets an element to show the time remaining until a given instant.
Expects HTML like:
<div></div>
Provide inline configuration like:
<div data-countdown="name: 'value', ..."></div>
Element
$.countdown
labels
labels1
until
since
null
Build your own layout for the countdown.
Indicate substitution points with '{desc}' for the description, '{sep}' for the time separator, '{pv}' where p is 'y' for years, 'o' for months, 'w' for weeks, 'd' for days, 'h' for hours, 'm' for minutes, or 's' for seconds and v is 'n' for the period value, 'nn' for the period value with a minimum of two digits, 'nnn' for the period value with a minimum of three digits, or 'l' for the period label (long or short form depending on the compact setting), or '{pd}' where p is as above and d is '1' for the units digit, '10' for the tens digit, '100' for the hundreds digit, or '1000' for the thousands digit.
If you need to exclude entire sections when the period value is zero and you have specified the period as optional, surround these sections with '{p<}' and '{p>}', where p is the same as above.
Your layout can just be simple text, or can contain HTML markup as well.
true
false
onExpiry
this
number[7]
format
onTick
labelsn
year
Date