jquery.counterup icon indicating copy to clipboard operation
jquery.counterup copied to clipboard

Your example code on npmjs.com is incorrect

Open jessedmatlock opened this issue 3 years ago • 0 comments

Hello, First, thanks for the great work on this plugin! Well done. I just wanted to point out a syntax error on a piece of demo code at npmjs.com so others won't copy/paste and then have an error..

The example code is:

$('.counter').counterUp({
    delay: 10,
    time: 1000,
    offset: 70,
    beginAt: 100,
    formatter: function (n) {
      return n.replace(/,/g, '.');
    });   <!-- this has an extra parenthesis and semi-colon
});

But, it should be:

    delay: 10,
    time: 1000,
    offset: 70,
    beginAt: 100,
    formatter: function (n) {
      return n.replace(/,/g, '.');
    }
});

Hope this helps someone starting out and trying out this great plugin. Again, really great work and much appreciate !

jessedmatlock avatar Apr 07 '21 13:04 jessedmatlock