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

120
Vistas
VueJS - Creating a Counter Up Time with Start, Pause, Resume and Stop

I have problem with counter up resume function.

for example: if the timer paused at 00:00:03 and then, the next view seconds later (eg: 5 seconds later) I clicked the resume button. It suppose to be continue from 00:00:04. But the timer start from 00:00:08.

I have no idea how to fix this.

here's the codes: https://jsitor.com/pVz84uaY3

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

it's doing exactly what you wanted, you are always calculating against variable with time started this.diff = Math.abs(today.getTime() - this.actv_date.getTime()); the actv_date

for resume functionality you have to save "time elapsed" and on resume calculate this.actv_date = today.getTime() - timeElapsed to hold original dif

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