-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (75 loc) · 2.36 KB
/
Copy pathindex.html
File metadata and controls
85 lines (75 loc) · 2.36 KB
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
<!DOCTYPE HTML>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#fafafa" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Mitsubishi Eclipse Cross 2024</title>
<link rel="icon" type="image/x-icon" href="3dView/assets/logo/favicon.ico" />
<style>
body {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
button {
font-family: "MMC OFFICE";
font-size: 20px;
font-weight: 700;
line-height: 150%;
text-decoration-line: underline;
text-transform: uppercase;
background-color: transparent;
border: none;
color: rgb(237, 0, 0);
cursor: pointer;
text-align: center;
}
#container {
width: 100%;
height: 100%;
border: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div id="container">
<button id="3dButton" onclick=openIframe()>VEJA O CARRO EM 3D</button>
</div>
<script>
function openIframe() {
container = document.getElementById("container");
button = document.getElementById("3dButton");
button.style.display = "none";
var w = window.innerWidth;
if (w <= 768) {
/* MOBILE */
container.innerHTML = '<iframe src="3dView/3D.mobile.html" title="3dView" id="iframeDesk" frameborder="0" ' +
'width="100%" height="100%"></iframe>';
} else {
/* DESK */
container.innerHTML = '<iframe src="3dView/3D.desk.html" title="3dView" id="iframeDesk" frameborder="0" ' +
'width="100%" height="100%"></iframe>';
}
}
</script>
</body>
</html>