-
-
Notifications
You must be signed in to change notification settings - Fork 308
/
Copy pathindex.html
53 lines (43 loc) · 1.66 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>Shadow Editor</title>
<link rel="apple-touch-icon" href="assets/image/icon.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="build/ShadowEditor.css" rel="stylesheet" />
</head>
<body>
<div id="container" tabindex="10"></div>
<script src="assets/js/libs/react.js"></script>
<script src="assets/js/libs/react-dom.js"></script>
<script src="assets/js/three.js"></script>
<script src="assets/js/libs/ammo.js"></script>
<script src="assets/js/libs/jszip.min.js"></script>
<script src="assets/js/libs/inflate.min.js"></script>
<script src="assets/js/libs/gunzip.min.js"></script>
<script src="assets/js/libs/fflate.min.js"></script>
<script src="assets/js/libs/stats.min.js"></script>
<script src="assets/js/libs/SPE.js"></script>
<script src="assets/js/libs/VolumetricFire.js"></script>
<script src="build/ShadowEditor.js"></script>
<script>
let app = null;
window.onload = function () {
app = new Shadow.Application(document.getElementById('container'), {
server: location.origin,
enableCache: true // whether to fetch satellite and terrain tile from server.
});
};
// ServiceWorker
// if ('serviceWorker' in navigator) {
// try {
// navigator.serviceWorker.register('sw.js');
// } catch (error) {
// }
// }
</script>
</body>
</html>