-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (41 loc) · 1.3 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
<link rel="apple-touch-icon" href="./icons/icon-192.png">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
<title>PWA test</title>
<link rel="manifest" href="./manifest.json">
<script src="babylonjs_js/babylon.js"></script>
<script src="babylonjs_js/babylonjs.loaders.min.js"></script>
<script src="babylonjs_js/babylon.gui.min.js"></script>
<script src="babylonjs_js/babylon.inspector.bundle.js"></script>
<script src="babylonjs_js/babylonjs.material.min.js"></script>
<script src="babylonjs_js/pep.js"></script>
<style>
html, body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
</head>
<body>
<canvas id="renderCanvas"></canvas>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js',
{scope: "./"}
).then(function(reg) {
console.log('Service Worker Registered for scope : '+ reg.scope);
});
}
</script>
<script src="./js/TeleportCheck.js"></script>
</body>
</html>