-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
47 lines (46 loc) · 1.22 KB
/
app.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>Media Zoo</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 100%;
position: fixed;
overflow: hidden;
background-color: black;
}
iframe {
width: 2160px;
height: 3840px;
border: none;
transform-origin: 0 0;
position: absolute;
left: 50%;
transform: scale(calc(var(--height) / 3840)) translateX(-50%);
}
</style>
</head>
<body>
<iframe id="app" src="https://mz-event-screen.stg.finervision.com/?v=2.0.0">
</iframe>
<script>
function setHeight() {
const app = document.querySelector("#app");
if (app === null) return;
app.style.setProperty("--height", `${window.innerHeight}`)
}
setHeight();
window.addEventListener("resize", () => setHeight())
</script>
</body>
</html>