- March 19, 2019 at 4:08 am #212424
Hello I downloaded this website theme to try out for a client. The countdown resets every time You refresh. not sure exactly how to prevent that, but all the HTML shows is this (to change it).
<div class=”countdown” data-remaining-sec=”2000000″></div>March 19, 2019 at 4:55 am #212426
Hope you are having a good day and thank you for your question 🙂
In order to check your question i need to see your live website, please provide url and i will take a lookMarch 19, 2019 at 5:17 am #212431This reply has been marked as private.March 19, 2019 at 5:31 am #212436
Did you see the link? I just threw the project in a GitHub repo and published on netlifyMarch 21, 2019 at 6:56 pm #212948March 21, 2019 at 8:05 pm #212951
For those of you looking this up… I figured it out myself…
Delete this line in the HTML
Visit this site (https://currentmillis.com/) and on the right-hand side enter the date of the end of the countdown.
Copy the amount of millis at the bottom.
In the scripts.js file, delete this line:
var remainingSec = $('.countdown').data('remaining-sec');
replace it with this, and paste the millis in the new code:
var remainingSec = (new Date(1555873200000).getTime() - new Date().getTime()) / 1000;
Then when it refreshes, it will stay at the correct time in the countdownMarch 22, 2019 at 5:32 am #212974
Thank you for sharing solution
we really appreciate it 🙂
The topic ‘Coming Soon Template by Colorlib V16 Countdown Issue’ is closed to new replies.