-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathM8-update.html
524 lines (439 loc) · 16 KB
/
M8-update.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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!DOCTYPE html>
<html lang="en" class="fullscreen-100">
<head>
<meta charset="utf-8">
<title>Asa Laser M8</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"/>
<link rel="icon"
type="image/png"
href="favicon-uqido.png">
<meta name="description" content="">
<script src="https://unpkg.com/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="https://unpkg.com/intersection-observer/intersection-observer.js"></script>
<script src="https://unpkg.com/resize-observer-polyfill/dist/ResizeObserver.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="js/i18n/banana-i18n.js"></script>
<script>
const url = new URL(window.location.href);
let lang = url.searchParams.get("lang");
if (!lang)
lang = "en"
const banana = new Banana(lang);
fetch('i18n/M8-localization.json')
.then((response) => response.json())
.then((messages) => {
banana.load(messages);
console.log("Localize to:" + banana.locale)
document.querySelectorAll('[data-i18n]').forEach((elem) => {
const key = elem.getAttribute('data-i18n')
const message = banana.i18n(key)
if (message !== key)
elem.innerHTML = message
})
});
</script>
<style>
.uqido-logo {
background-image: url("img/asalaser-logo.png");
background-size: 175px 72px;
height: 72px;
width: 175px;
}
.title-color {
color: #007C7D;
}
.call-action-color-bg {
background-color: #007C7D;
}
.fullscreen-100 {
background: unset;
background: unset;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.right-description:after {
background: transparent;
}
.text {
color: black;
}
.viewer-bottom {
display: flex;
flex-direction: row;
left: 8px;
bottom: 8px;
}
.viewer-bottom-full {
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
height: 60px;
background-color: #dddddd;
}
.text-white {
color: whitesmoke;
text-shadow: 2px 1px 2px #000;
}
.hotspot-content {
height: 5rem;
margin-left: 8px;
margin-top: -4px;
max-width: 350px;
font-size: 0.9rem;
background-color: #06070869;
border-radius: 10px;
padding: 4px;
}
.no-loading-mask {
--progress-mask: #0000;
--poster-color: #0000;
}
.clickable {
z-index: 21;
user-select: none;
text-align: center;
width: 42px;
height: 42px;
background-size: 42px 42px;
cursor: pointer;
margin: auto 8px auto auto;
}
.hotspot-pin {
/* background-color: #3CF; */
background: radial-gradient(rgba(160, 230, 253, 1), rgb(73, 112, 251)); /* Standard */
background: -webkit-radial-gradient(rgba(160, 230, 253, 1), rgb(73, 112, 251)); /* Safari */
background: -o-radial-gradient(rgba(160, 230, 253, 1), rgb(73, 112, 251)); /* Opera 11.1 to 12.0 */
background: -moz-radial-gradient(rgba(160, 230, 253, 1), rgb(73, 112, 251)); /* FF 3.6 to 15 */
border-radius: 50%;
position: absolute;
top: 0;
left: 0;
height: 12px;
width: 12px;
z-index: 10;
}
.outer {
border: 5px solid #FFF;
height: 50px;
width: 50px;
top: -24px;
left: -24px;
}
.mid {
border: 1px solid #FFF;
height: 40px;
width: 40px;
top: -15px;
left: -15px;
}
.inner {
border: 1px solid #FFF;
height: 20px;
width: 20px;
top: -5px;
left: -5px;
}
@media only screen and (max-width: 950px) {
.hotspot-content {
height: 7rem;
max-width: 160px;
font-size: 0.7em;
}
.fullscreen-100 {
background: unset;
background: unset;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.no-loading-mask {
--progress-mask: #0000;
--poster-color: #0000;
}
.clickable {
z-index: 21;
user-select: none;
text-align: center;
width: 42px;
height: 42px;
background-size: 42px 42px;
cursor: pointer;
margin: auto 8px auto auto;
}
.viewer-bottom-full {
position: absolute;
left: 0px;
right: 0px;
bottom: 0px;
height: 60px;
background-color: #dddddd;
}
.hotspot-pin {
height: 18px;
width: 18px;
}
.outer {
top: -21px;
left: -21px;
}
.mid {
top: -12px;
left: -12px;
}
.inner {
top: -2px;
left: -2px;
}
}
.hide-child .hotspot-pin-text {
display: none
}
.hide-pulse .pulse {
display: none
}
.hotspot-pin-text {
transform: translate(-50%, -100%);
width: 350px;
position: absolute;
top: 0;
}
.pulse {
background: transparent;
border-radius: 60px;
-webkit-border-radius: 60px;
-moz-border-radius: 60px;
animation: pulse 1.5s linear;
-webkit-animation: pulse 1.5s linear;
-moz-animation: pulse 1.5s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
animation-iteration-count: infinite;
position: absolute;
z-index: 1;
opacity: 1;
}
@-moz-keyframes pulse {
0% {
-moz-transform: scale(0);
opacity: 0.0;
}
25% {
-moz-transform: scale(0);
opacity: 0.2;
}
50% {
-moz-transform: scale(0.1);
opacity: 0.5;
}
75% {
-moz-transform: scale(0.5);
opacity: 0.9;
}
100% {
-moz-transform: scale(1);
opacity: 0.0;
}
}
@-webkit-keyframes "pulse" {
0% {
-webkit-transform: scale(0);
opacity: 0.0;
}
25% {
-webkit-transform: scale(0);
opacity: 0.2;
}
50% {
-webkit-transform: scale(0.1);
opacity: 0.5;
}
75% {
-webkit-transform: scale(0.5);
opacity: 0.9;
}
100% {
-webkit-transform: scale(1);
opacity: 0.0;
}
}
</style>
</head>
<body class="fullscreen-100">
<model-viewer id="modelViewer" class='model-viewer no-loading-mask' ar camera-controls src='models/M8.glb'
alt='' style="background-color: unset;" auto-rotate-delay='8000'
camera-target="0m 1m 0m" exposure="1" shadow-softness="0.6"
quick-look-browsers="safari chrome"
ar-modes="webxr scene-viewer quick-look" noloop
shadow-intensity="1.1" environment-image="img/small_cathedral_1k.hdr"
camera-orbit="140deg 60.76deg 1.3m" min-camera-orbit="auto 0deg 0.6m"
max-camera-orbit="auto 88deg 2.6m" min-field-of-view="42.62deg" max-field-of-view="auto">
<div id="hotspot-1" style="width: 24px;height: 24px" slot="hotspot-2" data-position="0m 1m 0.1m"
data-normal="0 1 0" data-visibility-attribute="visible" onclick="onPinClick('hotspot-1')">
<div data-i18n="hotspot-1" class="hotspot-pin-text text-white hotspot-content">
AUTOMATION | The movement of the column and arm and rotation of the head in 5 robotized directions, enable perfect positioning on the target area.
</div>
<div class="hotspot-pin">
</div><!-- dot -->
<div class="pulse outer"></div><!-- pulse outer -->
<div class="pulse mid"></div><!-- pulse mid -->
<div class="pulse inner"></div><!-- pulse inner -->
</div>
<div id="hotspot-2" class="hotspot-pin" slot="hotspot-3"
data-position="0m 1.44m -0.38m" data-normal="0 1 0"
data-visibility-attribute="visible">
<div class="hotspot-pin" onclick="onPinClick('hotspot-2')">
<div class="hotspot-pin-text text-white hotspot-content" data-i18n="hotspot-2">
ROBOTIC HEAD | Exclusive MLS® multidiode applicator with 75W Peak Power
</div>
</div><!-- dot -->
<div class="pulse outer"></div><!-- pulse outer -->
<div class="pulse mid"></div><!-- pulse mid -->
<div class="pulse inner"></div><!-- pulse inner -->
</div>
<div id="hotspot-3" class="hotspot-pin" slot="hotspot-4"
data-position="-0.15m 0.87m 0.3m" data-normal="0 1 0"
data-visibility-attribute="visible">
<div class="hotspot-pin" onclick="onPinClick('hotspot-3')">
<div class="hotspot-pin-text text-white hotspot-content" data-i18n="hotspot-3">
DOUBLE TREATMENT | M8 provides treatments mainly through the robotic head, while the user is free to use the handpiece on painful areas such as trigger points.
</div><!-- dot -->
<div class="pulse outer"></div><!-- pulse outer -->
<div class="pulse mid"></div><!-- pulse mid -->
<div class="pulse inner"></div><!-- pulse inner -->
</div>
</div>
<div id="hotspot-4" class="hotspot-pin" slot="hotspot-5"
data-position="0m 0.97m 0.28m" data-normal="0 1 0"
data-visibility-attribute="visible">
<div class="hotspot-pin" onclick="onPinClick('hotspot-4')">
<div class="hotspot-pin-text text-white hotspot-content" data-i18n="hotspot-4">
SOFTWARE | It counts on 4 treatment modalities (Pain Management, Trigger Point, Anti-edema, Biostimulation) enabling an easier and quicker navigation when choosing the therapy.
</div>
<div class="pulse outer"></div><!-- pulse outer -->
<div class="pulse mid"></div><!-- pulse mid -->
<div class="pulse inner"></div><!-- pulse inner -->
</div>
</div>
<div class="viewer-bottom">
<div id="move_camera" onclick="rotateCamera()" class="clickable"
style="background-image: url(img/Move.png);"></div>
<div id="animate" onclick="model_Animate()" class="clickable"
style="background-image: url(img/Animate.png);"></div>
</div>
<script>
let forceNoIframe = true;
let forceAnnotations = true;
let colors = [];
const positions = ["-1591deg 32.76deg 100%", "90deg 70deg 100%", "0deg 70deg 100%", "-90deg 70deg 100%", "165deg 70deg 100%"];
const getAnnotations = function () {
return [document.getElementById("hotspot-1"), document.getElementById("hotspot-2"), document.getElementById("hotspot-3"), document.getElementById("hotspot-4")].filter((elem) => elem);
}
const positionToAnnotation = {
0: [],
1: ["hotspot-1"],
2: ["hotspot-2"],
3: ["hotspot-3"],
4: ["hotspot-4"]
};
getAnnotations().forEach((element)=>{
element.style.display="none";
})
modelViewer.addEventListener('load', () => {
getAnnotations().forEach((element)=>{
element.style.display="block";
})
});
</script>
<script src="js/NewContentCustomizer.js"></script>
<script>
for (let annotation of annotations) {
annotation.classList.add("hide-child");
}
let is_Open = false;
function model_Animate() {
console.log("animate")
console.log(modelViewer.paused)
if (modelViewer.paused) {
if (is_Open) {
modelViewer.animationName = "Idle";
modelViewer.animationName = "Animate";
hideAndDisablePin()
is_Open = false;
const interval = setInterval(() => {
if (modelViewer.paused) {
clearInterval(interval);
showAndEnablePin();
}
}, 500);
} else {
modelViewer.animationName = "Idle";
modelViewer.animationName = "Animate";
hideAndDisablePin()
is_Open = true;
const interval = setInterval(() => {
if (modelViewer.paused) {
clearInterval(interval);
showAndEnablePin();
}
}, 500);
}
modelViewer.play();
}
}
const onPinClick = function (annotationID) {
const item = document.getElementById(annotationID);
if (!item.classList.contains("hide-child")) {
//it was already opened! closing
for (let annotation of annotations) {
annotation.classList.add("hide-child");
annotation.classList.remove("hide-pulse");
}
return;
}
for (let annotation of annotations) {
annotation.classList.add("hide-child");
annotation.classList.remove("hide-pulse");
}
item.classList.remove("hide-child")
item.classList.add("hide-pulse")
}
const hideAndDisablePin = function () {
for (let annotation of annotations) {
annotation.classList.add("hide-child");
annotation.classList.remove("hide-pulse");
}
for (let annotation of annotations) {
annotation.style.display = "none"
}
}
const showAndEnablePin = function () {
for (let annotation of annotations) {
annotation.style.display = "block"
}
}
</script>
<style>
@media only screen and (max-width: 950px) {
.iframe-loader {
color: #dfdfdf;
}
.iframe-loader > div {
background: #dfdfdf;
}
.uqido-logo {
margin: 20px auto 0 0;
}
}
</style>
</model-viewer>
<script type="module" src="js/model-viewer/dist/1.7.2/model-viewer.min.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
</body>
</html>