Joke Collection Website - Blessing messages - Or about the countdown in JavaScript?

Or about the countdown in JavaScript?

Just save the remaining time in the cookie:

First, when the page displays the remaining time, first check whether there is a value in the cookie, and start with 3599 if it is empty, otherwise use the value of the cookie;

2. modify the cookie value at the same time every time the remaining time is updated.