jsshsjsjsjdjxjxjsjsjsjdjdhdhdhdhdhhdd
jsshsjsjsjdjdjxjhd
<!DOCTYPE html>
<html>
<head>
<style>
.cuadrado {
width: 200px;
height: 90px;
background-color: #0080ff;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 16px;
text-align: center;
text-decoration: none;
border-radius: 5px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s;
position: relative;
}
.cuadrado:hover {
background-color: #66a3ff;
}
.temporizador {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 24px;
display: none;
font-weight: bold;
}
.listo {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 24px;
display: none;
font-weight: bold;
}
.cuadrado span {
font-weight: bold;
}
</style>
<script>
function iniciarTemporizador(url, tiempo) {
var cuadrado = document.getElementById('cuadrado');
var temporizador = document.getElementById('temporizador');
var listo = document.getElementById('listo');
var textoDescargar = document.getElementById('textoDescargar');
cuadrado.style.pointerEvents = 'none';
temporizador.style.display = 'block';
textoDescargar.style.display = 'none';
var contador = tiempo;
temporizador.innerHTML = contador;
var intervalo = setInterval(function() {
contador--;
temporizador.innerHTML = contador;
if (contador === 0) {
clearInterval(intervalo);
temporizador.style.display = 'none';
listo.style.display = 'block';
setTimeout(function() {
window.open(url, '_blank');
}, 1000);
}
}, 1000);
}
</script>
</head>
<body>