Open djcontel opened 3 years ago
Hello there,
I have the following working code: $("[data-countdown]").each(function() { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, {elapse: true}) .on('update.countdown', function(event) { if (event.elapsed) { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } else { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } }); });
$("[data-countdown]").each(function() { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, {elapse: true}) .on('update.countdown', function(event) { if (event.elapsed) { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } else { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } }); });
Is there any way to not count non-working hours?
Hello there,
I have the following working code:
$("[data-countdown]").each(function() { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, {elapse: true}) .on('update.countdown', function(event) { if (event.elapsed) { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } else { $this.html(event.strftime("%-D dia(s) %H:%M:%S")); } }); });
Is there any way to not count non-working hours?