timeDownCounter().startCountDown();
var daynamicDate = new Date();
daynamicDate.setMonth(daynamicDate.getMonth() + 1);
timeDownCounter({
'countDownIdSelector': 'time-down-counter-2',// Set id for counter, default one is time-down-counter
'countDownDate': daynamicDate.getTime(), // Direct Use like: new Date("Sep 5, 2018 15:37:25").getTime();
}).startCountDown();
// Demo 3 - Run Counter With option
timeDownCounter({
'countDownIdSelector': 'time-down-counter-3',// Set id for counter, default one is time-down-counter
'countDownDate': daynamicDate.getTime(), // Direct Use like: new Date("Sep 5, 2018 15:37:25").getTime();
'countDownResSperator': '-',// Set New Sperator between times
'countDownReturnData': 'from-hours',// Display only hours diff (this case just will hide days, and print hours, minuts, seconds)
'addSpanForResult': true,// Set class for each time group (nest days, hours, minutes, second in spans) its usfall for styling groub
'addSpanForEachNum': true,// Set Class and span for each number (its usfall for sperate counter style
'contDownOver': 'Time is expired, and you can say hello now :P'// Set message when time is expired!
}).startCountDown();
timeDownCounter({
'countDownIdSelector': 'time-down-counter-4',// Set id for counter, default one is time-down-counter
'countDownDate': daynamicDate.getTime(), // Direct Use like: new Date("Sep 5, 2018 15:37:25").getTime();
'countDownResSperator': ' *_^ ',// Set New Sperator between times
'addSpanForResult': true,// Set class for each time group (nest days, hours, minutes, second in spans) its usfall for styling groub
'getTemplateResult': 1 // option to display curent result without its continue work, its usfall if you like to style and seeing item on browser dirctly, by default its 0 (option is 0, 1, 2)
}).startCountDown();
// Run Counter with callback funtion
timeDownCounter({
'countDownIdSelector': 'time-down-counter-5',// Set id for counter, default one is time-down-counter
}, function(){
alert('time-down-counter-5 is called callback function');
}).startCountDown();