mckamey / countdownjs

A simple JavaScript API for producing an accurate, intuitive description of the timespan between two Date instances.
http://countdownjs.org
MIT License
496 stars 95 forks source link

is:issue is:open How to use the end date/time callback #34

Closed codyng closed 4 years ago

codyng commented 5 years ago

The api spec from the doc is: var timespan = countdown(start|callback, end|callback, units, max, digits);

If I specify the end callback function, there is javascript error or can't be compiled. How to use the "end event callback" indeed??

I would like to stop the countdown once it reaches the date or time. Many thanks,

mckamey commented 4 years ago

Please show some example code. If there is a compilation error that is likely because of a syntax error in your code. You can reopen if this is still an issue.