-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (83 loc) · 2.89 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
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D-Sector</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css">
<style>
html, body {
height: 100%
}
</style>
</head>
<body style="background-color: #46464b">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
<div style="position: absolute;top: 0;left: 0">
<div id="frame-count">60</div>
<div id="imageLoad" style="height: 1px;width: 1px;overflow: hidden"></div>
</div>
<button type="button" class="btn btn-danger align-items-center justify-content-center" id="start-game"
style="top:0;left:0;margin:22% 50% 0 49%;z-index:10;position:absolute;display:none">Start!
</button>
<div id="center-content" role="status" class="h-100 d-flex align-items-center justify-content-center">
<table id="d-pad-table">
<tr>
<th></th>
<th>
<button type="button" class="btn btn-primary" id="up" style="width: 50px">UP</button>
</th>
<th></th>
</tr>
<tr>
<td>
<button type="button" class="btn btn-primary" id="left" style="width: 50px">LEFT</button>
</td>
<td></td>
<td>
<button type="button" class="btn btn-primary" id="right" style="width: 50px">RIGHT</button>
</td>
</tr>
<tr>
<td></td>
<td>
<button type="button" class="btn btn-primary" id="down" style="width: 50px">DOWN</button>
</td>
<td></td>
</tr>
</table>
<div id="gameWindow" style="z-index: 0"></div>
<table id="btn-table">
<tr>
<th></th>
<th>
<button type="button" class="btn btn-primary" id="escape" style="width: 50px">ESC</button>
</th>
<th></th>
</tr>
<tr>
<td>
<button type="button" class="btn btn-primary" id="change-weapon" style="width: 50px">Change</button>
</td>
<td></td>
<td>
<button type="button" class="btn btn-primary" id="fire-weapon" style="width: 50px">Fire</button>
</td>
</tr>
<tr>
<td></td>
<td>
<button type="button" class="btn btn-danger" id="ctrlq" style="width: 50px">ctrl+q</button>
</td>
<td></td>
</tr>
</table>
</div>
<div class="h-100 d-flex align-items-center justify-content-center"
style="top:0;left:0;margin:22% 50% 0 49%;z-index:100;position:absolute">
<div id="loading-spinner" class="spinner-border spinner-border-sm" role="status" hidden>
<span class="sr-only" hidden>Loading...</span>
</div>
</div>
</body>
<script src="js/ds.js"></script>
</html>