07-15-2015, 03:54 AM
(07-14-2015, 07:21 PM)Alwarren link Wrote:Well you have to have something to count on. If you just do something that waits a second and then updates the timer, that won't really work, since the javascript might not be running when the user deactivates the browser or chooses another tab. You need to have a time base.I don't see the problem. Sure you need a timebase but can't you just compare current GMT to 19:00 GMT and display the difference?
You'd also need to calculate the number of days between today and Thursday (if today is Mon-Wed) or today and Sunday (if today is Friday-Saturday).
I guess it might be easiest to change from in-progress to the countdown again at a set time (say 00:00 or 01:00) as we don't stop at a set time and there's probably no way for it to tell when we've stopped for the night.