flipdown
flipdown copied to clipboard
.stop() method?
It's a very good project, I found it much easier in use then FlipClock.js which I used before (and it also requires jQuery). But I was surprised when I did not see any sign of a stop() method which would be useful in a big complex projects when you need to stop the counter earlier then the deadline occurs according to some app logic.
Thanks for the feedback. Would this have the effect of pausing the clock, or zeroing it?
Hi! I think the clock should be stopped, then possibly zeroed (but not necessarily) and then completely removed from the parent container. Right now I'm doing this by calling clearInterval with clock's "countdown" field and then removing clock's elements from the DOM:
if(myClock !== false){ clearInterval(myClock.countdown); myClock = false; } var element = document.getElementById('shabbat-clock-outer'); element.innerHTML = '';
These features is must needed, stop(), pause() and play() are basic ones that are needed in a lot of projects