Skip to content
New issue

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

how to add alert after countdown end #33

Open
ngeciscom opened this issue Mar 6, 2018 · 1 comment
Open

how to add alert after countdown end #33

ngeciscom opened this issue Mar 6, 2018 · 1 comment

Comments

@ngeciscom
Copy link

how to add alert after countdown end? seems not work! any example? thanks.

@JayGreentree
Copy link

JayGreentree commented Oct 25, 2022

You can easily edit the onEnd in your js to do something like this:

<script>$(function () {var endDate = "2022-10-25T14:31:15-07:00";$('.js-countdown-timer').countdown({date: endDate,render: function (data) {$('.js-countdown-days').text(data.days);$('.js-countdown-hours').text(data.hours);$('.js-countdown-mins').text(data.min);$('.js-countdown-secs').text(data.sec);},onEnd: function () {$('.countdown002__wrap').html('<h1 class=live>We are live <a href="" class="btn btn-primary">join us online</a></h1>');}});});</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants