-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
78 lines (76 loc) · 2.98 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cz" lang="cz">
<head>
<meta http-equiv="Content-language" content="cs" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="VánoceBezStarostí" />
<link href="styl-menu.css" rel="stylesheet" type="text/css" />
<title>VánoceBezStarostí</title>
</head>
<body>
<div
id="desktop"
,
style="
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
"
>
<iframe
style="
border: 1px solid rgba(0, 0, 0, 0.1);
width: 100%;
height: 100%;
margin-left: -35px;
margin-right: -35px;
"
src="
https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2F9wLiMC6IhZi1yShJi8cUWx%2FHackathon-(1)%3Fpage-id%3D2%253A36%26type%3Ddesign%26node-id%3D19-136%26viewport%3D2132%252C-327%252C0.79%26t%3DF4sxlZtHKav4qd3s-1%26scaling%3Dcontain%26mode%3Ddesign"
allowfullscreen
></iframe>
</div>
<div
id="mobile"
,
style="
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
"
>
<iframe
style="
border: 1px solid rgba(0, 0, 0, 0.1);
width: 100%;
height: 100%;
margin-left: -35px;
margin-right: -35px;
"
src="
https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2F9wLiMC6IhZi1yShJi8cUWx%2FHackathon-(1)%3Fpage-id%3D2%253A36%26type%3Ddesign%26node-id%3D19-136%26viewport%3D2132%252C-327%252C0.79%26t%3DF4sxlZtHKav4qd3s-1%26scaling%3Dcontain%26mode%3Ddesign"
allowfullscreen
></iframe>
</div>
</body>
<script>
window.addEventListener("DOMContentLoaded", function () {
function checkOrientation() {
var mobile = document.getElementById("mobile");
var desktop = document.getElementById("desktop");
if (window.innerWidth > window.innerHeight) {
mobile.style.display = "none";
desktop.style.display = "block";
} else {
mobile.style.display = "block";
desktop.style.display = "none";
}
}
checkOrientation();
window.addEventListener("resize", checkOrientation);
});
</script>
</html>