-
Notifications
You must be signed in to change notification settings - Fork 0
/
ManicoVirtus.html
119 lines (107 loc) · 6.27 KB
/
ManicoVirtus.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
<!DOCTYPE html>
<html lang="en" class="fullscreen-100">
<head>
<meta charset="utf-8">
<title>ManicoVirtus</title>
<link rel="stylesheet" href="css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="white"/>
<meta name="description" content="">
<script src="https://unpkg.com/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="https://unpkg.com/fullscreen-polyfill/dist/fullscreen.polyfill.js"></script>
<script src="https://unpkg.com/focus-visible/dist/focus-visible.js" defer></script>
<script src="https://unpkg.com/event-target@latest/min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/ResizeObserver.global.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>
<style>
.color-button {
width: 30px;
height: 30px;
margin-top: 5px;
background-color: white;
border-radius: 50%;
}
.unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events:none;
}
.color-button.selected {
border: 2px solid #717171;
}
</style>
</head>
<body class="fullscreen-100">
<model-viewer id="modelViewer"
class='model-viewer' ar autoplay camera-controls src='https://uqido.github.io/termoplastic-webar/models/ManicoVirtus.glb'
ios-src='https://uqido.github.io/termoplastic-webar/models/ManicoVirtus.usdz' alt='' noloop camera-orbit="-30deg 55deg 60%"
min-camera-orbit="auto auto 80%" ar-modes="scene-viewer webxr quick-look"
camera-target="0 0 1.5cm"
exposure="1" shadow-intensity="1.5" shadow-softness="0.8" quick-look-browsers="safari chrome">
<script src="js/LoadingBar.js"></script>
<div class="unselectable" id="hotspot-safe-button" slot="hotspot-safe-button" data-position="00.00 00.06 -00.03" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">EASY & SAFE DETACHING BUTTON</div>
</div>
</div>
<div class="unselectable" id="hotspot-perfect-grip" slot="hotspot-perfect-grip" data-position="00.00 00.03 00.09" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">FULL AND ROUND BACK FOR PERFECT GRIP</div>
</div>
</div>
<div class="unselectable" id="hotspot-ovenproof" slot="hotspot-ovenproof" data-position="00.02 00.05 -00.03" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">OVENPROOF BRACKET</div>
</div>
</div>
<div class="unselectable" id="hotspot-aluminum" slot="hotspot-aluminum" data-position="-00.03 00.05 -00.06" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">WIDE PROTECTIVE ALUMINUM FLAMEGUARD</div>
</div>
</div>
<div class="unselectable" id="hotspot-safe-click" slot="hotspot-safe-click" data-position="00.03 00.05 -00.02" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">SAFE CLICK LOCKING SYSTEM</div>
</div>
</div>
<div class="unselectable" id="hotspot-embossed" slot="hotspot-embossed" data-position="-00.04 00.04 -00.02" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">EMBOSSED STRIPES FOR NON-SLIP ON DETACHING BUTTON</div>
</div>
</div>
<div class="unselectable" id="hotspot-lower-curve" slot="hotspot-lower-curve" data-position="00.00 00.01 -00.02" data-normal="00.00 01.00 00.00">
<div class="unselectable" style="display: flex;transform: translateX(50%)">
<div class="hotspot-bar"></div>
<div class="unselectable hotspot-text text-white">LOWER CURVE SUPPORT FINGER POSITION FOR DETACHING</div>
</div>
</div>
<div id="viewer-bottom" class="viewer-bottom">
<div id="move_camera" onclick="rotateCamera()" class="clickable" style="background-image: url(img/Move.png);"></div>
<div id="animate" onclick="modelAnimate()" class="clickable" style="background-image: url(img/Animate.png);"></div>
</div>
<script>
const materialArray=["Manico_mat"];
let colors=[{colorBlack: 'rgb(0,0,0)'}, {colorRed: 'rgb(248,0,4)'}, {colorGrey: 'rgb(11,11,11)'}];
let bumps=[{colorBlack: 1}, {colorRed: 0}, {colorGrey: 0}];
const positions = ['-30deg 55deg 60%','100deg 80deg 20%','-90deg 1deg 50%','-130deg 50deg 50%','-30deg 55deg 60%','-100deg 80deg 20%'];
const getAnnotations=function () {
return [document.getElementById('hotspot-safe-button'),document.getElementById('hotspot-perfect-grip'),document.getElementById('hotspot-ovenproof'),document.getElementById('hotspot-aluminum'),document.getElementById('hotspot-safe-click'),document.getElementById('hotspot-embossed'),document.getElementById('hotspot-aluminum (1)'),document.getElementById('hotspot-lower-curve')].filter((elem)=>elem);
}
const positionToAnnotation={0:[],1:['hotspot-safe-button','hotspot-perfect-grip'],2:['hotspot-ovenproof','hotspot-aluminum'],3:['hotspot-safe-click'],4:['hotspot-embossed'],5:['hotspot-lower-curve']};
</script>
<script src="js/ContentCustomizer.js"></script>
</model-viewer>
<script type="module" src="js/model-viewer/dist/uqido-model-viewer.min.js"></script>
<script nomodule src="js/model-viewer/dist/uqido-model-viewer-legacy.js"></script>
</body>
</html>