-
Notifications
You must be signed in to change notification settings - Fork 0
/
VirtualPlant.html
89 lines (72 loc) · 3.4 KB
/
VirtualPlant.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pianta Grassa</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>
.fullscreen{
background: linear-gradient(360deg, rgb(132, 75, 0) 0%, rgb(243, 230, 189) 100%);
}
.call-to-action-button {
background-color: #2f6100;
}
.right-description:after{
background: transparent;
}
</style>
</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/Pianta.glb'
ios-src='models/Pianta.usdz' alt='' min-field-of-view="45deg" max-camera-orbit="auto 105.5deg 0.45m"
min-camera-orbit="auto auto 0.25m" camera-orbit="auto auto 0.38m" camera-target="0m 0.09m 0m"
exposure="0.8" 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>
<script src="js/LoadingBar.js"></script>
<script>
const modelViewer = document.getElementById('model-viewer');
const cameraSwitch = document.getElementById('move_camera');
const positions = ["-35deg 65deg 105%", "-90deg 65deg 105%", "180deg 65deg 105%"];
let cameraIndex = 0;
cameraSwitch.onclick = function () {
cameraIndex = (++cameraIndex) % positions.length;
modelViewer.cameraOrbit = positions[cameraIndex];
};
</script>
</model-viewer>
<div class="right-description">
<div>
<div style="color: #2f6100; font-size: 3em;">Pianta Grassa</div>
<br><br>
<div class="text">Le piante grasse si distinguono in quelle a fusti, fogliari, caduciformi e quelle che
fioriscono, come il cactus originario del Messico Centrale. Quest’ultima pianta si sviluppa più in
larghezza,ha la superficie ricoperta di spine bianche e in estate fioriscono dei fiori bianchi
all’apice.
</div>
<br><br><br>
<div class="call-to-action-button">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>