Sorry for poor title.
I basically want to start a countdown (5 minutes) if a certain thing reports back witha number. Most of the backend is in PHP but I want to animate to the countdown so the user can see (maybe even with a progress bar eventually). But once the countdown his zero, if the condition is not met I want it to, lets say refresh the page for simplicity.
I'm looking for some guidance in right guidance. Should I:
- Run timers seperately in JS and PHP
or
- Do something like this Countdown timer built on PHP and jQuery? with a common php file included or something along those lines
Thanks guys.