Spaces:
Running
Running
Commit
·
8a71d41
1
Parent(s):
02b4335
Update index.html
Browse files- index.html +17 -30
index.html
CHANGED
|
@@ -1,30 +1,17 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
<script type="text/javascript">
|
| 19 |
-
var dosbox = new Dosbox({
|
| 20 |
-
id: "dosbox",
|
| 21 |
-
onload: function (dosbox) {
|
| 22 |
-
dosbox.run("upload/DOOM-@evilution.zip", "./doom");
|
| 23 |
-
},
|
| 24 |
-
onrun: function (dosbox, app) {
|
| 25 |
-
console.log("App '" + app + "' is runned");
|
| 26 |
-
}
|
| 27 |
-
});
|
| 28 |
-
</script>
|
| 29 |
-
</body>
|
| 30 |
-
</html>
|
|
|
|
| 1 |
+
|
| 2 |
+
<iframe
|
| 3 |
+
width="680"
|
| 4 |
+
height="400"
|
| 5 |
+
frameborder="10"
|
| 6 |
+
src="https://dos.zone/player/?bundleUrl=https%3A%2F%2Fcdn.dos.zone%2Fcustom%2Fdos%2Fdoom.jsdos?anonymous=1"
|
| 7 |
+
allowfullscreen>
|
| 8 |
+
</iframe>
|
| 9 |
+
<!--
|
| 10 |
+
Message 'dz-player-exit' will be fired when js-dos is exited:
|
| 11 |
+
|
| 12 |
+
window.addEventListener("message", (e) => {
|
| 13 |
+
if (e.data.message === "dz-player-exit") {
|
| 14 |
+
// ...
|
| 15 |
+
}
|
| 16 |
+
});
|
| 17 |
+
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|