This repository has been archived by the owner on Jan 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoffline.html
68 lines (68 loc) · 1.66 KB
/
offline.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
<html>
<head>
<title>:( You are offline</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
font-family: 'Helvetica', sans-serif;
}
body {
background: linear-gradient(135deg,#77b7f8,#cc98ff);
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
text-align: center !important;
color: #fff;
animation-name: gradient;
animation-duration: 4s;
animation-iteration-count: infinite;
}
p {
font-weight: 300;
font-size: 1.25rem;
padding-bottom: 3rem;
padding-top: 1rem;
}
button {
background: transparent;
border: #fff solid 2px;
font-size: 1.25rem;
color: #fff;
padding: 0.75rem 2rem;
border-radius: 50rem;
}
button:hover {
opacity: 0.6;
}
button:active {
opacity: 0.4;
}
@keyframes gradient {
0% {
background: #77b7f8;
}
50% {
background: #cc98ff;
}
100% {
background: #77b7f8;
}
}
</style>
</head>
<body>
<h1>You are offline :(</h1>
<p>Aww Snap! Looks you ran out of juice. Better wait until your online ! I promise to wake you up then !</p>
<button onclick="location.reload()">Reload</button>
</body>
<script>
window.addEventListener("online",function(){
location.reload();
})
</script>
</html>