-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (50 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<title> Web Platform API Demos</title>
<link rel="shortcut icon" href="resources/icons/cat-icon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<!-- iOS doesn't support web app manifest yet. Add iOS meta tags and icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Web Platform APIs Demo PWA">
<link rel="apple-touch-icon" href="resources/icons/cat-icon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#B12A34"/>
<meta http-equiv="origin-trial" content="AgJMJ2atTCoj5eomLZjZkhpn731Q/iPviVcxKFLZP9Gj1eKokjB5EXMRez16VN1L6ZDmLcqNMEOaRfOw+1QCYAgAAAB2eyJvcmlnaW4iOiJodHRwczovL3dlYnBsYXRmb3JtYXBpcy5jb206NDQzIiwiZmVhdHVyZSI6IlBlcmlvZGljQmFja2dyb3VuZFN5bmMiLCJleHBpcnkiOjE1NzIwMDU3NTksImlzU3ViZG9tYWluIjp0cnVlfQ=="/>
<link rel="manifest" href="webapidemos.webmanifest">
</head>
<body>
<div id="parent">
<div id="child">
<div id="api">
<h3> Periodic Background Sync </h3>
<A HREF = "https://wicg.github.io/background-sync/spec/PeriodicBackgroundSync-index.html">Spec</A> <br>
<A HREF = "periodic_sync/periodicSync_improved.html">Try it out!</A> <br>
</div>
<br>
<div id="api">
<h3> One-off Background Sync </h3>
<A HREF = "https://wicg.github.io/background-sync/spec/">Spec</A> <br>
<A HREF = "one_off_sync/one_off_sync.html">Try it out!</A>
</div>
<br>
<div id="api">
<h3> Background Fetch </h3>
<A HREF = "https://wicg.github.io/background-fetch/">Spec</A> <br>
<A HREF = "https://backgroundfetch.com">Try it out!</A> <br>
</div>
</div>
</div>
</body>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('sw.js', { scope: location.pathname })
.then(reg => {
console.log('Service worker registered.', reg);
});
});
}
</script>
</html>