-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (37 loc) · 1.36 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Babylon.js sample code</title>
<link rel="manifest" href="/manifest.json">
<link rel="stylesheet" href="./assets/css/index.css">
</head>
<body>
<div id="bodyImg"></div>
</body>
<script>
setTimeout(() => {
var link = document.createElement('a');
link.href = '/menu';
link.click()
}, 1200)
// if ('serviceWorker' in navigator) {
// window.addEventListener('load', () => {
// navigator.serviceWorker.register('sw.js')
// .then((reg) => {
// console.log('%cA Service Worker is installed Successfully and is ACTIVE for the scope:', 'color: #4cd137;', reg.scope)
// setTimeout(() => {
// var link = document.createElement('a');
// link.href = '/menu';
// link.click()
// }, 1200)
// })
// .catch((err) => {
// console.log('%cService Worker Installation FAILED. ', 'color: #f39c12; font-size: 1.5rem;')
// console.log('%cReason: ', 'color: #f39c12;', err)
// })
// })
// }
</script>
</html>