clase gratuita
con Olivier en
HORAS
MINUTOS
SEGUNDOS
Cuenta Regresiva
#countdown { display: flex; align-items: center; justify-content: center; gap: 10px; } .time-container { text-align: center; }
minutos
segundos
function startCountdown(duration, displayMinutes, displaySeconds) { var timer = duration, minutes, seconds; setInterval(function () { minutes = parseInt(timer / 60, 10); seconds = parseInt(timer % 60, 10); minutes = minutes < 10 ? "0" + minutes : minutes; seconds = seconds < 10 ? "0" + seconds : seconds; displayMinutes.textContent = minutes; displaySeconds.textContent = seconds; if (--timer < 0) { timer = duration; } }, 1000); } window.onload = function () { var fiveMinutes = 60 * 5, displayMinutes = document.getElementById('minutes'), displaySeconds = document.getElementById('seconds'); startCountdown(fiveMinutes, displayMinutes, displaySeconds); };
MINUTOS
SEGUNDOS
Descubre el método que te ayudará a hablar francés correctamente en tan solo 4 meses