Hi, I’m looking for the best way to use a countdown timer on a game app.
I’va manage to put a countdown timer on the home page, but when I refresh or I change page and go back on the home page, the countdown timer restart to the beginning. And I need this timer not restart and keep going when the gamer is not on the home page (and if I can, put this timer in all pages but avec the same time displaying every where).
Please, some one knows an easy way to find a solution ?
Thank you
(sorry for my english --')
Just store the reference time in the database, and use that on all pages.
You could store the reference time in a URL parameter so it is still in the URL when page is refreshed. Also, if you want this to be across all pages, when you navigate to another page, send the parameter value along.
This topic was automatically closed after 70 days. New replies are no longer allowed.