Need help making a Countdown Clock that stores a cookie per each site visitor and does not restart on page refresh

Hi, i need a embed code for a countdown clock that would do the following:

  1. Start at 10 minutes and count down to 0

  2. Only load the first time the user loads the page.

  3. Not allow the user to pause the timer.

  4. Not restart if they reload the page.

Any help would be greatly appreciated. I have been looking to no avail.

Thank you,

Steve Gresham


Here is my public share link: LINK
(how to access public share link)

I’ll point you to all the resources you need to put this together.

  1. Date - Date - JavaScript | MDN

  2. jscookie - GitHub - js-cookie/js-cookie: A simple, lightweight JavaScript API for handling browser cookies

  3. Calculate difference between two dates - datetime - How to calculate date difference in JavaScript? - Stack Overflow

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.