objectivehtml / FlipClock

http://flipclockjs.com/
MIT License
2.74k stars 954 forks source link

Countdown for 3 digits "Days" needed #360

Closed gsputro closed 6 years ago

gsputro commented 6 years ago

Hi team @equinox7 @brianespinosa ,

As per subject. My purpose is for having 3 digits for number of days because I'd like to setup a countdown for "100 Days" to... "099" Days to.. "098" Days to.. "097" Days to.. ..... "001" Days to..

Currently, I'm only using this syntax below (based on FlipClock homepage):

``

Any help and feedback will be much appreciated.

Thanks

Ellf commented 6 years ago

If I set the future date to more than 99 days away it automatically gives me three digits even when it counts down to two digits.

objectivehtml commented 6 years ago

In the new js-es6 branch this has been refactored. i have some tests to cover this. I haven't tested this scenario specifically, but this should be a lot easier in the upcoming v1 release. The library has been completely rewritten with this scenario in mind.