-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (43 loc) · 1.8 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="theme-color" content="#317EFB">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="pwa, bootstrap, starter, medium, html">
<meta name="description" content="PWA starter is a simple Progressive Web Application Demonstration">
<link rel="icon" href="https://abhaypai.github.io/pwa-starter/assets/img/16x16.png" type="image/png">
<link rel="shortcut icon" href="https://abhaypai.github.io/pwa-starter/assets/img/16x16.png" type="image/png">
<link rel="apple-touch-icon" href="https://abhaypai.github.io/pwa-starter/assets/img/16x16.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
<title>PWA Starter | Abhay Pai</title>
<link rel="manifest" href="https://abhaypai.github.io/pwa-starter/manifest.json">
</head>
<body>
<h1 class="text-center">Progressive Web Application Starter.</h1>
<img
class="img-thumbnail"
src="https://abhaypai.github.io/pwa-starter/assets/img/512x512.png"
alt="Progressive Web Application Starter 512X512 Image"
/>
<img
class="img-thumbnail"
src="https://abhaypai.github.io/pwa-starter/assets/img/256x256.png"
alt="Progressive Web Application Starter 256X256 Image"
/>
<script type="text/javascript">
(function () {
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("https://abhaypai.github.io/pwa-starter/serviceworker.js")
.then(function(registration) {
console.log("PWA -> ", registration.scope)
})
.catch(function(error){
console.log("PWA -> Error:", error);
})
}
})();
</script>
</body>
</html>