Does anyone have any html for a countdown that loops? I’m trying to have a countdown that resets every monday at 6pm, if anyone could make it that specific! ?
@rootApr 23.2018 — #This is not a code request site, you will have to provide cose you have written already and explain what it is that isn't working and you will get help that way ?
@SempervivumApr 23.2018 — #This shoud do what you require: <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script> <script src="js/jquery.countdown.js"></script> <div id="countdown"></div> <script> var tohour = 18; var toweekday = 1; function startCountdown() { var now = new Date(); var day = now.getDay(); if (day == toweekday) { if (now.getHours() < tohour) { var todate = now.getDate(); } else { var todate = now.getDate() + 7; } } else { var todate = now.getDate() + ((8 - day) % 7); } var totime = new Date(now.getFullYear(), now.getMonth(), todate, tohour, 0, 0); $("#countdown").countdown(totime, function (event) { $(this).text( event.strftime('%-d days %H:%M:%S') ).on('finish.countdown', startCountdown); }); } startCountdown(); </script> Dowload the script jquery.countdown.js from here: