forked from ken230423432423/webdoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (27 loc) · 858 Bytes
/
index.html
File metadata and controls
30 lines (27 loc) · 858 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>DOOM</title>
<script src="js-dos.js"></script>
</head>
<body>
<center>
<canvas></canvas>
<br />
<button onclick="ci.fullscreen()" style="visibility: hidden;">Fullscreen</button>
</center>
<script>
Dos(document.getElementsByTagName("canvas")[0], { autolock: true }).ready((fs, main) => {
fs.extract("DOOM.ZIP").then(() => {
main(["-c", "DOOM"]).then((ci) => {
window.ci = ci;
document.getElementsByTagName("button")[0].style.visibility = 'initial';
document.title = "DOOM";
})
});
});
</script>
</body>
</html>