forked from ikeshark/edhelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·382 lines (379 loc) · 20 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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html manifest="main.manifest" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="styles.css">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="img/ring.png">
<link rel="apple-touch-icon" href="img/ring.png">
<title>EDHelper</title>
</head>
<body>
<div id="mainContainer" class="grid">
<!-- Player One -->
<div class="flex grid-child-one l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
<!-- Player Two -->
<div class="flex grid-child-two l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
<!-- Player Three -->
<div class="flex grid-child-three l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
<!-- Player Four -->
<div class="flex grid-child-four l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
<!-- Player Five -->
<div class="flex grid-child-five l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
<!-- Player Six -->
<div class="flex grid-child-six l-50vh transition">
<div class="l-75w">
<button class="lifeButtons l-85h outline"></button>
<p class="playerName l-15h l-15h"></p>
</div>
<div class="l-25w">
<button class="l-50h top-btn">
<img class="l-mainIcons" alt="sword icon" src="img/sword.png">
</button>
<button class="l-50h bottom-btn">
<img class="l-mainIcons" alt="rotate icon" src="img/rotate.png">
</button>
</div>
</div>
</div>
<!-- Modals -->
<div id="modalBackground" class="hidden-modal l-full-abs">
<!-- Life Modal -->
<div id="modalWindowLife" class="l-modal hidden-modal flex transition dark-grey-bg">
<div style="width:31%;">
<div class="l-33h flex">
<button value="1" class="plusMinus l-50w">+ 1</button>
<button value="2" class="plusMinus l-50w">+ 2</button>
</div>
<div class="l-33h flex">
<button value="5" class="plusMinus l-50w">+ 5</button>
<button value="10" class="plusMinus l-50w">+ 10</button>
</div>
<button value="2" class="doubleHalve l-33h headline">Double</button>
</div>
<div style="width:38%;">
<p id="modalLifeDisplay" class="outline flex flex-col l-66h"></p>
<p id="l-lifeHistoryDisplay" class="hidden monospace three-halves-font text-align l-66h"></p>
<button id="showLH" class="headline l-33h">Show <br> Life History</button>
</div>
<div style="width:31%;">
<div class="l-33h flex">
<button value="-1" class="plusMinus l-50w">– 1</button>
<button value="-2" class="plusMinus l-50w">– 2</button>
</div>
<div class="l-33h flex">
<button value="-5" class="plusMinus l-50w">– 5</button>
<button value="-10" class="plusMinus l-50w">– 10</button>
</div>
<div class="l-33h flex">
<button value="0.5" class="doubleHalve halveUp l-50w headline">Halve <span class="sub">(Up)</span></button>
<button value="0.5" class="doubleHalve l-50w headline">Halve <span class="sub">(Down)</span></button>
</div>
</div>
<button id="lifeExit" class="exit l-33h">×</button>
</div>
<!-- Commander Modal -->
<div id="modalWindowCmd" class="l-modal l-modal-tall hidden-modal transition dark-grey-bg text-align">
<p id="l-currentPlayer" class="large-font"><span></span></p>
<input type="checkbox" id="partnerCheckbox">
<label for="partnerCheckbox" class="l-checkbox-p dark-grey-bg small-headline">
Partners
</label>
<div class="flex l-78vh-p">
<div class="l-37w flex flex-col">
<p class="headline l-full-w l-cmd-cont-headline">Commanders</p>
<div class="l-cmd-partner-cont">
<div class="flex l-98w">
<input type="radio" name="cmdModalGroup" value="0" id="cmdButton0">
<label data-attr="1" for="cmdButton0" class="l-player-box outline small player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="1" id="cmdButton1">
<label data-attr="2" for="cmdButton1" class="l-player-box outline small player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="2" id="cmdButton2">
<label data-attr="3" for="cmdButton2" class="l-player-box outline small player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="3" id="cmdButton3">
<label data-attr="4" for="cmdButton3" class="l-player-box outline small player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="4" id="cmdButton4">
<label data-attr="5" for="cmdButton4" class="l-player-box outline small player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="5" id="cmdButton5">
<label data-attr="6" for="cmdButton5" class="l-player-box outline small player-btn l-player-number player-number"></label>
</div>
<div class="flex l-98w l-partners">
<input type="radio" name="cmdModalGroup" value="6" id="partnerButton0">
<label data-attr="1B" for="partnerButton0" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="7" id="partnerButton1">
<label data-attr="2B" for="partnerButton1" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="8" id="partnerButton2">
<label data-attr="3B" for="partnerButton2" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="9" id="partnerButton3">
<label data-attr="4B" for="partnerButton3" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="10" id="partnerButton4">
<label data-attr="5B" for="partnerButton4" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
<input type="radio" name="cmdModalGroup" value="11" id="partnerButton5">
<label data-attr="6B" for="partnerButton5" class="l-player-box outline small behind player-btn l-player-number player-number"></label>
</div>
<div class="l-cmd-partner-bg"></div>
</div>
</div>
<div class="flex flex-col l-25w">
<button value="5" id="plus5" class="j-cmd-inc disabled invert-btn dbl-font l-middle-btn-1">
+ 5
</button>
<button value="1" id="plus" class="j-cmd-inc disabled invert-btn dbl-font l-middle-btn-1">
+ 1
</button>
<button value="-1" id="minus" class="j-cmd-inc disabled invert-btn dbl-font l-middle-btn-1">
– 1
</button>
<button id="cmdExit" class="exit">
×
</button>
</div>
<div class="flex flex-spaceAround l-37w otherCounter-cont l-bottom-p">
<div class="l-otherCounters flex flex-col">
<p class="headline-med">Cast Count</p>
<input type="radio" value="castCount" name="cmdModalGroup" id="castCount">
<label class="outline small" for="castCount"></label>
</div>
<div class="l-otherCounters flex flex-col">
<p class="headline-med">Experience</p>
<input type="radio" value="experience" name="cmdModalGroup" id="experience">
<label class="outline small" for="experience"></label>
</div>
<div class="l-otherCounters flex flex-col">
<p class="headline-med">Poison</p>
<input type="radio" value="poison" name="cmdModalGroup" id="poison">
<label class="outline small" for="poison"></label>
</div>
<div class="l-otherCounters flex flex-col">
<p class="headline-med">Energy</p>
<input type="radio" value="energy" name="cmdModalGroup" id="energy">
<label class="outline small" for="energy"></label>
</div>
</div>
</div>
</div>
<!-- Utility Modal -->
<div id="modalWindowUtility" class="l-modal hidden-modal flex transition dark-grey-bg text-align">
<div class="l-big-btn whitesmoke">
<button id="addPlayer" class="l-half-btn half-btn headline">Add Player</button>
<button id="hidePlayer" class="l-half-btn half-btn headline">Remove Player</button>
</div>
<div class="l-big-btn whitesmoke">
<button id="newGamePrompt" class="l-half-btn half-btn headline">Start New Game</button>
<button id="graphGame" class="l-half-btn half-btn headline">Graph Game</button>
</div>
<div class="l-big-btn whitesmoke">
<button id="changeColors" class="l-half-btn half-btn headline">Change Colors</button>
<button id="metagame" class="l-half-btn half-btn headline">Metagame Data</button>
</div>
<div class="l-big-btn whitesmoke">
<button id="massLife" class="l-half-btn half-btn headline">Mass Life Change</button>
<button id="dice" class="l-half-btn half-btn headline">Random Numbers</button>
</div>
<button id="l-utiliExit" class="exit">×</button>
<button id="l-utiliRotate" class="rotate"></button>
</div>
<!-- Metagame Modal -->
<div id="modalWindowMetagame" class="l-modal hidden-modal transition dark-grey-bg">
<div>
<p>Total Number of Games</p>
<div id="numGames" class="flex flex-align"></div>
</div>
<div>
<p>Average Poison Kills Per Game</p>
<div id="poisonKills" class="flex flex-align"></div>
</div>
<div>
<p>Average Commander Kills Per Game</p>
<div id="cmdKills" class="flex flex-align"></div>
</div>
<div>
<p>Total Time</p>
<div id="totalTime" class="flex flex-align"></div>
</div>
<div>
<p>Average Time Per Player</p>
<div id="timePerPlayer" class="flex flex-align"></div>
</div>
<div class="flex">
<button id="metaReset">Reset Stats</button>
</div>
<button id="metaExit" class="exit">×</button>
<button id="metaRotate" class="rotate"></button>
</div>
<!-- Change Color Modal -->
<div id="modalWindowChangeColor" class="l-modal hidden-modal flex transition dark-grey-bg">
<button id="singleColors" class="colorMenu l-short-btn invert-btn">1 color</button>
<button id="twoColors" class="colorMenu l-short-btn">2 colors</button>
<button id="threeColors" class="colorMenu l-short-btn">3 colors</button>
<button id="fourFiveColors" class="colorMenu l-short-btn">4/5 colors</button>
<button id="otherColors" class="colorMenu l-short-btn">Other Colors</button>
<input type="checkbox" id="gradientCheckbox">
<label for="gradientCheckbox" class="hidden l-gradient-btn small-headline">Gradients</label>
<div class="l-50h flex flex-align">
<input type="radio" name="chooseColor" value="0" id="radio0">
<label for="radio0" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="1" id="radio1">
<label for="radio1" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="2" id="radio2">
<label for="radio2" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="3" id="radio3">
<label for="radio3" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="4" id="radio4">
<label for="radio4" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="5" id="radio5">
<label for="radio5" class="allColors l-squat-btn"></label>
<input type="radio" name="chooseColor" value="" id="radio6">
<label for="radio6" class="allColors l-squat-btn hidden"></label>
<input type="radio" name="chooseColor" value="" id="radio7">
<label for="radio7" class="allColors l-squat-btn hidden"></label>
<input type="radio" name="chooseColor" value="" id="radio8">
<label for="radio8" class="allColors l-squat-btn hidden"></label>
<input type="radio" name="chooseColor" value="" id="radio9">
<label for="radio9" class="allColors l-squat-btn hidden"></label>
</div>
<button value="0" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button value="1" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button value="2" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button value="3" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button value="4" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button value="5" class="choosePlayerButtons dbl-font l-btn-row invisible outline small"></button>
<button id="choosePlayerExit" class="exit">×</button>
<button id="choosePlayerRotate" class="rotate"></button>
</div>
<!-- Dice Modal -->
<div id="modalWindowDice" class="l-modal hidden-modal transition flex flex-align dark-grey-bg">
<button value="4" class="dbl-font l-dice invert-btn">4</button>
<button value="5" class="dbl-font l-dice invert-btn">5</button>
<button value="7" class="dbl-font l-dice invert-btn">7</button>
<button value="8" class="dbl-font l-dice invert-btn">8</button>
<button value="9" class="dbl-font l-dice invert-btn">9</button>
<button value="10" class="dbl-font l-dice invert-btn">10</button>
<button value="11" class="dbl-font l-dice invert-btn">11</button>
<button value="12" class="dbl-font l-dice invert-btn">12</button>
<button value="13" class="dbl-font l-dice invert-btn">13</button>
<button value="14" class="dbl-font l-dice invert-btn">14</button>
<button value="15" class="dbl-font l-dice invert-btn">15</button>
<button value="16" class="dbl-font l-dice invert-btn">16</button>
<button value="17" class="dbl-font l-dice invert-btn">17</button>
<button value="18" class="dbl-font l-dice invert-btn">18</button>
<button value="19" class="dbl-font l-dice invert-btn">19</button>
<button value="21" class="dbl-font l-dice invert-btn">21</button>
<div class="l-dice flex">
<button id="exitDice" class="exit vert-text l-50w">×</button>
<button id="diceRotate" class="l-50w rotate"></button>
</div>
</div>
<!-- Mass Life Change Modal -->
<div id="modalWindowMassLife" class="l-modal hidden-modal flex transition dark-grey-bg">
<div class="l-50w">
<p class="headline text-align">Exclude</p>
<div class="l-full flex">
<input type="radio" name="excludeGroup" value="0" id="excludeP0">
<label data-attr="1" for="excludeP0" class="l-player-box hidden outline small l-player-number player-number"></label>
<input type="radio" name="excludeGroup" value="1" id="excludeP1">
<label data-attr="2" for="excludeP1" class="l-player-box hidden outline small l-player-number player-number"></label>
<input type="radio" name="excludeGroup" value="2" id="excludeP2">
<label data-attr="3" for="excludeP2" class="l-player-box hidden outline small l-player-number player-number"></label>
<input type="radio" name="excludeGroup" value="3" id="excludeP3">
<label data-attr="4" for="excludeP3" class="l-player-box hidden outline small l-player-number player-number"></label>
<input type="radio" name="excludeGroup" value="4" id="excludeP4">
<label data-attr="5" for="excludeP4" class="l-player-box hidden outline small l-player-number player-number"></label>
<input type="radio" name="excludeGroup" value="5" id="excludeP5">
<label data-attr="6" for="excludeP5" class="l-player-box hidden outline small l-player-number player-number"></label>
<button id="l-clearExcluded" class="whitesmoke">Clear</button>
</div>
</div>
<div class="flex flex-col l-25w">
<button value="5" id="massPlus5" class="invert-btn l-middle-btn three-halves-font">+ 5</button>
<button value="1" id="massPlus" class="invert-btn l-middle-btn three-halves-font">+ 1</button>
<button value="-1" id="massMinus" class="invert-btn l-middle-btn three-halves-font">– 1</button>
<button value="-5" id="massMinus5" class="invert-btn l-middle-btn three-halves-font">– 5</button>
</div>
<div class="flex flex-col l-25w">
<button value="2" id="massDouble" class="invert-btn l-middle-btn three-halves-font">Double</button>
<button value="0.5" id="massHalveUp" class="invert-btn halveUp l-middle-btn three-halves-font">Halve <br><span class="sub">(Up)</span></button>
<button value="0.5" id="massHalveDown" class="invert-btn l-middle-btn three-halves-font">Halve <br><span class="sub">(Down)</span></button>
</div>
<button id="massChangeExit" class="exit vert-text l-50w">×</button>
<button id="massChangeRotate" class="l-50w rotate"></button>
</div>
</div>
<button id="l-gearBtn" class="whitesmoke"><img alt="gear icon" src="img/gear.svg"/></button>
<div id="canvasBg" class="l-full-abs hidden"></div>
<div id="canvasAnimation" class="l-full-abs hidden"></div>
<canvas class="hidden"></canvas>
<script src="scripts/NoSleep.js"></script>
<script src="scripts/web-animations.min.js"></script>
<script src="app.js"></script>
</body>
</html>