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

counter #39

Closed
DomiBonza opened this issue Mar 21, 2014 · 9 comments
Closed

counter #39

DomiBonza opened this issue Mar 21, 2014 · 9 comments
Labels
Milestone

Comments

@DomiBonza
Copy link

Hi, is there a way to make the plugin do a normal count instead of a count down?

@FagnerMartinsBrack
Copy link
Contributor

It seems to be semantically out of scope of this plugin. It would make sense though if the author would change the namespace from jQuery.countdown to jQuery.count

@hilios
Copy link
Owner

hilios commented Mar 24, 2014

@DomiBonza at least the math should work both for all real number group, but I have a conditional that clear the timeout if countdown reachs its end, if the former assumption is true so a simple conditional to not do that would do the job for you.

@FagnerMartinsBrack I think changing the name is not a option for matter of fallback consistency and historical reasons, but we could provide an alias.

@hilios hilios added the 2.0.3 label Mar 24, 2014
@hilios hilios added this to the 2.0.3 milestone Mar 24, 2014
@hilios hilios added the feature label Mar 24, 2014
@DomiBonza
Copy link
Author

Thank you for the explanation :)

@hilios hilios reopened this Mar 24, 2014
@hilios
Copy link
Owner

hilios commented Mar 24, 2014

Hey mate, I think your request could be implement as a feature in the next release!!! I will reopen this issue until is implemented in the master. Tks

@FagnerMartinsBrack
Copy link
Contributor

@hilios I did not meant actually a name change, but an alias as you mentioned (maybe deprecate and use countdown as a property?)

@DomiBonza
Copy link
Author

@hilios It would be awesome :)

@hilios hilios removed the 2.0.3 label May 21, 2014
@hilios hilios removed this from the 2.0.3 milestone May 21, 2014
@hilios
Copy link
Owner

hilios commented Jun 30, 2014

Guys a co-worker did small workaround on my plugin that I think that will be the solution of this issue. Look at PR #52, to take part on the discussion.

@hilios hilios added this to the 2.0.4 milestone Jul 4, 2014
@hilios hilios added the 2.0.4 label Jul 4, 2014
@hilios
Copy link
Owner

hilios commented Jul 24, 2015

Already implemented at master, the example bellow will count 5 sec from now and then start to count up:

var fiveSecAgo = new Date().getTime() + 5000;
$dom.countdown(oneSecAgo, {elapse: true}).on('update.countdown', function(event) {
    if (event.elapsed) {
         event.strftime('%S passed from end');
    } else {
         event.strftime('%S till finish');
    }
});

@hilios hilios closed this as completed Jul 24, 2015
@onskyD
Copy link

onskyD commented Feb 16, 2018

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

No branches or pull requests

4 participants