Link to home
Start Free TrialLog in
Avatar of Martin Berisso
Martin Berisso

asked on

FlipClock.js: looping a countdown, previous answer is not working 100%

So, this is pretty much the question, and the answer (probably working then)
https://www.experts-exchange.com/questions/28681664/Flipclock-js-How-to-restart-countdown-timer-when-it-reaches-0.html

It seems that now the code should look like:
clock = $('.clock').FlipClock(3, { 
	clockFace: 'MinuteCounter',
	countdown: true,
	callbacks: {
		stop: 	function(){
					clock.setTime(60*60)
					clock.start();
				}
	}
});

Open in new window


but the output looks like this:

00:01
59:59
00:00
59:58
59:57
..and so on.
countdown-to-christmas---mins-and-s.html
ASKER CERTIFIED SOLUTION
Avatar of sajayj2009
sajayj2009

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Martin Berisso
Martin Berisso

ASKER

it does work! thanks!

only its just a tad weird, as it goes from 00.01 to 60.00 (not 00.00), but i guess its the best solution without editing the face itself