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

Auto Renew startTime +7 days #39

Open
jmmaynard opened this issue Jan 10, 2013 · 0 comments
Open

Auto Renew startTime +7 days #39

jmmaynard opened this issue Jan 10, 2013 · 0 comments

Comments

@jmmaynard
Copy link

Hello!

This is a very nice script! Thank you for sharing!!

I'm hoping you can help me auto renew my startTime after countdown completion. I'd like to add 7 days to the startTime.

eg. countdown would expire on Sunday at 9:15am and renew to the following Sunday at 9:15am.

Here is my code:

$(document).ready(function(){
    var _date = new Date();
    _date.setMonth(0);
    _date.setDate(13);
    _date.setHours(09);
   _date.setMinutes(15);
   _date.setSeconds(0);
    $('#counter').countdown({
      image: '/development/_lib/images/digits.png',
      startTime: _date
    });
  });

Thank you in advance for the help :)

Dev site: http://www.maynardnambiar.com/development/countdown.html

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

No branches or pull requests

1 participant