-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
76 lines (67 loc) · 3.25 KB
/
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
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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta name="google-site-verification" content="dRFt1DjMaz4QI-gPjzUmoztVbRdcXL8jltdpfQp6Klo" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="description" content="Play DOOM via JS-DOS.">
<meta name="keywords" content="DOOM,pc,game,javscript">
<title>Play DOOM via JS-DOS</title>
<meta property="og:title" content='DOOM · js-dos' />
<meta property="og:description" content="Play in the DOOM in browser." />
<meta property="og:type" content="game" />
<meta property="og:url" content="https://thedoggybrad.github.io/doom_on_js-dos/" />
<meta property="og:image" content="https://thedoggybrad.github.io/doom_on_js-dos/DOOM.png" />
<!-- CSS -->
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
<!-- FAVICON -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<script type="text/javascript" src="https://thedoggybrad.github.io/doom_on_js-dos/js-dos-api.js"></script>
<body style="background-color:#121212; color: white">
<style>
#DOOM > .dosbox-container { width: 640px; height: 400px; }
#DOOM > .dosbox-container > .dosbox-overlay { background: url("https://thedoggybrad.github.io/doom_on_js-dos/DOOM.png"); }
#DOOM > .dosbox-container > .dosbox-overlay > .dosbox-start {
border-radius: 17px 17px 17px 17px;
-moz-border-radius: 17px 17px 17px 17px;
-webkit-border-radius: 17px 17px 17px 17px;
border: 0px solid #000000;
background-color: rgba(90, 90, 90, 0.57);
padding: 5px;
text-align: center;
vertical-align: middle;
width: 10em;
margin: 0 auto;
}
a:link {color:white}
</style>
<center>
<h1>Play DOOM via JS-DOS</h1>
<footer>©TheDoggyBrad Software Lab. All Rights Reserved.</footer>
<h3><a href="https://github.com/thedoggybrad/doom_on_js-dos/blob/main/MANUAL.MD">User Manual</a></h3>
<div style="margin-top:20px;" id="DOOM" class="dosbox-default"></div>
<p><br /><a id="fullscreen_DOOM" href="javascript: void 0;" class="fa-solid fa-expand"></a> FULLSCREEN</p>
<script type="text/javascript">
var dosbox_DOOM = new Dosbox({
id: "DOOM",
onload: function (dosbox) {
dosbox_DOOM.run("https://thedoggybrad.github.io/doom_on_js-dos/[email protected]", "./DOOM/DOOM.EXE");
},
onrun: function (dosbox, app) {
console.log("App '" + app + "' is runned");
}
});
document.getElementById("fullscreen_DOOM").addEventListener("click", function() {
dosbox_DOOM.requestFullScreen();
});
</script>
</center>
</body>
</html>