This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
doom.html
91 lines (89 loc) · 2.2 KB
/
doom.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
title: D O O M
permalink: /doom/
---
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>-=// D O O M \\=-</title>
<style>
html,
body {
min-height: 100%;
}
body {
font-family: sans-serif;
text-align: center;
background: #761E3D;
background-size: cover;
color: #aaa;
}
#dosbox:hover .dosbox-start {
opacity: 1;
}
#dosbox .dosbox-start {
/* background: url(https://goo.gl/LiSWVh) center no-repeat; */
background-size: 150px;
height: 100%;
image-rendering: pixelated;
top: 4% !important;
color: rgba(0, 0, 0, 0);
filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.95));
opacity: 0;
}
.dosbox-powered {
opacity: 0;
}
.dosbox-container {
background: #000 url(https://goo.gl/aZVGdQ) center no-repeat;
margin: 10% auto 0 auto;
width: 640px;
height: 400px;
}
.dosbox-container > .dosbox-overlay {
background: url(https://js-dos.com/cdn/doom_2.png);
}
button {
background: #a00;
border: 0;
padding: 5px 15px;
cursor: pointer;
font-weight: 700;
}
p {
font-size: 11px;
}
a {
color: #aaa;
}
</style>
<script src="https://js-dos.com/cdn/js-dos-api.js"></script>
</head>
<body>
<div id="dosbox"></div>
<br />
<button onclick="dosbox.requestFullScreen();">Make fullscreen</button><br />
<p>
Click on Screen, Press Enter to start<br />
Arrows to move, Space to use, Ctrl to Fire<br /><a
href="http://doom.wikia.com/wiki/Controls"
target="_b"
>More controls</a
>
</p>
</body>
<script>
var dosbox = new Dosbox({
id: "dosbox",
onload: function(dosbox) {
dosbox.run(
"https://cdn.rawgit.com/darrengruber/docker-em-dosbox-doom/afad47b2/doom_shareware/doom19s_deiced.zip",
"./DOOM.EXE"
);
},
onrun: function(dosbox, app) {
console.log("App '" + app + "' is runned");
}
});
</script>
</html>