-
Notifications
You must be signed in to change notification settings - Fork 0
/
hub.html
36 lines (34 loc) · 936 Bytes
/
hub.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
}
</style>
</head>
<body>
<iframe
id="screen"
src="https://hubs.mozilla.com/JM9xED9/makeatontest/?embed_token=25a9de77259b945ed6b7d2723f952acb"
allow="microphone; camera; vr; speaker;"
></iframe>
<script>
let screen = document.getElementById("screen");
window.onload = () => {
screen.style.width = window.innerWidth + "px";
screen.style.height = window.innerHeight + "px";
};
window.addEventListener("resize", () => {
screen.style.width = window.innerWidth + "px";
screen.style.height = window.innerHeight + "px";
});
</script>
</body>
</html>