-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (199 loc) · 8.2 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<title>KT&NE Bomb Assistant</title>
<meta charset="utf-8" />
<meta name="author" content="Dylan Barkowsky" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Boostrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
<!-- My CSS-->
<link type="text/css" rel="stylesheet" href="./css/style.css" />
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">BombAssistant</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<!-- <li class="nav-item">
<a class="nav-link active" aria-current="page" href="https://dbarkowsky.github.io/">My Site</a>
</li> -->
<li class="nav-item">
<a class="nav-link" href="https://github.com/dbarkowsky/BombAssistant">GitHub</a>
</li>
</ul>
</div>
</div>
</nav>
<section class="container">
<!-- Buttons -->
<div class="row" id="button-row">
<div class="col">
<button type="button" class="btn btn-secondary mx-auto my-3 menu-buttons" data-bs-toggle="modal"
data-bs-target="#bomb-globals-modal">
Bomb
</button>
</div>
<div class="col">
<button class="btn btn-secondary mx-auto my-3 menu-buttons" id="home">
Modules
</button>
</div>
</div>
<!-- Modal popup for global variables -->
<div class="modal fade" id="bomb-globals-modal" tabindex="-1" aria-hidden="true" role="dialog">
<div class="modal-dialog modal-lg modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5>Set global bomb settings.</h5>
</div>
<div class="modal-body">
<div id="even-odd-serial" class="global-setting-container">
<div class="row steel-text">
The last digit of the serial is...
</div>
<div class="row">
<div class="col">
<button class="steel-button even-odd-button" id="even">
EVEN
</button>
</div>
<div class="col">
<button class="steel-button even-odd-button" id="odd">
ODD
</button>
</div>
</div>
</div>
<div id="vowel-serial" class="global-setting-container">
<div class="row steel-text">The serial contains a vowel.</div>
<div class="row">
<div class="col">
<button class="steel-button vowel-button" value="1" id="vowel-true">
YES
</button>
</div>
<div class="col">
<button class="steel-button vowel-button" value="0" id="vowel-false">
NO
</button>
</div>
</div>
</div>
<div id="batteries" class="global-setting-container">
<div class="row steel-text">How many batteries?</div>
<div class="row">
<div class="col">
<button id="battery-down" class="battery-button steel-button">
-
</button>
</div>
<div class="col">
<div id="battery-display" value="0">0</div>
</div>
<div class="col">
<button id="battery-up" class="battery-button steel-button">
+
</button>
</div>
</div>
</div>
<div id="lit-indicators" class="global-setting-container">
<div class="row steel-text">Which indicators are lit?</div>
<div class="row">
<div class="col">
<button class="steel-button indicator-button" id="frk">
FRK
</button>
</div>
<div class="col">
<button class="steel-button indicator-button" id="car">
CAR
</button>
</div>
</div>
</div>
<div id="parallel-port" class="global-setting-container">
<div class="row steel-text">
Is there a parallel port?
<img id="parallel-img" src="./images/parallelport.svg" alt="A parallel port" />
</div>
<div class="row">
<div class="col">
<button class="steel-button parallel-port-button" id="parallel-true">
YES
</button>
</div>
<div class="col">
<button class="steel-button parallel-port-button" id="parallel-false">
NO
</button>
</div>
</div>
</div>
<div id="strikes" class="global-setting-container">
<div class="row steel-text">How many strikes?</div>
<div class="row">
<div class="col">
<button id="strike-down" class="strike-button steel-button">
-
</button>
</div>
<div class="col">
<div id="strike-display" value="0">0</div>
</div>
<div class="col">
<button id="strike-up" class="strike-button steel-button">
+
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal for setting pop up notifications. Gets redrawn as needed. -->
<div class="modal fade" id="popup-modal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-scrollable">
<div class="modal-content">
<!-- <div class="modal-header">Set global bomb settings.</div> -->
<div class="modal-body" id="popup-body"></div>
</div>
</div>
</div>
<!-- Canvas area for drawing modules -->
<div id="canvas" class="mx-auto">
</div>
</section>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!-- Jquery import -->
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk="
crossorigin="anonymous"></script>
<!-- Module script files -->
<script src="./modules/simple-wires.js" type="text/javascript"></script>
<script src="./modules/abc123.js" type="text/javascript"></script>
<script src="./modules/complicated-wires.js" type="text/javascript"></script>
<script src="./modules/mazes.js" type="text/javascript"></script>
<script src="./modules/memory.js" type="text/javascript"></script>
<script src="./modules/morse-code.js" type="text/javascript"></script>
<script src="./modules/needy-knob.js" type="text/javascript"></script>
<script src="./modules/passwords.js" type="text/javascript"></script>
<script src="./modules/simon-says.js" type="text/javascript"></script>
<script src="./modules/symbols.js" type="text/javascript"></script>
<script src="./modules/the-button.js" type="text/javascript"></script>
<script src="./modules/whos-on-first.js" type="text/javascript"></script>
<script src="./modules/bomb.js" type="text/javascript"></script>
<!-- Controller script to manage main page behaviours -->
<script src="./modules/controller.js" type="text/javascript"></script>
</body>
</html>