Flipclock js countdown 1hour without reset
I'm trying to make a countdown without resetting the time on refresh. I need to countdown 1h only but I don't want it to reset on refresh. Getting the current time from server and expiration time is not working since I want to reset that timer on a click. Here is my current js code: <script> var clock; clock = $('.clock').FlipClock({ clockFace: 'HourlyCounter', autoStart: false, callbacks: { stop: function() { $('.message').html('The clock has stopped!') }, } }); clock.setTime(3600); clock.setCountdown(true); </script> Yes you can do it basing in your example using flipclock and jquery-cookie