forked from LuHuangMSFT/pwa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoffline.html
45 lines (38 loc) · 1.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="origin-trial" content="A/r9OpRW50h+0NZPSYxH6j5G7kV6qsh1EtyLZg4U5Q7Sry8v1OG2iNnHU2R4B0Vq4mBmhyioDfQO1fT8iugTngIAAABjeyJvcmlnaW4iOiAiaHR0cHM6Ly9tYW5keW1zZnQuZ2l0aHViLmlvOjQ0MyIsICJmZWF0dXJlIjogIldlYkFwcFVybEhhbmRsaW5nIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9">
<title>You are offline</title>
<!-- inline the webpage's stylesheet -->
<style>
body {
font-family: helvetica, arial, sans-serif;
margin: 2em;
}
h1 {
font-style: italic;
color: #373fff;
}
p {
margin-block: 1rem;
}
button {
display: block;
}
</style>
</head>
<body>
<h1>You are offline</h1>
<p>Click the button below to try reloading.</p>
<button type="button">⤾ Reload</button>
<!-- inline the webpage's javascript file -->
<script>
document.querySelector("button").addEventListener("click", () => {
window.location.reload();
});
</script>
</body>
</html>