Histórico da Página
borderWidth0
Painel
Para facilitar a visualização também é possível Abrir no navegador.
HTML |
---|
<style type="text/css">
#warning-bloco-k{
font-size:40px;
align:center;
display: none;
}
#countdown-bloco-k {
font-size: 40px;
color:#434343;
display: none;
}
#dummy-bloco-k {
font-size: 33px;
color: white;
}
</style>
<p id='dummy-bloco-k'>Bloco K</p>
<p id="warning-bloco-k">Faltam <strong id="countdown-bloco-k"></strong> para a entrega do Bloco K.
<script >
//------------------------------------------------------------------------------------------------------------------------------
//-----------REMOVER O COMPONENTE INTEIRO DEPOIS DE 1 de JANEIRO de 2019------------
//------------------------------------------------------------------------------------------------------------------------------
// Set the date we're counting down to
var countDownDate = new Date("Jan 1, 2019 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("countdown-bloco-k").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("warning-bloco-k").style.display = "none"
document.getElementById("countdown-bloco-k").style.display = "none"
}else{
document.getElementById("dummy-bloco-k").style.display = "none"
document.getElementById("warning-bloco-k").style.display = "inline"
document.getElementById("countdown-bloco-k").style.display = "inline"
}
}, 1000);
</script>
|
borderColor | black |
---|---|
borderWidth | 0 |
borderStyle | solid |
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas