-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (85 loc) · 3.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Novo EarBuds</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&display=swap" rel="stylesheet">
<link href="css/grid.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet" />
<!-- link to greensock main library and scroll plugin -->
</head>
<body>
<div class="grid-con">
<div class="col-span-full">
<model-viewer id="model" src="model/earbuds.gltf" ar ar-modes="webxr scene-viewer quick-look"
ios-src="model/earbuds.usdz" camera-controls poster="images/poster.webp" shadow-intensity="1"
environment-image="images/aircraft_workshop_01_1k.hdr" exposure="1.7" camera-orbit="52.34deg 88.29deg 874.8m"
field-of-view="30deg">
<button class="Hotspot" slot="hotspot-1"
data-position="22.114881038306805m 76.41863141465969m 92.72411936367459m"
data-normal="0m 3.422854333301474e-8m 0.9999999999999996m" data-visibility-attribute="visible">
<div class="HotspotAnnotation" id="hotspot-1">
</div>
</button>
<button class="Hotspot" slot="hotspot-2"
data-position="39.77344034970514m 35.166245058302174m -60.072171234357924m"
data-normal="0.9907333466758325m -0.04850912905944068m 0.12686331298842657m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation" id="hotspot-2">
</div>
</button>
<button class="Hotspot" slot="hotspot-3"
data-position="2.4492803380076666m 10.895113621640228m -85.35108450441453m"
data-normal="-0.09319883119990514m 0.7267314834938743m -0.6805698559014823m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation" id="hotspot-3">
</div>
</button>
<button class="Hotspot" slot="hotspot-4"
data-position="8.209706351369618m -74.79136002933947m 11.903197074480694m"
data-normal="0.018820622483499312m -0.18212597696599156m -0.9830950679784314m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation" id="hotspot-4">
</div>
</button>
<button slot="ar-button" id="ar-button">
View in your space
</button>
<div id="ar-prompt">
<img src="images/ar_hand_prompt.png">
</div>
</model-viewer>
</div>
<div class="col-span-full">
<h2>Materials</h2>
<svg version="1.1" id="loader" class="hidden" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0"
xml:space="preserve">
<path fill="#333"
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
<animatetransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="0 50 50"
to="360 50 50" repeatCount="indefinite" />
</path>
</svg>
<ul id="material-list">
<!-- template will be copied inside of here -->
</ul>
<!-- Template that will be copied and dynamically inserted -->
<!-- This is not rendered until I instantiate it -->
<template id="material-template">
<li>
<h3 class="material-heading"></h3>
<p class="material-description"></p>
</li>
</template>
</div>
</div>
<!-- Loads <model-viewer> for browsers: -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.1/gsap.min.js"></script>
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>