Entradas

Imagen
CEREMONIA const fechaEvento = new Date ( "August 15, 2026 19:00:00" ) . getTime(); const intervalo = setInterval ( function () { const ahora = new Date () . getTime(); const diferencia = fechaEvento - ahora ; const dias = Math . floor( diferencia / ( 1000 * 60 * 60 * 24 )); const horas = Math . floor(( diferencia % ( 1000 * 60 * 60 * 24 )) / ( 1000 * 60 * 60 )); const minutos = Math . floor(( diferencia % ( 1000 * 60 * 60 )) / ( 1000 * 60 )); const segundos = Math . floor(( diferencia % ( 1000 * 60 )) / 1000 ); document . getElementById( "contador" ) . innerHTML = dias + "d " + horas + "h " + minutos + "m " + segundos + "s" ; if ( diferencia < 0 ) { clearInterval ( intervalo ); document . getElementById( "contador" ) . innerHTML = "¡El evento ha comenzado!" ; ...