-
Notifications
You must be signed in to change notification settings - Fork 1
/
LandingPage.html
75 lines (68 loc) · 2.13 KB
/
LandingPage.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Login successful</title>
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.nearly-full-height {
height: 95vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.main {
border-right: 2px solid;
font-size: 32px;
padding: 0 15px 0 15px;
text-align: center;
}
.message {
font-size: 18px;
text-align: center;
}
</style>
</head>
<body>
<div class="flex-center position-ref nearly-full-height">
<div class="main">
Thank you!
</div>
<div class="message" style="padding: 10px;">
It's now safe to close the window.
</div>
</div>
<div class="flex-center position-ref">
<div class="message" id="countdown">
Window will close in 5 seconds.
</div>
</div>
<script>
var timeleft = 4;
var closeTimer = setInterval(function(){
if(timeleft <= 0){
clearInterval(closeTimer);
document.getElementById("countdown").innerHTML = "Closing now.";
window.close();
} else {
document.getElementById("countdown").innerHTML = "Window will close in " + timeleft + " second" + ((timeleft == 1) ? ".":"s.");
}
timeleft -= 1;
}, 1000);
</script>
</body>
</html>