forked from mrdoob/model-tag
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (75 loc) · 2.34 KB
/
index.html
File metadata and controls
75 lines (75 loc) · 2.34 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<title><model-tag></title>
<style>
body {
font-family: monospace;
}
h1, h2 {
font-weight: normal;
}
code {
position: absolute;
padding: 8px;
font-size: 12px;
background-color: #222;
color: white;
}
div.element {
display: inline-block;
margin-bottom: 6px;
}
</style>
<script src="dist/model-gltf.js"></script>
<script src="dist/model-obj.js"></script>
<script src="dist/model-stl.js"></script>
<script src="dist/model-three.js"></script>
<script src="dist/model-wrl.js"></script>
</head>
<body>
<script>
if ( 'customElements' in window === false ) {
var div = document.createElement( 'div' );
div.innerHTML = 'Your browser doesn\'t support <a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements">Custom Elements</a> :(';
div.style.cssText = 'padding:20px;color:white;background-color:red;font-size:20px;text-align:center';
document.body.appendChild( div );
}
</script>
<h1><model-tag> Custom HTML Elements for displaying 3D models.</h1>
<h2>GitHub: <a href="https://github.com/mrdoob/model-tag">https://github.com/mrdoob/model-tag</a></h2>
<br />
<div class="element">
<code><model-gltf src="models/gltf/VC.gltf"/></code>
<model-gltf src="models/gltf/VC.gltf"/>
</div>
<div class="element">
<code><model-obj src="models/obj/LeePerrySmith.obj"/></code>
<model-obj src="models/obj/LeePerrySmith.obj"/>
</div>
<div class="element">
<code><model-stl src="models/stl/slotted_disk.stl"/></code>
<model-stl src="models/stl/slotted_disk.stl"/>
</div>
<div class="element">
<code><model-three src="models/three/scene.json"/></code>
<model-three src="models/three/scene.json"/>
</div>
<div class="element">
<code><model-wrl src="models/vrml/logo.wrl"/></code>
<model-wrl src="models/vrml/logo.wrl"/>
</div>
<div class="element">
<code><model-wrl src="models/vrml/dolphins.wrl"/></code>
<model-wrl src="models/vrml/dolphins.wrl"/>
</div>
<div class="element">
<code><model-wrl src="models/vrml/face.wrl"/></code>
<model-wrl src="models/vrml/face.wrl"/>
</div>
<div class="element">
<code><model-wrl src="models/vrml/cow.wrl"/></code>
<model-wrl src="models/vrml/cow.wrl"/>
</div>
</body>
</html>