Hi,
I need to know how to set the count down value, i see it is fixed in the js class but i don't know how to give to the script a new value in
each page (dinamically).
Can you show me an exampe about the JS code to use in the pages where i want to set the count down?
Thanks
Hi,
Please open file main.js and search and replace function countdown with:
function countdown() {
$('.candia-countdown').each(function() {
var _time = $(this).data('time');
_time = _time ? _time : '2019/10/10';
console.log(_time);
$(this).countdown(_time, function(event) {
var $this = $(this).html(event.strftime(''
+ '<span><strong>%D</strong> <br> days</span> '
+ '<span><strong>%H</strong> <br> hours</span> '
+ '<span><strong>%M</strong> <br> minutes</span> '
+ '<span><strong>%S</strong> <br> seconds</span>'));
});
});
}
Then, in file html, please add (where you want to add countdown) like example below
Also, the right forum should be https://html.megadrupal.com/forum/site-templates/candia
thank you for the reply, but i don't have access to that forum.
I had some bug during registration, so i sent an email and i got an account which give me access only to this forum, my account wont log in the html section.