-
Notifications
You must be signed in to change notification settings - Fork 0
/
VirtualWashingMachine.html
136 lines (116 loc) · 5.07 KB
/
VirtualWashingMachine.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Virtual Washing Machine</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>
<style>
.right-description:after {
margin-left: 0px;
background: #011e41;
filter: none;
}
@font-face {
font-family: Lavatrice-reg;
src: url(fonts/Lavatrice-reg.woff2) format("woff2");
}
@font-face {
font-family: Lavatrice-bold;
src: url(fonts/Lavatrice-bold.woff2) format("woff2");
}
.text-lavatrice{
color: white;
font-family: Lavatrice-reg;
font-weight: 500;
font-size: 1rem;
margin-bottom: 16px;
}
</style>
</head>
<body class="fullscreen" style="color: #011e41;">
<div style="display: flex; flex-direction: row;height: 100%;min-height: 100%;flex-wrap: wrap;background-color: #011e41;">
<model-viewer id="model-viewer" class='model-viewer-w80' ar camera-controls src='models/WashingMachine.glb'
camera-orbit="-35deg 65deg 105%"
ios-src='models/WashingMachine.usdz' alt='' min-field-of-view="51deg" max-field-of-view="55deg" camera-target="0m 0.45m 0m"
max-camera-orbit="auto 90.5deg 0" min-camera-orbit="auto 28.5deg 0" exposure="0.6"
shadow-intensity="2.5" shadow-softness="0.6"
quick-look-browsers="safari chrome" noloop>
<div class="logo-bar">
<div class="upper-left-logo uqido-logo-white"></div>
</div>
<div class="viewer-bottom">
<div id="move_camera" class="clickable" style="background-image: url(img/Move-white.png);"></div>
<div id="animate" class="clickable" style="background-image: url(img/Animate-white.png);"></div>
</div>
<script src="js/LoadingBar.js"></script>
<script>
const modelViewer = document.getElementById('model-viewer');
const animate = document.getElementById('animate');
const cameraSwitch = document.getElementById('move_camera');
const positions = ["-35deg 65deg 105%", "-90deg 65deg 105%", "180deg 65deg 105%"];
let cameraIndex = 0;
let isOpen=false;
animate.onclick = function () {
if(modelViewer.paused){
if(isOpen){
modelViewer.animationName="close";
isOpen=false;
}else{
modelViewer.animationName="open";
isOpen=true;
}
modelViewer.play();
}
};
cameraSwitch.onclick = function () {
cameraIndex = (++cameraIndex) % positions.length;
modelViewer.cameraOrbit = positions[cameraIndex];
};
</script>
<style>
@media only screen and (max-width: 950px) {
.iframe-loader {
color: white;
}
.iframe-loader > div {
background: white;
}
}
</style>
</model-viewer>
<div class="right-description">
<div>
<div class="text-lavatrice" style="font-family: Lavatrice-bold;">G9843FNG</div>
<div class="text-lavatrice" style="font-family: Lavatrice-bold; font-size: 2.5rem;">
Lavatrice Super Care 900<br>
8 kg A+++ 1200 giri/minuto
</div>
<img src="img/a+++.jpg"></img>
<br><br>
<div class="text text-lavatrice">
Super Care 900<br>8kg A+++ 1200 giri 38cm<br>TC4 Small LED Motore Inverter Oblò Nero PTO<br>
SensiCare - Vapore Anti-Allergy<br>Woolmark Blue - Outdoor Denim
</div>
<br>
<div class="text-lavatrice" style="font-family: Lavatrice-bold; font-size: 2.5rem;">€ 549,99</div>
<br>
<div class="call-to-action-button text-lavatrice" style="font-family: Lavatrice-bold;
background-color: white; border-radius: 3px;color: #011e41;">SCOPRI DI PIU'</div>
</div>
</div>
</div>
<script type="module" src="js/model-viewer/dist/model-viewer.js"></script>
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script>
</body>
</html>