-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
646 lines (620 loc) · 31.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
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PrettyScribe</title>
<link rel="shortcut icon" href="./assets/favicon.ico" sizes="32x32">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|PT+Serif|Source+Sans+Pro&display=swap"
rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Crimson+Pro&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="./css/prettyscribe.css">
<script src="https://kit.fontawesome.com/324895d590.js" crossorigin="anonymous"></script>
</head>
<body>
<div style="display:none;">
<img id="octagon" src="./assets/octagon.png">
<img id="role_dt" src="./assets/icon_DT.png">
<img id="role_el" src="./assets/icon_EL.png">
<img id="role_fa" src="./assets/icon_FA.png">
<img id="role_fl" src="./assets/icon_FL.png">
<img id="role_ft" src="./assets/icon_FT.png">
<img id="role_hq" src="./assets/icon_HQ.png">
<img id="role_hs" src="./assets/icon_HS.png">
<img id="role_lw" src="./assets/icon_LW.png">
<img id="role_tr" src="./assets/icon_TR.png">
<img id="aos_stats" src="./assets/aos_stats_min.svg">
</div>
<div class="d-print-none">
<nav class="navbar navbar-expand-md navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="index.html">PrettyScribe</a>
<button class="navbar-toggler " type="button" data-bs-toggle="collapse"
data-bs-target="#collapsibleNavbarAbout" aria-controls="navbarNav" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbarAbout">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link" href="help.html">Help</a>
</li>
<li class="nav-item active">
<a class="nav-link active" href="about.html">About</a>
</li>
</ul>
</div>
<div>A pretty-printer for BattleScribe rosters.</div>
</div>
</nav>
<div class="container">
<div class="input-group input-file mb-3">
<input type="file" class="form-control" files="roster-file" id="roster-file" name="roster-file" accept=".ros, .rosz, .regiztry, .registry">
<label class="input-group-text" for="roster-file">Select roster file (.ros, .rosz, .regiztry, .registry)</label>
</div>
</div>
<hr class="border-top border-primary">
</div>
<div class="container-fluid">
<div id="roster-title"></div>
<div id="roster-lists"></div>
<div id="force-units"></div>
</div>
<!-- AoS Warcry unit display prototype -->
<div class="container-fluid border" style="display:none;">
<div class="row align-items-center">
<div class="col-1">
<img class="border border-dark rounded-circle warcry_card"
src="./assets/warcry/runemarks/black/factions-chaos-tzeentch-arcanites.svg" alt="">
</div>
<div class="col">
<span class="warcry_font" style="font-size: 2.2em;">Gaunt Summoner on Disc</span>
</div>
<div class="col-4">
<img class="border border-dark rounded-circle warcry_card"
src="./assets/warcry/runemarks/black/fighters-agile.svg" alt="">
<img class="border border-dark rounded-circle warcry_card"
src="./assets/warcry/runemarks/black/fighters-champion.svg" alt="">
<img class="border border-dark rounded-circle warcry_card"
src="./assets/warcry/runemarks/black/fighters-mount.svg" alt="">
</div>
<div class="col-1">
<div class="border border-dark text-center rounded-circle warcry_font"
style="width: 72px; height: 72px; line-height: 72px;">
260
</div>
</div>
</div>
<div class="row align-items-center">
<div class="col">
<p class="card-title warcry_font">Tzeentch Arcane Bolt</p>
<div class="row">
<div class="col">
<div class="card warcry_card">
<img src="./assets/warcry/runemarks/black/weapons-blast.svg" alt="">
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-range.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">3-7</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-attacks.svg"
alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">2</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-strength.svg"
alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">3</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-damage.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">3/6</p>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<!-- Empty -->
</div>
</div>
<div class="row align-items-center">
<div class="col">
<p class="card-title warcry_font">Teeth and Horns</p>
<div class="row">
<div class="col">
<div class="card warcry_card">
<img src="./assets/warcry/runemarks/black/weapons-fangs.svg" alt="">
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="carg-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-range.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">1</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="carg-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-attacks.svg"
alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">4</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="carg-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-strength.svg"
alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">4</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="carg-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-damage.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">2/4</p>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col">
<!-- Empty -->
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-move.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">10</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-toughness.svg"
alt="">
<div class="card-body warcry_card_label">
<p class="card-text warcry_font">4</p>
</div>
</div>
</div>
<div class="col">
<div class="card warcry_card">
<img class="card-img-top warcry_card_img"
src="./assets/warcry/runemarks/black/characteristics-wounds.svg" alt="">
<div class="card-body warcry_card_label">
<p class="card-title warcry_font">30</p>
</div>
</div>
</div>
<div class="col">
<!-- Empty -->
</div>
</div>
</div>
</div>
<div class="row container">
<div class="p-2 mb-2 text-center text-uppercase text-black"><span class="warcry_font">Damage
Table</span></div>
<table class="table table-bordered table-sm text-center">
<thead>
<tr>
<th>Damage Points Allocated</th>
<th>Move</th>
<th>Damage</th>
</tr>
</thead>
<tbody>
<tr>
<td>0-10</td>
<td>6"</td>
<td>4/8</td>
</tr>
<tr>
<td>11-20</td>
<td>5"</td>
<td>4/6</td>
</tr>
<tr>
<td>21-30</td>
<td>4"</td>
<td>3/6</td>
</tr>
<tr>
<td>31-40</td>
<td>3"</td>
<td>3/4</td>
</tr>
<tr>
<td>41-49</td>
<td>2"</td>
<td>2/4</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- AoS unit display prototype -->
<div class="container-fluid" style="display:none;">
<div class="row">
<div class="col-3">
<div class="aos_unit_stats">
<div class="aos_unit_move">
<p class="h2">6"</p>
</div>
<div class="aos_unit_wounds">
<p class="h2">1</p>
</div>
<div class="aos_unit_bravery">
<p class="h2">6</p>
</div>
<div class="aos_unit_save">
<p class="h2">5+</p>
</div>
</div>
</div>
<div class="col">
<div class="p-2 mb-2 aos_medium text-center text-uppercase text-black"><span class="h3">Horrors
of Tzeentch</span></div>
<table class="table table-sm aos_font text-center">
<thead class="aos_light">
<tr>
<th>Missile Weapons</th>
<th>Range</th>
<th>Attacks</th>
<th>To Hit</th>
<th>To Wound</th>
<th>Rend</th>
<th>Damage</th>
</tr>
</thead>
<tbody>
<tr>
<td>Magical Flames</td>
<td>12"</td>
<td>*</td>
<td>5+</td>
<td>4+</td>
<td>-</td>
<td>1</td>
</tr>
</tbody>
</table>
<table class="table table-sm aos_font text-center">
<thead class="aos_light">
<tr>
<th>Melee Weapons</th>
<th>Range</th>
<th>Attacks</th>
<th>To Hit</th>
<th>To Wound</th>
<th>Rend</th>
<th>Damage</th>
</tr>
</thead>
<tbody>
<tr>
<td>Taloned Hands</td>
<td>1"</td>
<td>*</td>
<td>4+</td>
<td>4+</td>
<td>-</td>
<td>1</td>
</tr>
</tbody>
</table>
<table class="table table-sm aos_font text-center">
<thead>
<tr>
<th class="aos_medium">Damage Table</th>
</tr>
<tr class="aos_light">
<th>Horror Color</th>
<th>Magical Flames</th>
<th>Taloned Hands</th>
<th>Petty Vengeance Roll</th>
</tr>
</thead>
<tbody>
<tr>
<td>Iridescent</td>
<td>6</td>
<td>2</td>
<td>3+</td>
</tr>
<tr>
<td>Pink</td>
<td>3</td>
<td>1</td>
<td>4+</td>
</tr>
<tr>
<td>Blue</td>
<td>2</td>
<td>1</td>
<td>5+</td>
</tr>
<tr>
<td>Brimstone</td>
<td>1</td>
<td>2</td>
<td>6+</td>
</tr>
</tbody>
</table>
<h4 class="text-uppercase">Abilities</h4>
<p class="aos_font"><strong>STANDARD BEARER: </strong>1 in every
10 Pink Horrors in this unit can be a
Pink Horror Icon Bearer instead. At
the start of your hero phase, if you have
a Disciples of Tzeentch army, roll 1
dice for each Pink Horror Icon Bearer
in this unit. For each 3+, you receive 1
Fate Point.
</p>
<p class="aos_font">
<strong>MUSICIAN: </strong>1 in every 10 Pink
Horrors in this unit can be a Pink
Horror Hornblower instead. Add 1 to
save rolls for this unit while it includes
any Pink Horror Hornblowers.
</p>
<p class="aos_font">
<strong>Split and Split Again: </strong>
Each time an Iridescent Horror or
Pink Horror in this unit is slain by a
wound or mortal wound, it does not
count as having been slain but you must
immediately remove it from play and
replace it with 2 Blue Horrors that are
added to its unit.
Each time a Blue Horror in this unit is
slain by a wound or mortal wound, it
does not count as having been slain but
you must immediately remove it from
play and replace it with 1 Brimstone
Horrors model that is added to its unit.
</p>
<p class="aos_font">
<strong>Petty Vengeance: </strong>
If a model in this unit is slain, you can
pick 1 enemy unit within 1" of this unit
and roll a dice. If the roll is equal to or
greater than the Petty Vengeance Roll
for the slain model, that enemy unit
suffers 1 mortal wound.
</p>
<div class="container">
<div class="row">
<div class="col-2 border aos_dark text-center">KEYWORDS</div>
<div class="col border text-left text-uppercase">
Chaos Disciples of Tzeentch, Daemon, Horrors of Tzeentch
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 40k unit display prototype -->
<div class="container-fluid" style="display:none;">
<div class="row">
<div>
Beast Snagga Boyz
</div>
<div>
<p>Power Level: 5 Points: 225</p>
</div>
</div>
<hr>
<table class="table table-striped tabel-sm">
<thead>
<tr>
<th>Model</th>
<th>M</th>
<th>WS</th>
<th>BS</th>
<th>S</th>
<th>T</th>
<th>W</th>
<th>A</th>
<th>LD</th>
<th>SAVE</th>
</tr>
</thead>
<tbody>
<tr>
<td>Beast Snagga Boy</td>
<td>5"</td>
<td>3+</td>
<td>5+</td>
<td>5</td>
<td>5</td>
<td>1</td>
<td>2</td>
<td>6</td>
<td>6+</td>
</tr>
</tbody>
</table>
<table class="table table-striped tabel-sm">
<thead>
<tr>
<th>Weapons</th>
<th>Range</th>
<th>Type</th>
<th>S</th>
<th>AP</th>
<th>D</th>
<th>Abilities</th>
</tr>
</thead>
<tbody>
<tr>
<td>Slugga</td>
<td>12"</td>
<td>Pistol 1</td>
<td>4</td>
<td>0</td>
<td>1</td>
<td>-</td>
</tr>
<tr>
<td>Choppa</td>
<td>Melee</td>
<td>Melee</td>
<td>User</td>
<td>-1</td>
<td>1</td>
<td>Each time the bearer fights, it can make 1 additional attack with this weapon.</td>
</tr>
</tbody>
</table>
<hr>
<h3>Abilities</h3>
<p>Beast Snagga</p>
<p>'Ere We Go</p>
<hr>
<h3>Factions</h3>
<p>Orks, Geoff</p>
<h3>Keywords</h3>
<p>Infantry, Mob, Core, Beast Snagga, Beast Snagga Boyz</p>
<h3>Models</h3>
<p>Beast Snagga Nob</p>
<p>Beast Snagga Boyz (9x)</p>
</div>
<!-- HH2 unit display prototype -->
<div class="container-fluid" style="display:none;">
<div class="row">
<div>
Legion Sicaran Squadron
</div>
<div>
<p>Points: 190</p>
</div>
</div>
<hr>
<table class="table table-striped tabel-sm">
<thead>
<tr>
<th>Model</th>
<th>M</th>
<th>BS</th>
<th>Front</th>
<th>Side</th>
<th>Rear</th>
<th>HP</th>
<th>Capacity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Legion Sicaran</td>
<td>16"</td>
<td>4</td>
<td>13</td>
<td>12</td>
<td>12</td>
<td>4</td>
<td>-</td>
</tr>
</tbody>
</table>
<table class="table table-striped tabel-sm">
<thead>
<tr>
<th>Weapons</th>
<th>Range</th>
<th>Str</th>
<th>AP</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td>Accelerator autocannon</td>
<td>48"</td>
<td>7</td>
<td>4</td>
<td>Heavy 8, Rending (6+), Exoshock (6+)</td>
</tr>
<tr>
<td>Volkite culverin</td>
<td>45"</td>
<td>6</td>
<td>5</td>
<td>Heavy 5, Deflagrate</td>
</tr>
<tr>
<td>Heavy bolter</td>
<td>36"</td>
<td>5</td>
<td>4</td>
<td>Heavy 4</td>
</tr>
</tbody>
</table>
</div>
<!-- Error dialog -->
<div class="modal fade" id="errorDialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Message</h4>
<button type="button" class="close" data-bs-dismiss="modal">×</button>
</div>
<div class="modal-body" id="errorText">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script type="module" src="./dist/prettyscribe.js"></script>
</body>
</html>