5

Guess which code-monkey is too inept to make changes in an existing javascript library?

Me.

Was trying to figure out how to add trailing zeroes on odometer.js but then I realized I can't do this (especially not on such a short timeframe), but the client absolutely wants these rolling numbers and my custom-made counting up animation isn't cutting it.

Comments
  • 0
    I get using a lib for a visual representation, but counter ? LOL.

    It’s a 10 min task in any language. Make a class. Make int counter, make a “ToFormatted()” string method (Which should take max number of digits)

    Apply text padding. Done.
  • 0
    @NoToJavaScript Did you take a gander at odometer? Probably not. As I said, I had my own implementation, it did count up but odometer has this "rolling number" animation they so desperately wanted. It works nicely for its intended purpose, but whenever it ends on a zero it deletes it.
Add Comment