-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
54 lines (44 loc) · 2.13 KB
/
Copy pathtest.html
File metadata and controls
54 lines (44 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<title><model-viewer> example</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="demo-styles.css">
<!-- The following libraries and polyfills are recommended to maximize browser support -->
<!-- NOTE: you must adjust the paths as appropriate for your project -->
<!-- 💁 OPTIONAL: The :focus-visible polyfill removes the focus ring for some input types -->
<script src="https://unpkg.com/focus-visible@5.0.2/dist/focus-visible.js" defer></script>
</head>
<body>
<div id="card">
<!-- All you need to put beautiful, interactive 3D content on your site: -->
<model-viewer id="neutral-demo" camera-controls touch-action="pan-y" auto-rotate alt="A 3D model of a kitchen mixer" src="https://cdn.glitch.global/5b9c075a-af62-42d0-a60e-ed4bd2436918/ar_drone.glb?v=1665218724301">
<label for="neutral">Neutral Lighting: </label>
<input id="neutral" type="checkbox" checked="true">
</model-viewer>
<script>
(() => {
const modelViewer = document.querySelector('#neutral-demo');
const checkbox = document.querySelector('#neutral');
checkbox.addEventListener('change',() => {
modelViewer.environmentImage = checkbox.checked ? '' : 'legacy';
});
})();
</script>
</div>
<footer>
<span>This page is a basic demo of the <a href="https://github.com/GoogleWebComponents/model-viewer" target="_blank"><model-viewer></a> web component.</span>
<span>It makes displaying 3D and AR content on the web easy ✌️</span>
<a href="https://glitch.com/edit/#!/remix/model-viewer">
<img src="https://cdn.glitch.com/2bdfb3f8-05ef-4035-a06e-2043962a3a13%2Fremix%402x.png?1513093958726" alt="remix button" aria-label="remix" height="33">
</a>
</footer>
<!-- 💁 Include both scripts below to support all browsers! -->
<!-- Loads <model-viewer> for modern browsers: -->
<script type="module"
src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js">
</script>
</body>
</html>