We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Devs,
I'm kind of not sure why the callback and count up function not working.. see my example code.
$(document).ready(function () { "use strict"; // Start countdown $("[data-countdown]").each(function () { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, function (event) { $this.html(event.strftime("%D days %H:%M:%S")); }); // Callback and countup function if (event.elapsed) { $this.html(event.strftime("After end: <span>%H:%M:%S</span>")); } else { $this.html(event.strftime("To end: <span>%H:%M:%S</span>")); } }); // End });
Thanks for your attention
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello Devs,
I'm kind of not sure why the callback and count up function not working.. see my example code.
$(document).ready(function () { "use strict"; // Start countdown $("[data-countdown]").each(function () { var $this = $(this), finalDate = $(this).data("countdown"); $this.countdown(finalDate, function (event) { $this.html(event.strftime("%D days %H:%M:%S")); }); // Callback and countup function if (event.elapsed) { $this.html(event.strftime("After end: <span>%H:%M:%S</span>")); } else { $this.html(event.strftime("To end: <span>%H:%M:%S</span>")); } }); // End });
Thanks for your attention
The text was updated successfully, but these errors were encountered: