-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (28 loc) · 911 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My PWA App</title>
<link rel="manifest" href="/pwa-github-pages/manifest.json">
</head>
<body>
<!-- <h1>Welcome to My PWA</h1> -->
<!-- <p>This app works offline!</p> -->
<iframe
src="https://script.google.com/macros/s/AKfycby6WsysyfY5ngFvVoaMiJSGdjKs2U5uoesNVBW8PlWjvS7pe5o7dDSABKH6arh_vZolrQ/exec"
style="width: 100%; height: 500px; border: none;">
</iframe>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("/pwa-github-pages/service-worker.js")
.then(registration => {
console.log('Service Worker registered:', registration);
})
.catch(error => {
console.error('Service Worker registration failed:', error);
});
}
</script>
</body>
</html>