-
Notifications
You must be signed in to change notification settings - Fork 0
/
VirtualValve.html
95 lines (79 loc) · 3.94 KB
/
VirtualValve.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>
<meta charset="utf-8">
<title>Virtual Valve</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>
</head>
<body class="fullscreen">
<div style="display: flex; flex-direction: row;height: 100%;min-height: 100%;flex-wrap: wrap">
<model-viewer id="model-viewer" class='model-viewer-w80' ar camera-controls src='models/Valvola.glb' camera-orbit="-175deg 75deg 105%"
ios-src='models/Valvola.usdz' alt='' min-field-of-view="25deg" camera-target="0m 0.125m 0m" noloop
max-camera-orbit="auto 75.5deg 0" exposure="0.6" shadow-intensity="2.5" shadow-softness="0.6"
quick-look-browsers="safari chrome">
<div class="logo-bar">
<div class="upper-left-logo uqido-logo"></div>
</div>
<div class="viewer-bottom">
<div id="move_camera" class="clickable" style="background-image: url(img/Move.png);"></div>
<div id="animate" class="clickable" style="background-image: url(img/Animate.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 = ["-170deg 75deg 105%", "-80deg 75deg 105%", "95deg 75deg 105%"];
let cameraIndex = 0;
let isOpen=true;
animate.onclick = function () {
if(modelViewer.paused){
if(isOpen){
modelViewer.animationName="leva_close";
isOpen=false;
}else{
modelViewer.animationName="leva_open";
isOpen=true;
}
modelViewer.play();
}
};
cameraSwitch.onclick = function () {
cameraIndex = (++cameraIndex) % positions.length;
modelViewer.cameraOrbit = positions[cameraIndex];
};
</script>
</model-viewer>
<div class="right-description">
<div>
<div style="color: red; font-size: 3em;">R730GB</div>
<br><br>
<div class="text" style="font-weight: bold;">Valvola a sfera, attacchi F-F, maniglia a leva, <br>
certificata EN331:2015, per alte temperature</div><br><br>
<div class="text">Valvola a sfera, in ottone nichelato, con attacchi femmina-femmina.<br>
Maniglia a leva gialla.<br>
Passaggio totale.<br>
Per impianti gas della prima, seconda e terza famiglia (EN 437).<br>
Campo di temperatura: -20÷60 °C.<br>
Resistenza alle alte temperature: classe B 0,1; 650 °C per 30’.<br>
Certificata EN 331:2015.<br>
Comunicazione Tecnica1006IT</div><br><br><br>
<div class="call-to-action-button">SCHEDA TECNICA</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>