-
Notifications
You must be signed in to change notification settings - Fork 0
/
Manico260.html
103 lines (91 loc) · 5.21 KB
/
Manico260.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
<!DOCTYPE html>
<html lang="en" class="fullscreen-100">
<head>
<meta charset="utf-8">
<title>Manico260</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/Manico260.glb'
ios-src='https://uqido.github.io/termoplastic-webar/models/Manico260.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-patented-closed" slot="hotspot-patented-closed" 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">PATENTED CLOSED BRACKET IN GALVANIZED IRON</div>
</div>
</div>
<div class="unselectable" id="hotspot-design-finger" slot="hotspot-design-finger" data-position="-00.03 00.06 -00.01" 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">DESIGN FINGER REST SUITABLE FOR LOGO PERSONALIZATIONS</div>
</div>
</div>
<div class="unselectable" id="hotspot-squared" slot="hotspot-squared" data-position="00.04 00.08 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">SQUARED & FLAT DESIGN</div>
</div>
</div>
<div class="unselectable" id="hotspot-finger-supporting" slot="hotspot-finger-supporting" data-position="00.00 00.03 -00.01" 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">FINGER SUPPORTING CURVE</div>
</div>
</div>
<div id="viewer-bottom" class="viewer-bottom">
<div id="colorBlack" onclick="changeColorByIndex(0)" class="clickable color-button selected" style="background-color: rgb(0,0,0);"></div>
<div id="colorRed" onclick="changeColorByIndex(1)" class="clickable color-button" style="background-color: rgb(255,0,7);"></div>
<div id="colorGrey" onclick="changeColorByIndex(2)" class="clickable color-button" style="background-color: rgb(55,55,55);"></div>
<div id="move_camera" onclick="rotateCamera()" class="clickable" style="background-image: url(img/Move.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%','90deg 1deg 50%','180deg 1deg 50%','-30deg 55deg 60%','-90deg 80deg 20%'];
const getAnnotations=function () {
return [document.getElementById('hotspot-patented-closed'),document.getElementById('hotspot-design-finger'),document.getElementById('hotspot-squared'),document.getElementById('hotspot-finger-supporting')].filter((elem)=>elem);
}
const positionToAnnotation={0:[],1:['hotspot-patented-closed'],2:['hotspot-design-finger'],3:['hotspot-squared'],4:['hotspot-finger-supporting']};
</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>