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

128
Views
Please anyone tell me what i do that my website display date and time not get reset on refreshing the page

Please, anyone, tell me what I do that my website displays date and time does not get reset on refreshing the page. what I add extra is that my date timer does not get reset on refreshing the page

$(window).on("load", function () {

var clock;

  clock = $(".clock").FlipClock({


    clockFace: "DailyCounter",

    autoStart: false,

    callbacks: {

      stop: function () {

        $(".message").html("The IDO has been started!");
      },
    },
  });
  


  clock.setTime(30000);

  clock.setCountdown(true);

  clock.start();

});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Onload gets triggered when refreshing the site. You‘d have to save the state outside the scope of the function. If you‘re using a statis webpage and you simply added the script to the head, then the script always gets executed on page load. Look into webservers. Node.js with express library for example.

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!