forked from Daksh777/TakeABreak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.html
35 lines (30 loc) · 861 Bytes
/
loading.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html>
<head>
<style>
p {font-family: 'Product Sans', sans-serif;}
</style>
<style>
h1 {margin: 0;
font-family: Product Sans, sans-serif;
text-align: center;
color: #fff;
font-size: 61px;}
</style>
</head>
<body style="padding: 150px;text-align:center;vertical-align: middle;display: flex;align-items: center;justify-content: center;background-color: #232323;">
<h1>Loading site in <span id="countdown"></span> seconds.<br>
This website will self destruct in the specified time.</h1>
</body>
<script>
var timeleft = 5;
var downloadTimer = setInterval(function(){
if(timeleft <= 0){
clearInterval(downloadTimer);
document.getElementById("countdown").innerHTML = "0";
} else {
document.getElementById("countdown").innerHTML = timeleft;
}
timeleft -= 1;
}, 1000);
</script>
</html>