-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 1.42 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
<html>
<head>
<title>breathe.</title>
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#353277">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="apple-touch-icon" href="/icon-192-apple.png">
</head>
<body>
<div class="container">
<svg viewBox="0 0 1000 1000" width="100%" height="100%">
<circle class="ripple" r="300" cx="500" cy="500"></circle>
<g class="breathe-text">
<text class="text" x="450" y="500">
breathe
</text>
</g>
<circle class="outer-circle" r="300" cx="500" cy="500"></circle>
<circle class="circle" r="250" cx="500" cy="500"></circle>
</svg>
</div>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}).catch(function(err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
<link rel="stylesheet" href="/style.bundle.css" />
</body>
</html>