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

Feature: trigger function when days, hours, minutes turn to 0 #14

Open
bkmorse opened this issue Apr 22, 2019 · 1 comment
Open

Feature: trigger function when days, hours, minutes turn to 0 #14

bkmorse opened this issue Apr 22, 2019 · 1 comment

Comments

@bkmorse
Copy link

bkmorse commented Apr 22, 2019

Or add the option to remove 0 days, 0 hours, 0 minutes automatically.

so:

0 days 0 hours 22 minutes 30 seconds

would be:

22 minutes 30 seconds

@VincentLoy
Copy link
Owner

It should be a great option, if you want to contribute you're welcome 😃

That may be easly made by adding a new option like autoRemove: true. With default to false.
I suggest to add a parametric class to the main countdown element like -autoremove if set to true to easly update the countdown CSS in that case.

Then, most of the work is to implement conditional checks to hide unwanted elements.

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

No branches or pull requests

2 participants