forked from donmccurdy/three-gltf-viewer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
283 lines (283 loc) · 21.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>glTF Viewer</title>
<meta name="author" content="Don McCurdy">
<meta name="description" content="Drag-and-drop preview and share tool for glTF 2.0 3D models.">
<link rel="shortcut icon" href="assets/favicon.ico">
<meta name="referrer" content="origin-when-cross-origin">
<!-- Open Graph Protocol tags -->
<!-- -{{#name}}-><meta property="og:title" content="{{name}} - glTF" /><!-{{/name}}- -->
<!-- -{{#glb}}-><meta property="og:description" content="glTF 3D Object{{#site}}, shared on {{site}}{{/site}}" /><!-{{/glb}}- -->
<!-- -{{#url}}-><meta property="og:url" content="{{{url}}}" /><!-{{/url}}- -->
<!-- -{{#image}}-><meta property="og:image" content="{{{baseUrl}}}{{image}}" /><!-{{/image}}- -->
<!-- -{{#site}}-><meta property="og:site_name" content="{{site}}" /><!-{{/site}}- -->
<!-- Twitter tags -->
<meta name="twitter:card" content="summary_large_image">
<!-- -{{#name}}-><meta name="twitter:title" content="{{name}} - glTF" /><!-{{/name}}- -->
<!-- -{{#image}}-><meta name="twitter:image" content="{{{baseUrl}}}{{image}}" /><!-{{/image}}- -->
<!-- -{{#glb}}-><meta name="twitter:description" content="glTF 3D Object{{#site}}, shared on {{site}}{{/site}}" /><!-{{/glb}}- -->
<!-- end tags -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400" rel="stylesheet">
<script>
//{{=//{{ }}=}}
//{{#canUpload}} var IS_UPLOAD_SUPPORTED = true;//{{/canUpload}}
//{{#json}} var loadIndex = //{{{json}}};//{{/json}}
var loadOptions = {};
//{{#options}} loadOptions.//{{key}} = "//{{value}}";
//{{/options}}
//{{={{ }}=}}
</script>
<!--
<script src="lib/draco/draco_decoder.js"></script>
<script src="lib/draco/draco_encoder.js"></script>
-->
<script src="bundle.common.js"></script>
<script src="bundle.app.js"></script>
<!-- {{^has_option.embed}} -->
<script src="bundle.ToolPackGLB.js" async></script>
<script src="bundle.ToolPackZIP.js" async></script>
<script src="bundle.ToolPackBase64.js" async></script>
<script src="bundle.ToolGLTFValidator.js" async></script>
<script src="bundle.ToolDracoCompressor.js" async></script>
<script src="bundle.ToolGLTFPipeline.js" async></script>
<!-- {{/has_option.embed}} -->
</head>
<body>
<!-- -{{#has_option.embed}}-><input class="kiosk-checkbox" type="checkbox" id="kiosk-input" checked><!-{{/has_option.embed}}- -->
<!-- {{^has_option.embed}}--><input class="kiosk-checkbox" type="checkbox" id="kiosk-input" ><!--{{/has_option.embed}} -->
<header>
<div class="header top-menu">
<!-- {{^has_option.embed}}-->
<label for="kiosk-input" id="main-btn" class="h1">
<!--{{/has_option.embed}} -{{#has_option.embed}}->
<a id="main-btn" class="h1" href="{{url}}" target="_blank">
<!-{{/has_option.embed}}- -->
<!-- glTF -->
<img width="72" height="36" src="assets/icons/glTF_White_June16.svg" alt="glTF">
<!-- -{{#has_option.embed}}->
</a>
<!-{{/has_option.embed}}- {{^has_option.embed}}-->
</label>
<!--{{/has_option.embed}} -->
<span class="separator hidden-sm-down"></span>
<label for="credits-menu-input" id="credits-btn" class="item menu-label checked hidden-xs-down">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20.48 17.92"><path d="M6.81 13.99l-0.5 0.5q-0.1 0.1-0.23 0.1t-0.23-0.1l-4.66-4.66q-0.1-0.1-0.1-0.23t0.1-0.23l4.66-4.66q0.1-0.1 0.23-0.1t0.23 0.1l0.5 0.5q0.1 0.1 0.1 0.23t-0.1 0.23l-3.93 3.93 3.93 3.93q0.1 0.1 0.1 0.23t-0.1 0.23zm5.91-10.67l-3.73 12.91q-0.04 0.13-0.155 0.195t-0.235 0.025l-0.62-0.17q-0.13-0.04-0.195-0.155t-0.025-0.245l3.73-12.91q0.04-0.13 0.155-0.195t0.235-0.025l0.62 0.17q0.13 0.04 0.195 0.155t0.025 0.245zm6.57 6.51l-4.66 4.66q-0.1 0.1-0.23 0.1t-0.23-0.1l-0.5-0.5q-0.1-0.1-0.1-0.23t0.1-0.23l3.93-3.93-3.93-3.93q-0.1-0.1-0.1-0.23t0.1-0.23l0.5-0.5q0.1-0.1 0.23-0.1t0.23 0.1l4.66 4.66q0.1 0.1 0.1 0.23t-0.1 0.23z"/></svg><span class="hidden-md-down"> About</span>
</label>
<label for="tools-menu-input" id="tools-btn" class="item menu-label hidden-xs-down"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M17.498,11.697c-0.453-0.453-0.704-1.055-0.704-1.697c0-0.642,0.251-1.244,0.704-1.697c0.069-0.071,0.15-0.141,0.257-0.22c0.127-0.097,0.181-0.262,0.137-0.417c-0.164-0.558-0.388-1.093-0.662-1.597c-0.075-0.141-0.231-0.22-0.391-0.199c-0.13,0.02-0.238,0.027-0.336,0.027c-1.325,0-2.401-1.076-2.401-2.4c0-0.099,0.008-0.207,0.027-0.336c0.021-0.158-0.059-0.316-0.199-0.391c-0.503-0.274-1.039-0.498-1.597-0.662c-0.154-0.044-0.32,0.01-0.416,0.137c-0.079,0.106-0.148,0.188-0.22,0.257C11.244,2.956,10.643,3.207,10,3.207c-0.642,0-1.244-0.25-1.697-0.704c-0.071-0.069-0.141-0.15-0.22-0.257C7.987,2.119,7.821,2.065,7.667,2.109C7.109,2.275,6.571,2.497,6.07,2.771C5.929,2.846,5.85,3.004,5.871,3.162c0.02,0.129,0.027,0.237,0.027,0.336c0,1.325-1.076,2.4-2.401,2.4c-0.098,0-0.206-0.007-0.335-0.027C3.001,5.851,2.845,5.929,2.77,6.07C2.496,6.572,2.274,7.109,2.108,7.667c-0.044,0.154,0.01,0.32,0.137,0.417c0.106,0.079,0.187,0.148,0.256,0.22c0.938,0.936,0.938,2.458,0,3.394c-0.069,0.072-0.15,0.141-0.256,0.221c-0.127,0.096-0.181,0.262-0.137,0.416c0.166,0.557,0.388,1.096,0.662,1.596c0.075,0.143,0.231,0.221,0.392,0.199c0.129-0.02,0.237-0.027,0.335-0.027c1.325,0,2.401,1.076,2.401,2.402c0,0.098-0.007,0.205-0.027,0.334C5.85,16.996,5.929,17.154,6.07,17.23c0.501,0.273,1.04,0.496,1.597,0.66c0.154,0.047,0.32-0.008,0.417-0.137c0.079-0.105,0.148-0.186,0.22-0.256c0.454-0.453,1.055-0.703,1.697-0.703c0.643,0,1.244,0.25,1.697,0.703c0.071,0.07,0.141,0.15,0.22,0.256c0.073,0.098,0.188,0.152,0.307,0.152c0.036,0,0.073-0.004,0.109-0.016c0.558-0.164,1.096-0.387,1.597-0.66c0.141-0.076,0.22-0.234,0.199-0.393c-0.02-0.129-0.027-0.236-0.027-0.334c0-1.326,1.076-2.402,2.401-2.402c0.098,0,0.206,0.008,0.336,0.027c0.159,0.021,0.315-0.057,0.391-0.199c0.274-0.5,0.496-1.039,0.662-1.596c0.044-0.154-0.01-0.32-0.137-0.416C17.648,11.838,17.567,11.77,17.498,11.697 M16.671,13.334c-0.059-0.002-0.114-0.002-0.168-0.002c-1.749,0-3.173,1.422-3.173,3.172c0,0.053,0.002,0.109,0.004,0.166c-0.312,0.158-0.64,0.295-0.976,0.406c-0.039-0.045-0.077-0.086-0.115-0.123c-0.601-0.6-1.396-0.93-2.243-0.93s-1.643,0.33-2.243,0.93c-0.039,0.037-0.077,0.078-0.116,0.123c-0.336-0.111-0.664-0.248-0.976-0.406c0.002-0.057,0.004-0.113,0.004-0.166c0-1.75-1.423-3.172-3.172-3.172c-0.054,0-0.11,0-0.168,0.002c-0.158-0.312-0.293-0.639-0.405-0.975c0.044-0.039,0.085-0.078,0.124-0.115c1.236-1.236,1.236-3.25,0-4.486C3.009,7.719,2.969,7.68,2.924,7.642c0.112-0.336,0.247-0.664,0.405-0.976C3.387,6.668,3.443,6.67,3.497,6.67c1.75,0,3.172-1.423,3.172-3.172c0-0.054-0.002-0.11-0.004-0.168c0.312-0.158,0.64-0.293,0.976-0.405C7.68,2.969,7.719,3.01,7.757,3.048c0.6,0.6,1.396,0.93,2.243,0.93s1.643-0.33,2.243-0.93c0.038-0.039,0.076-0.079,0.115-0.123c0.336,0.112,0.663,0.247,0.976,0.405c-0.002,0.058-0.004,0.114-0.004,0.168c0,1.749,1.424,3.172,3.173,3.172c0.054,0,0.109-0.002,0.168-0.004c0.158,0.312,0.293,0.64,0.405,0.976c-0.045,0.038-0.086,0.077-0.124,0.116c-0.6,0.6-0.93,1.396-0.93,2.242c0,0.847,0.33,1.645,0.93,2.244c0.038,0.037,0.079,0.076,0.124,0.115C16.964,12.695,16.829,13.021,16.671,13.334 M10,5.417c-2.528,0-4.584,2.056-4.584,4.583c0,2.529,2.056,4.584,4.584,4.584s4.584-2.055,4.584-4.584C14.584,7.472,12.528,5.417,10,5.417 M10,13.812c-2.102,0-3.812-1.709-3.812-3.812c0-2.102,1.71-3.812,3.812-3.812c2.102,0,3.812,1.71,3.812,3.812C13.812,12.104,12.102,13.812,10,13.812"></path></svg><span class="hidden-sm-down"> Tools</span></label>
<span class="separator hidden-md-down"> | </span>
<label for="file-input" id="open-btn" class="item"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg> Open</label>
<button id="download-btn" class="item" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 10.1l-5.2-4.9h3.3v-5.1h3.8v5.1h3.3l-5.2 4.9zm9.3 1.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg> Save</button>
<button id="close-btn" class="item menu-close hidden-xs-down" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.864,6.136c-0.22-0.219-0.576-0.219-0.795,0L10,9.206l-3.07-3.07c-0.219-0.219-0.575-0.219-0.795,0c-0.219,0.22-0.219,0.576,0,0.795L9.205,10l-3.07,3.07c-0.219,0.219-0.219,0.574,0,0.794c0.22,0.22,0.576,0.22,0.795,0L10,10.795l3.069,3.069c0.219,0.22,0.575,0.22,0.795,0c0.219-0.22,0.219-0.575,0-0.794L10.794,10l3.07-3.07C14.083,6.711,14.083,6.355,13.864,6.136z M10,0.792c-5.086,0-9.208,4.123-9.208,9.208c0,5.085,4.123,9.208,9.208,9.208s9.208-4.122,9.208-9.208C19.208,4.915,15.086,0.792,10,0.792z M10,18.058c-4.451,0-8.057-3.607-8.057-8.057c0-4.451,3.606-8.057,8.057-8.057c4.449,0,8.058,3.606,8.058,8.057C18.058,14.45,14.449,18.058,10,18.058z"></path></svg><span class="hidden-sm-down"> Close</span></button>
<span class="separator hidden-md-down"> | </span>
<span class="flex-grow"></span>
<!--
<span class="flex-grow"></span>
<span class="separator hidden-md-down"> | </span> -->
<button id="share-btn" class="item item-flex" style="display: none;"><svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M14.68,12.621c-0.9,0-1.702,0.43-2.216,1.09l-4.549-2.637c0.284-0.691,0.284-1.457,0-2.146l4.549-2.638c0.514,0.661,1.315,1.09,2.216,1.09c1.549,0,2.809-1.26,2.809-2.808c0-1.548-1.26-2.809-2.809-2.809c-1.548,0-2.808,1.26-2.808,2.809c0,0.38,0.076,0.741,0.214,1.073l-4.55,2.638c-0.515-0.661-1.316-1.09-2.217-1.09c-1.548,0-2.808,1.26-2.808,2.809s1.26,2.808,2.808,2.808c0.9,0,1.702-0.43,2.217-1.09l4.55,2.637c-0.138,0.332-0.214,0.693-0.214,1.074c0,1.549,1.26,2.809,2.808,2.809c1.549,0,2.809-1.26,2.809-2.809S16.229,12.621,14.68,12.621M14.68,2.512c1.136,0,2.06,0.923,2.06,2.06S15.815,6.63,14.68,6.63s-2.059-0.923-2.059-2.059S13.544,2.512,14.68,2.512M5.319,12.061c-1.136,0-2.06-0.924-2.06-2.06s0.923-2.059,2.06-2.059c1.135,0,2.06,0.923,2.06,2.059S6.454,12.061,5.319,12.061M14.68,17.488c-1.136,0-2.059-0.922-2.059-2.059s0.923-2.061,2.059-2.061s2.06,0.924,2.06,2.061S15.815,17.488,14.68,17.488"></path></svg><span class="title"><span class="name">Share <span class="size hidden-sm-down"></span></span><span class="version">⚠ Testing ⚠</span></span></button>
</div>
<input class="menu-checkbox" type="checkbox" id="credits-menu-input" checked>
<div class="header menu" id="credits-menu">
<a class="item" target="_blank" href="https://github.com/KhronosGroup/glTF/tree/master/specification/2.0">
glTF<br>2.0
</a>
<span class="separator hidden-md-down"> | </span>
<a class="item" target="_blank" href="https://github.com/mrdoob/three.js/tree/r101">
three.js<br>r101
</a>
<span class="separator hidden-md-down"> | </span>
<a class="item hidden-xs-down" target="_blank" href="https://github.com/mrdoob/three.js/blob/r101/examples/js/loaders/GLTFLoader.js">
GLTFLoader<br>r101
</a>
<!--
<span class="separator hidden-md-down"> | </span>
<a class="item layout-md" target="_blank" href="https://github.com/donmccurdy/three-gltf-viewer/issues/new">
Report issues
</a>
-->
<span class="separator hidden-md-down"> | </span>
<span class="item"><a target="_blank" href="https://github.com/donmccurdy/three-gltf-viewer">
glTF Viewer<br>master</a> <a target="_blank" href="https://github.com/InSimo/three-gltf-viewer/tree/tools">(+tools)</a>
</span>
<span class="separator hidden-md-down"> | </span>
<a class="item hidden-xs-down" target="_blank" href="https://github.com/KhronosGroup/glTF-Validator/tree/2.0.0-dev.2.7">
glTF Validator<br>2.0.0-dev.2.7
</a>
<span class="separator hidden-md-down"> | </span>
<span class="item hidden-xs-down"><a target="_blank" href="https://github.com/AnalyticalGraphicsInc/gltf-pipeline/tree/2.0-cesium">
glTF Pipeline<br>2.0-cesium</a> <a target="_blank" href="https://github.com/InSimo/gltf-pipeline/tree/2.0-cesium-browserify">(+patch)</a>
</span>
<span class="separator hidden-md-down"> | </span>
<a class="item hidden-xs-down" target="_blank" href="https://github.com/AnalyticalGraphicsInc/cesium/tree/5a3408a">
Cesium<br>5a3408a
</a>
<span class="separator hidden-md-down"> | </span>
<a class="item hidden-xs-down" target="_blank" href="https://github.com/google/draco/tree/1.2.1">
Draco<br>1.2.1
</a>
<span class="flex-grow"></span>
<!-- <label for="credits-menu-input" id="credits-menu-close-btn" class="item menu-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.185,1.417c-4.741,0-8.583,3.842-8.583,8.583c0,4.74,3.842,8.582,8.583,8.582S18.768,14.74,18.768,10C18.768,5.259,14.926,1.417,10.185,1.417 M10.185,17.68c-4.235,0-7.679-3.445-7.679-7.68c0-4.235,3.444-7.679,7.679-7.679S17.864,5.765,17.864,10C17.864,14.234,14.42,17.68,10.185,17.68 M10.824,10l2.842-2.844c0.178-0.176,0.178-0.46,0-0.637c-0.177-0.178-0.461-0.178-0.637,0l-2.844,2.841L7.341,6.52c-0.176-0.178-0.46-0.178-0.637,0c-0.178,0.176-0.178,0.461,0,0.637L9.546,10l-2.841,2.844c-0.178,0.176-0.178,0.461,0,0.637c0.178,0.178,0.459,0.178,0.637,0l2.844-2.841l2.844,2.841c0.178,0.178,0.459,0.178,0.637,0c0.178-0.176,0.178-0.461,0-0.637L10.824,10z"></path></svg></label> -->
</div>
<input class="menu-checkbox" type="checkbox" id="tools-menu-input">
<div class="header menu" id="tools-menu">
<!--<button id="tool1-btn" class="item"><span class="icon">▶</span> Tool1</button>-->
<span class="flex-grow"></span>
<!-- <label for="tools-menu-input" id="tools-menu-close-btn" class="item menu-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.185,1.417c-4.741,0-8.583,3.842-8.583,8.583c0,4.74,3.842,8.582,8.583,8.582S18.768,14.74,18.768,10C18.768,5.259,14.926,1.417,10.185,1.417 M10.185,17.68c-4.235,0-7.679-3.445-7.679-7.68c0-4.235,3.444-7.679,7.679-7.679S17.864,5.765,17.864,10C17.864,14.234,14.42,17.68,10.185,17.68 M10.824,10l2.842-2.844c0.178-0.176,0.178-0.46,0-0.637c-0.177-0.178-0.461-0.178-0.637,0l-2.844,2.841L7.341,6.52c-0.176-0.178-0.46-0.178-0.637,0c-0.178,0.176-0.178,0.461,0,0.637L9.546,10l-2.841,2.844c-0.178,0.176-0.178,0.461,0,0.637c0.178,0.178,0.459,0.178,0.637,0l2.844-2.841l2.844,2.841c0.178,0.178,0.459,0.178,0.637,0c0.178-0.176,0.178-0.461,0-0.637L10.824,10z"></path></svg></label> -->
</div>
</header>
<main class="wrap">
<div class="dropzone">
<!-- -{{#image}}-><img class="preview" src="{{image}}" /><!-{{/image}}- -->
<input class="panel-checkbox" type="checkbox" id="panel-input">
<div class="panel">
<div class="panel-header">
<span id="panel-title" class="item">Tool Results</span>
<span class="flex-grow"></span>
<label for="panel-input" id="panel-close-btn" class="item"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10.185,1.417c-4.741,0-8.583,3.842-8.583,8.583c0,4.74,3.842,8.582,8.583,8.582S18.768,14.74,18.768,10C18.768,5.259,14.926,1.417,10.185,1.417 M10.185,17.68c-4.235,0-7.679-3.445-7.679-7.68c0-4.235,3.444-7.679,7.679-7.679S17.864,5.765,17.864,10C17.864,14.234,14.42,17.68,10.185,17.68 M10.824,10l2.842-2.844c0.178-0.176,0.178-0.46,0-0.637c-0.177-0.178-0.461-0.178-0.637,0l-2.844,2.841L7.341,6.52c-0.176-0.178-0.46-0.178-0.637,0c-0.178,0.176-0.178,0.461,0,0.637L9.546,10l-2.841,2.844c-0.178,0.176-0.178,0.461,0,0.637c0.178,0.178,0.459,0.178,0.637,0l2.844-2.841l2.844,2.841c0.178,0.178,0.459,0.178,0.637,0c0.178-0.176,0.178-0.461,0-0.637L10.824,10z"></path></svg></label>
</div>
<div id="panel-content-wrapper"><pre id="panel-content" class="status-wip">Starting...</pre></div>
<div class="flex-grow invisible"></div>
</div>
<div class="placeholder noscene">
<p>Drag glTF 2.0 file or folder here</p>
</div>
<div class="upload-btn noscene">
<input type="file" name="file-input[]" id="file-input" multiple="">
<label for="file-input">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>
<span>Open</span>
</label>
</div>
</div>
<div class="spinner"></div>
</main>
<!-- Make sure Mustashe does not interpret the rest: {{={--{ }}=}--} -->
<!-- Disabled as gltf-validator is integrated as part of the tools in this branch
<script type="text/x-handlebars-template" id="report-toggle-template">
<div class="report-toggle level-{{issues.maxSeverity}}">
<div class="report-toggle-text">
{{#if issues}}
{{#if issues.numErrors }}
{{issues.numErrors}} errors.
{{else if issues.numWarnings}}
{{issues.numWarnings}} warnings.
{{else if issues.numHints}}
{{issues.numHints}} hints.
{{else if issues.numInfos}}
{{issues.numInfos}} notes.
{{else}}
Model details
{{/if}}
{{else if reportError}}
Validation could not run: {{reportError}}.
{{else}}
Validation could not run.
{{/if}}
</div>
<div class="report-toggle-close" aria-label="Hide">×</div>
</div>
</script>
<script type="text/x-handlebars-template" id="report-template">
<!DOCTYPE html>
<title>glTF 2.0 validation report</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400" rel="stylesheet">
<link rel="stylesheet" href="{{location.protocol}}//{{location.host}}/style.css">
<style>
body { overflow-y: auto; }
</style>
<div class="report">
<h1>Validation report</h1>
<ul>
<li><b>Format:</b> glTF {{info.version}}</li>
{{#if generator}}
<li>
<b>Generator:</b> {{generator.name}}
{{#if generator.docsURL}}(<a href="{{generator.docsURL}}" target="_blank">docs</a>){{/if}}
{{#if generator.bugsURL}}(<a href="{{generator.bugsURL}}" target="_blank">bugs</a>){{/if}}
</li>
{{else}}
<li><b>Generator:</b> {{info.generator}}</li>
{{/if}}
{{#if info.extras}}
{{#if info.extras.title}}<li><b>Title:</b> {{info.extras.title}}</li>{{/if}}
{{#if info.extras.author}}<li><b>Author:</b> {{{info.extras.author}}}</li>{{/if}}
{{#if info.extras.license}}<li><b>License:</b> {{{info.extras.license}}}</li>{{/if}}
{{#if info.extras.source}}<li><b>Source:</b> {{{info.extras.source}}}</li>{{/if}}
{{/if}}
<li>
<b>Stats:</b>
<ul>
<li>{{info.animationsCount}} animations</li>
<li>{{info.materialsCount}} materials</li>
<li>{{info.meshesCount}} meshes</li>
<li>{{info.nodesCount}} nodes</li>
<li>{{info.primitivesCount}} primitives</li>
<li>{{info.texturesCount}} textures</li>
</ul>
</li>
<li>
<b>Extensions:</b> {{#unless info.extensionsUsed}}None{{/unless}}
{{#if info.extensionsUsed}}
<ul>
{{#each info.extensionsUsed}}
<li>{{this}}</li>
{{/each}}
</ul>
<p><i>
NOTE: Extensions above are present in the model, but may or may not be recognized by this
viewer. Any "UNSUPPORTED_EXTENSION" warnings below refer only to extensions that could not
be scanned by the validation suite, and may still have rendered correctly. See:
<a href="https://github.com/donmccurdy/three-gltf-viewer/issues/122" target="_blank">three-gltf-viewer#122</a>
{{/if}}
</li>
</ul>
<hr/>
<p>
Report generated by
<a href="https://github.com/KhronosGroup/glTF-Validator/">KhronosGroup/glTF-Validator</a>
{{validatorVersion}}.
</p>
{{#if issues.numErrors}}
{{> issuesTable messages=errors color="#f44336" title="Error"}}
{{/if}}
{{#if issues.numWarnings}}
{{> issuesTable messages=warnings color="#f9a825" title="Warning"}}
{{/if}}
{{#if issues.numHints}}
{{> issuesTable messages=hints color="#8bc34a" title="Hint"}}
{{/if}}
{{#if issues.numInfos}}
{{> issuesTable messages=infos color="#2196f3" title="Info"}}
{{/if}}
</div>
</script>
<script type="text/x-handlebars-template" id="report-table-partial">
<table class="report-table">
<thead>
<tr style="background: {{color}};">
<th>{{title}}</th>
<th>Message</th>
<th>Pointer</th>
</tr>
</thead>
<tbody>
{{#each messages}}
<tr>
<td><code>{{code}}</code></td>
<td>{{message}}</td>
<td><code>{{pointer}}</code></td>
</tr>
{{/each}}
{{#unless issues.messages}}
<tr><td colspan="3">No issues found.</td></tr>
{{/unless}}
</tbody>
</table>
</script>
-->
</body>
</html>