-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffline.html
86 lines (68 loc) · 2.16 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="author" content="Chijindu Julian" />
<meta name="description" content="Chijindu Julian | Full Stack Developer" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#111" />
<!--WEB MANIFEST-->
<link rel="manifest" href="/manifest.json" />
<!-- include PWACompat _after_ your manifest -->
<script async src="https://unpkg.com/pwacompat" crossorigin="anonymous"></script>
<!-- ios support -->
<link rel="apple-touch-icon" href="images/icons/icon-144x144.png" />
<link rel="apple-touch-icon" href="images/icons/icon-152x152.png" />
<link rel="apple-touch-icon" href="images/icons/icon-192x192.png" />
<link rel="apple-touch-icon" href="images/icons/icon-512x512.png" />
<meta name="apple-mobile-web-app-status-bar" content="#111" />
<!--FAVICON-->
<link rel="icon" type="image/svg+xml" href="/images/icon.svg">
<title>You are Offline</title>
<!-- inline the webpage's stylesheet -->
<style>
body {
height: 100vh;
background-color: #111;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-size: 2rem;
}
p {
font-size: 1rem;
padding-bottom: 3rem;
}
button {
cursor: pointer;
border: 1px solid #fff;
color: #fff;
font-weight: 700;
background-color: transparent;
width: 7rem;
height: 3rem;
}
button:hover {
background-color: #fff;
color: #111;
}
</style>
</head>
<body>
<h1>You are Offline</h1>
<p>Click the reload button to reload the page.</p>
<button>
Reload
</button>
<!-- inline the webpage's javascript file -->
<script>
document.querySelector("button").addEventListener("click", () => {
window.location.reload();
});
</script>
</body>
</html>