-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
executable file
·45 lines (39 loc) · 973 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Seer 3D Viewer</title>
<link rel="stylesheet">
<style>
html,body {
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
overflow-x: hidden;
overflow-y: hidden;
}
#container {
width: 100%;
height:100%
}
</style>
</head>
<body onload="draw()">
<div id="container">
</div>
</body>
<script src="libs/three.js"></script>
<script src="libs/OrbitControls.js"></script>
<script src="libs/WebViewModel.js"></script>
<script type="text/javascript">
var model_url;
if (!window.localStorage) {
// alert('no support localStorage');
} else {
model_url = 'models/fbx/Samba Dancing.fbx';
var storage = window.localStorage;
storage["url"] = model_url;
}
</script>
</html>