forked from ydrk/doom-jsdos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (32 loc) · 852 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#dos {
width: 100%;
height: 100%;
}
</style>
<link rel="stylesheet" href="https://v8.js-dos.com/latest/js-dos.css">
<script src="https://v8.js-dos.com/latest/js-dos.js"></script>
</head>
<body>
<div id="dos" class="jsdos-rso"></div>
<script>
function loadDosFile(url) {
Dos(document.getElementById("dos"), {
url: url,
wdosboxUrl: "files/wlibzip.wasm", // Specify your wasm path here
});
}
// Automatically load All-in-One
loadDosFile("files/all.jsdos");
</script>
</body>
</html>