Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda