Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update comingsoon.html #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 150 additions & 36 deletions comingsoon.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
font-family: "Raleway", sans-serif;
}
body, html {
height: 100%;
height: 100%; background-image: url('img/aaa.jpg');

}
.bgimg {
background-image: url('img/aaa.jpg');
min-height: 100%;
min-height: 100%;
background-position: center;
background-size: cover;

Expand All @@ -27,55 +27,169 @@
}


#clockdiv{

font-family: sans-serif;

color: #fff;

display: inline-block;

font-weight: 400;

text-align: center;

font-size: 5em;

padding-top: 5%;

}

#clockdiv > div{

padding: 10px;

border-radius: 3px;


display: inline-block;

}

#clockdiv div > span{

padding: 15px;

border-radius: 3px;


display: inline-block;

}

.smalltext{

letter-spacing: 0.03em;

padding-top: 5px;

font-size: 16px;
color: #fff;

}




</style>

</head>

<body>

<div class="bgimg w3-display-container w3-animate-opacity w3-text-white">
<div class="bgimg w3-display-container w3-animate-opacity w3-text-white">
<div class="w3-display-topleft w3-padding-large w3-xlarge">
Logo
</div>
<div class="w3-display-middle">
<h1 class="w3-jumbo w3-animate-top">COMING SOON</h1>
<hr class="w3-border-grey" style="margin:auto;width:40%">
<p class="w3-large w3-center">99 days left</p>
</div>
<div class="w3-display-bottomleft w3-padding-large">

<Center><div id="clockdiv">

<div>

<span class="days" id="day"></span>

<div class="smalltext">Days</div>

</div>

<div>

<span class="hours" id="hour"></span>

<div class="smalltext">Hours</div>

</div>

<div>

<span class="minutes" id="minute"></span>

<div class="smalltext">Minutes</div>

</div>

<div>

<span class="seconds" id="second"></span>

<div class="smalltext">Seconds</div>

</div>

</div>

<script>
// Set the date we're counting down to
var countDownDate = new Date("Jan 5, 2021 15:37:25").getTime();

// Update the count down every 1 second



<p id="demo"></p>



</Center>
<script>




var deadline = new Date("dec 31, 2022 15:37:25").getTime();




var x = setInterval(function() {

// Get today's 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);

// Output the result in an element with id="demo"
document.getElementById("demo").innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";

// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}



var now = new Date().getTime();

var t = deadline - now;

var days = Math.floor(t / (1000 * 60 * 60 * 24));

var hours = Math.floor((t%(1000 * 60 * 60 * 24))/(1000 * 60 * 60));

var minutes = Math.floor((t % (1000 * 60 * 60)) / (1000 * 60));

var seconds = Math.floor((t % (1000 * 60)) / 1000);

document.getElementById("day").innerHTML =days ;

document.getElementById("hour").innerHTML =hours;

document.getElementById("minute").innerHTML = minutes;

document.getElementById("second").innerHTML =seconds;

if (t < 0) {

clearInterval(x);

document.getElementById("demo").innerHTML = "TIME UP";

document.getElementById("day").innerHTML ='0';

document.getElementById("hour").innerHTML ='0';

document.getElementById("minute").innerHTML ='0' ;

document.getElementById("second").innerHTML = '0'; }

}, 1000);
</script>

</script>

</body>

</html>