-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
44 lines (42 loc) · 980 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<style>
html,
body,
#jsdos {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
border: none;
overflow: hidden;
}
</style>
</head>
<body>
<iframe
width="680"
height="400"
frameborder="0"
src="https://dos.zone/player/?bundleUrl=https%3A%2F%2Fcdn.dos.zone%2Fcustom%2Fdos%2Fdoom.jsdos?anonymous=1"
allowfullscreen
>
</iframe>
<script>
window.onload = () => {
document.getElementById("jsdos").focus();
window.addEventListener("message", (e) => {
if (e.data.message === "dz-player-exit") {
document.getElementById("jsdos").style.display = "none";
alert("js-dos exited");
}
});
};
</script>
</body>
</html>