Reputation: 2449
I have a jQuery count down timer which have to count from 30:00 minutes to 00:00. But showing and stucked at 29:59 Here is my code:
var now = new Date();
var newDateObj = new Date(now.getTime() + 30 * 60 * 1000)
$("#countdowntimer").countdown({
date: newDateObj.toGMTString(), //Counting TO a date
htmlTemplate: "%{m}:%{s}",
onComplete: function (event) {
$(this).html("Completed");
},
leadingZero: true
});
PS: I am using jquery.jcountdown1.3.js
plug-in
What's issue here?
Upvotes: 0
Views: 635
Reputation: 3252
I've created a jsbin for you using keith-wood countdown. It can do what you want it to do, but the api is slightly different.
Let me know if you have any more queries
Upvotes: 1
Reputation: 1013
your code seems to be working fine if you use the following countdown plugin-version: https://github.com/tomgrohl/jQuery-plugins/raw/f0040f6e0c9942abac22590eccfa6f2897a61abf/countdown/script/jquery.jcountdown1.3.min.js
Tested with firefox....
Upvotes: 0