This repository was archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
83 lines (72 loc) · 2.46 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<title><model-tag></title>
<style>
body {
font-family: monospace;
text-align: center;
}
h1 {
font-size: 24px;
font-weight: normal;
}
h2 {
font-size: 18px;
font-weight: normal;
}
a, a:visited {
color: blue;
}
pre {
font-size: 13px;
margin: 0px !important;
width: 400px;
vertical-align: top;
}
pre code {
tab-size: 2 !important;
}
div.example {
display: flex;
justify-content: center;
margin-bottom: 24px;
}
</style>
<link rel="stylesheet" href="examples/js/prism.css" data-noprefix />
<script src="examples/js/prism.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" style="color:white">Custom Elements</a> :(';
div.style.cssText = 'font-size:20px;color:white;background-color:red;padding:20px;margin-bottom:30px;';
document.body.appendChild( div );
}
</script>
<h1><model-tag> <a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements">Custom Elements</a> for displaying 3D models</h1>
<h2><a href="https://github.com/mrdoob/model-tag/archive/master.zip">download</a> - <a href="https://github.com/mrdoob/model-tag">github</a></h2>
<br />
<h2><model-gltf></h2>
<div class="example">
<pre data-src="examples/model-gltf.html"></pre>
<iframe src="examples/model-gltf.html" marginwidth="0" marginheight="0" scrolling="no" style="border:0;width:400px;height:400px;"></iframe>
</div>
<h2><model-obj></h2>
<div class="example">
<pre data-src="examples/model-obj.html"></pre>
<iframe src="examples/model-obj.html" marginwidth="0" marginheight="0" scrolling="no" style="border:0;width:400px;height:400px;"></iframe>
</div>
<h2><model-stl></h2>
<div class="example">
<pre data-src="examples/model-stl.html"></pre>
<iframe src="examples/model-stl.html" marginwidth="0" marginheight="0" scrolling="no" style="border:0;width:400px;height:400px;"></iframe>
</div>
<h2><model-three></h2>
<div class="example">
<pre data-src="examples/model-three.html"></pre>
<iframe src="examples/model-three.html" marginwidth="0" marginheight="0" scrolling="no" style="border:0;width:400px;height:400px;"></iframe>
</div>
</body>
</html>