Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
Simple count down clock not working in notepad

I'm trying to add this clock into my code but it does not show on the page, anyone know why? I have tried copying it in notepad but no success.

http://jsfiddle.net/yS4da/2707/

<code id="time"></code>
<script>
    var midnight = "0:00:00";
    var now = null;

    setInterval(function () {
        now = moment().format("H:mm:ss");
        if (now === midnight) {
            alert("Hi");
        }
        $("#time").text(now);
    }, 1000);
</script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you look into the developer console (F12) you will see that "moment ist no defined". The fiddle is using moment.js which you need to include. Consider that the project is considered as legacy.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!