-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
64 lines (46 loc) · 2.01 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
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SSA CDS Extended 2021 - Web Capabilities Codelab</title>
<meta name="description" content="A codelab demonstrating some of the awesome new capabilities on the web!">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="manifest.webmanifest">
<link rel="icon" sizes="192x192" href="/images/icon-192x192.png">
<meta name="theme-color" content="#4c8bf5">
<meta property="og:title" content="SSA CDS Extended 2021 - Web Capabilities Codelab">
<meta property="og:type" content="website">
<meta property="og:image" content="https://cdsx2021.netlify.app/images/icon-192x192.png">
<meta property="og:url" content="https://cdsx2021.netlify.app/">
<meta property="og:description" content="A codelab demonstrating some of the awesome new capabilities on the web!">
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<main>
<h1>SSA CDS Extended 2021 - Web Capabilities Codelab 🐡</h1>
<!-- Badging API *********
<button id="badge">Add a badge!</button>
<button id="clear-badge">Clear badge!</button>
-->
<!-- Native File System API *********
<button id="open-file-picker">Open file</button>
<textarea id="textarea" cols="30" rows="10"></textarea>
<button id="save-file">Save file</button>
-->
<!-- Shape Detection API ********* -->
<img src="/images//me.jpg" alt="">
</main>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' }).then((registration) => {
console.log('Service Worker Registered');
});
navigator.serviceWorker.ready.then((registration) => {
console.log('Service Worker Ready');
});
}
</script>
<script src="/scripts/shape-detection.js"></script>
</body>
</html>