forked from orichalque/yet-an-other-gloomhaven-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1328 lines (1231 loc) · 70.3 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
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="A deckbuilder for managing and playing Gloomhaven">
<meta name="keywords"
content="gloomhaven,boardGame,deckbuilding,gloomhaven deck,gloomhaven deckbuilding,gloomhaven deckbuilder, frosthaven deckbuilder, crimson scales deckbuilder">
<meta name="application-name" content="Gloomhaven Deckbuilder" />
<title>Gloomhaven Deckbuilder</title>
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="data/favicons/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="data/favicons/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="data/favicons/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="data/favicons/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="data/favicons/apple-touch-icon-60x60.png" />
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="data/favicons/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="data/favicons/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="data/favicons/apple-touch-icon-152x152.png" />
<link rel="icon" type="image/png" href="data/favicons/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="data/favicons/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="data/favicons/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="data/favicons/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="data/favicons/favicon-128.png" sizes="128x128" />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="data/favicons/mstile-144x144.png" />
<meta name="msapplication-square70x70logo" content="data/favicons/mstile-70x70.png" />
<meta name="msapplication-square150x150logo" content="data/favicons/mstile-150x150.png" />
<meta name="msapplication-wide310x150logo" content="data/favicons/mstile-310x150.png" />
<meta name="msapplication-square310x310logo" content="data/favicons/mstile-310x310.png" />
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="data/favicons/ms-icon-144x144.png">
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Crimson+Text&display=swap" rel="stylesheet">
<link rel="stylesheet" href="vendor/cookiealert/css/cookiealert.css">
<link href="css/style.css" rel="stylesheet">
<script src="vendor/jquery/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body class="darkbody">
<main id="app" class="wrapper">
<!-- Navigation -->
<nav class="navbar ng-faded navbar-expand-lg navbar-fixed-top py-0 border-bottom navbar-dark bg-dark"
:class="dark ? 'border-light' : 'border-dark'">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<h4 class="titlefont">Gloomhaven Deckbuilder</h4>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item py-0" v-bind:class="{active: menu === 'home'}">
<a class="nav-link" href="#" v-on:click="setMenu('home')">Play</a>
</li>
<li class="nav-item py-0" v-bind:class="{active: menu === 'abilities'}">
<a class="nav-link" href="#" :data-toggle="!classChosen? 'modal': false"
data-target="#characterSelectionModal" v-on:click="setMenu('abilities')">Abilities</a>
</li>
<li class="nav-item py-0" v-bind:class="{active: menu === 'enhancement'}">
<a class="nav-link" href="#" v-on:click="setMenu('enhancement')">Enhancement</a>
</li>
<li class="nav-item py-0" v-bind:class="{active: menu ==='modifiers'}">
<a class="nav-link" href="#" :data-toggle="!classChosen? 'modal': false"
data-target="#characterSelectionModal" v-on:click="setMenu('modifiers')">Modifiers</a>
</li>
<li class="nav-item py-0" v-bind:class="{active: menu ==='gear'}">
<a class="nav-link" href="#" v-on:click="setMenu('gear')">Gear</a>
</li>
<li class="nav-item dropdown" v-bind:class="{active: menu ==='gameoptions'}">
<a class="nav-link dropdown-toggle" id="navbarDropdown2" data-toggle="dropdown" role="button"
aria-expanded="false" href="#">Options</a>
<div class="dropdown-menu" :class="dark ? 'dropdown-menu-dark' : ''" aria-labelledby="navbarDropdown2">
<a class="dropdown-item" data-target="#versionModal" data-toggle="modal" href="#">Set expansion</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" v-on:click="hasEnabledCardExchange = !hasEnabledCardExchange">
<span v-if="!hasEnabledCardExchange">Accept card</span>
<i v-else>Accept card</i>
</a>
<a class="dropdown-item" href="#" v-on:click="hasEnabledModifierDisplay = !hasEnabledModifierDisplay">
<span v-if="!hasEnabledModifierDisplay">Sort modifiers</span>
<i v-else>Sort modifiers</i>
</a>
<a class="dropdown-item" href="#" v-on:click="hasEnabledCurses = !hasEnabledCurses">
<span v-if="!hasEnabledCurses">Quick curse</span>
<i v-else>Quick curse</i>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" v-on:click="swapMode()">
<span v-if="!dark">Night mode</span>
<i v-else>Night mode</i>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" v-on:click="hasEnabledSaveGameplayData = !hasEnabledSaveGameplayData">
<span v-if="!hasEnabledSaveGameplayData">Gameplay data saving</span>
<i v-else>Gameplay data saving</i>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" v-on:click="importData()">Import data</a>
<a class="dropdown-item" href="#" v-on:click="exportData()">Export data</a>
<input id="import-input" type="file" name="name" style="display: none;" @change="readDataFile" />
</div>
</li>
<li class="nav-item dropdown" v-bind:class="[{active: menu ==='about'}]">
<a class="nav-link dropdown-toggle" id="navbarDropdown2" data-toggle="dropdown" role="button"
aria-expanded="false" href="#">About</a>
<div class="dropdown-menu" :class="dark ? 'dropdown-menu-dark' : ''" aria-labelledby="navbarDropdown2">
<a class="dropdown-item" data-target="#helpModal" data-toggle="modal" href="#">Help</a>
<a class="dropdown-item" data-target="#aboutModal" data-toggle="modal" href="#">More</a>
<div class="dropdown-divider"></div>
<form class="dropdown-item" id="donate" class="dropdown-item"
action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="business" value="QDHSY8LBF3WRY" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="lc" value="en_US">
<a href="#" alt="Donate with PayPal button" onclick="document.getElementById('donate').submit()"
title="PayPal - The safer, easier way to pay online!">Donate</a>
</form>
</div>
</li>
<li class="nav-item py-0">
<a class="nav-link" href="#" v-on:click="saveData()">Save</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Content -->
<div v-cloak class="container-fluid" id="content">
<div class="row mt-3">
<!-- MAIN PAGE -->
<div class="col-lg-12 text-center container-fluid" id="main_menu" v-if="menu == 'home'">
<div class="row ">
<div class="col-lg-11 text-center">
<h3 :class="dark ? 'text-light' : 'text-dark'">Turn: {{ turn }}</h3>
</div>
<!-- left side of the play screen-->
<div class="col-lg-7 border-right" :class="dark ? 'border-light' : 'border-dark'"
v-if="abilitiesChosen.length > 0">
<div class="container">
<div class="row mt-3">
<div class="col"><button v-on:click="play()" class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''">Play
cards</button></div>
<div class="col"><button v-on:click="initShortRest()" class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''" data-toggle="modal" data-target="#shortRestModal"
:disabled='isRestDisabled'>Short rest</button></div>
<div class="col"><button v-on:click="initRest()" data-toggle="modal" data-target="#longRestModal"
:disabled='isRestDisabled' class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''">Long
rest</button></div>
<div class="col">
<button v-on:click="newGame()" class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''">New game</button>
</div>
<div class="col btn-group" role="group" v-if="className === 'bb'">
<button class="btn btn-outline-secondary" :class="{active: specialClassMode === 'slow'}"
v-on:click="specialClassMode = 'slow'; specialClassValue++;">Slow</button>
<button class="btn btn-outline-secondary">{{ specialClassValue }}</button>
<button class="btn btn-outline-secondary"
v-on:click="specialClassValue > 0 ? specialClassMode = 'fast' : ''; specialClassValue > 0 ? specialClassValue-- : '';"
:class="{active: specialClassMode === 'fast'}">Fast</button>
</div>
<div class="col btn-group" role="group" v-if="className === 'ge'">
<button class="btn btn-outline-secondary"
:class="[{active: specialClassMode === 'left'}, dark ? 'btn-light' : 'btn-dark']"
v-on:click="specialClassMode = 'left'">Left</button>
<button class="btn btn-outline-secondary"
:class="[{active: specialClassMode ==='right'}, dark ? 'btn-light' : 'btn-dark']"
v-on:click="specialClassMode = 'right'">Right</button>
</div>
<div class="col" v-if="hasEnabledCardExchange"><button data-toggle="modal"
data-target="#cardExchangeModal" class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''">Accept card</button>
</div>
<div class="col" v-if="hasEnabledModifierDisplay"><button v-on:click="updateModifiersDraggable()"
data-toggle="modal" data-target="#sortModifierModal" class="btn btn-block btn-outline-secondary"
:class="dark ? 'btn-light' : ''">Sort modifiers</button></div>
</div>
<div v-if="cardsInHand.length>0">
<div class="row" style="display: table-cell" id="abilitiesInHandSection">
<div style="display: inline-block; padding-top: 1em;" class="abilityContainer"
v-for="ability in cardsInHand" :key="ability.image">
<div class="col card-wrap-play">
<img v-bind:src="'data/'+ability.image"
v-bind:class="[{picked: twoAbilitiesSelected.includes(ability)}]"
v-on:click="pickCard(ability)" class="image rounded">
</img>
<span style="pointer-events: none;" v-if="ability.top != null && ability.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in ability.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="ability.bottom != null && ability.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in ability.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<!-- On-cards buttons -->
<div class="iconContainer">
<div class="bottomIconContainer">
<img src="data/icons/lost.png" class="bottomIcon" style="width:3em"
v-on:click="destroyCard(ability)" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- On board cards -->
<div v-if="cardsOnBoard.length>0">
<h3 :class="dark ? 'text-light' : 'text-dark'">On board</h3>
<div class="row" style="display: table-cell" id="abilitiesOnBoardSection">
<div style="display: inline-block; padding-top: 1em;" class="abilityContainer"
v-for="ability in cardsOnBoard" :key="ability.image">
<div class="col card-wrap-play">
<img v-bind:src="'data/'+ability.image" class="image rounded"></img>
<span style="pointer-events: none;" v-if="ability.top != null && ability.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in ability.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="ability.bottom != null && ability.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in ability.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<!-- On-cards buttons -->
<div class="iconContainer">
<div v-if="ability.duration < 0" class="topIconContainer">
<button v-on:click="useCard(ability)" class="btn btn-light add">
Use
</button>
</div>
<div class="bottomIconContainer">
<img src="data/icons/lost.png" class="bottomIcon" style="width:3em"
v-on:click="discardOnBoardItem(ability)" />
</div>
</div>
<div class="onCardNoHover">
<h4>{{ ability.numberOfTimesUsed }}</h4>
</div>
</div>
</div>
</div>
</div>
<!-- Discarded cards -->
<div v-if="cardsDiscarded.length>0">
<h3 :class="dark ? 'text-light' : 'text-dark'">Discarded</h3>
<div class="row" style="display: table-cell" id="abilitiesDiscardedSection">
<div style="display: inline-block; padding-top: 1em;" class="abilityContainer"
v-for="ability in cardsDiscarded" :key="ability.image">
<div class="col card-wrap-play">
<img v-bind:src="'data/'+ability.image" class="image rounded played"></img>
<span style="pointer-events: none;" v-if="ability.top != null && ability.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in ability.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="ability.bottom != null && ability.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in ability.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<!-- On-cards buttons -->
<div class="iconContainer">
<div class="bottomIconContainer">
<img src="data/icons/lost.png" class="bottomIcon" style="width:3em"
v-on:click="destroyCard(ability)" />
<img src="data/icons/keep-on-board.png" class="bottomIcon" style="width:3em"
v-on:click="keepAbilityManyTurns(ability)" />
</div>
<div class="topIconContainer">
<img src="data/icons/recover.png" class="bottomIcon" style="width:3em"
v-on:click="fetchCard(ability)" />
<img src="data/icons/keep-on-board-one-turn.png" class="bottomIcon" style="width:3em"
v-on:click="keepAbilityOneTurn(ability)" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Lost cards -->
<div v-if="cardsDestroyed.length>0">
<h3 :class="dark ? 'text-light' : 'text-dark'">Lost</h3>
<div class="row mt-3" style="display: table-cell" id="abilitiesDestroyedSection">
<div style="display: inline-block; padding-top: 1em;" class="abilityContainer"
v-for="ability in cardsDestroyed" :key="ability.image">
<div class="col">
<img v-bind:src="'data/'+ability.image" class="image rounded destroyed"></img>
<span style="pointer-events: none;" v-if="ability.top != null && ability.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in ability.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="ability.bottom != null && ability.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in ability.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<!-- On-cards buttons -->
<div class="iconContainer">
<div class="topIconContainer">
<img src="data/icons/recover.png" class="bottomIcon" style="width:3em"
v-on:click="fetchCard(ability)" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-7 border-right" :class="dark ? 'border-light' : 'border-dark'" v-else
id="abilitiesSection">
<p :class="dark ? 'text-light' : 'text-dark'">Build your deck in the <a href="#"
:data-toggle="!classChosen? 'modal': false" data-target="#characterSelectionModal"
v-on:click="setMenu('abilities')">Abilities</a> section first !</p>
</div>
<!-- Right side of the play screen-->
<div class="col-lg-5" style="padding-top: 1em; padding-bottom: 1em">
<h3 :class="dark ? 'text-light' : 'text-dark'">Modifiers</h3>
<!-- Curse / Blessing -->
<div v-if="hasEnabledCurses" class="row no-gutters" style="padding-left: 0.3em;">
<div class="col-auto">
<button v-on:click="addBlessing()" class="btn btn-sm" style="outline: none; box-shadow: none;">
<img v-bind:src="'data/attack-modifiers/base/player-mod/am-pm-01.png'" class="smallimage rounded" />
<div v-if="blessings > 0" class="onCardNoHover">
<h2> {{ blessings }}</h2>
</div>
<div v-else class="onCardHover">
<h3>Blessing </h3>
</div>
</button>
</div>
<div class="col-auto">
<button v-on:click="addCurse()" class="btn btn-sm" style="outline: none; box-shadow: none;" w>
<img v-bind:src="'data/attack-modifiers/base/player-mod/am-pm-21.png'" class="smallimage rounded" />
<div v-if="curses > 0" class="onCardNoHover">
<h2>{{ curses }}</h2>
</div>
<div v-else class="onCardHover">
<h3>Curse </h3>
</div>
</button>
</div>
</div>
<!-- BASE DECK BACK -->
<div class="row no-gutters">
<div class="modifiersCardContainer">
<div class="col-auto" v-if="modifiersDrawPile.length != 0">
<img v-bind:src="'data/attack-modifiers/back/top.png'" class="image rounded" />
<div class="middleIconContainer">
<button v-on:click="drawModifier()" class="add btn btn-light">
Draw
</button>
</div>
</div>
</div>
<div class="modifiersCardContainer">
<div class="col-auto" v-if="lastDrawnModifier != null">
<img v-bind:src="'data/'+lastDrawnModifier.image" class="image rounded" />
<div class="middleIconContainer">
<button v-on:click="shuffleModifiersDeck()" class="add btn btn-light">
Shuffle
</button>
</div>
</div>
</div>
<div style="max-width: 50%;">
<div class="row flex-nowrap overflow-auto scrollCardContainer">
<div class="col mt-3" v-for='modifier in modifiersDiscardPile'
style="padding-left: 15px; padding-right: 0px;">
<img v-bind:src="'data/'+modifier.image" style="width:4em" class="image rounded" />
</div>
</div>
</div>
</div>
<hr :class="dark ? 'border-light' : 'border-dark'" />
<h3 :class="dark ? 'text-light' : 'text-dark'">Gear</h3>
<div class="row justify-content-center no-gutters" id="gear">
<div v-if="gearChosen.length == 0" class="smallCardContainer">
<p :class="dark ? 'text-light' : 'text-dark'">Choose your equipment in the <a href="#"
v-on:click="setMenu('gear')">Gear</a> section !</p>
</div>
<div style="display: inline-block;" class="smallCardContainer" v-for="gear in gearChosen"
:key="gear.xws">
<div class="col-sm mt-2">
<img v-bind:src="'data/'+gear.image" class="smallimage rounded "
v-bind:class="[{tapped: gear.played && !gear.lost}, {played: gear.lost}]"></img>
<div v-if="!gear.played" class="iconContainer">
<div class="topIconContainer">
<img class="smallIcon" src="data/icons/tap.png" v-on:click="tapItem(gear)"></img>
<img class="smallIcon" src="data/icons/lost.png" v-on:click="looseItem(gear)"></img>
<button type="button" class="smallIcon btn btn-light mx-auto"
v-on:click="useItem(gear)"><b>+1</b></button>
</div>
</div>
<div v-if="gear.played" class="iconContainer">
<div class="bottomIconContainer">
<img class="smallIcon" src="data/icons/recover.png" v-on:click="restoreItem(gear)"></img>
</div>
</div>
<div v-if="gear.used > 0" class="onCardNoHover">
<h4>{{ gear.used }}</h4>
</div>
</div>
</div>
</div>
<hr :class="dark ? 'border-light' : 'border-dark'" />
<h3 :class="dark ? 'text-light' : 'text-dark'">Battle Goals</h3>
<div class="row" style="display: table-cell;">
<div style="display: inline-block; padding-top: 1em;" class="smallCardContainer">
<div class="col-sm mt-2">
<img v-bind:src="'data/battle-goals/battlegoal-back.png'" class="smallimage rounded" />
<div class="iconContainer">
<div class="middleIconContainer">
<button type="button" class="add btn btn-light" v-on:click="drawBattleGoals()">Draw</button>
</div>
</div>
</div>
</div>
<div style="display: inline-block; padding-top: 1em;" class="smallCardContainer"
v-for="goal in battleGoalsDrawn">
<div class="col-sm mt-2">
<img v-bind:src="'data/'+goal.image" class="smallimage rounded"></img>
<div class="iconContainer">
<div class="topIconContainer">
<button type="button" class="add btn btn-light" v-on:click="pickBattleGoal(goal)">Pick</button>
</div>
</div>
</div>
</div>
<div style="display: inline-block; padding-top: 1em;" class="smallCardContainer"
v-for="goal in battleGoalPicked">
<div class="col-sm mt-2">
<img v-bind:src="'data/'+goal.image" class="smallimage rounded"></img>
<div class="iconContainer">
<div class="topIconContainer">
<button type="button" class="smallIcon btn btn-light mx-auto"
v-on:click="incrementGoalCounter()"><b>+1</b></button>
</div>
</div>
<div class="onBottomCardNoHover">
<h4>{{goalCounter}}</h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- MODIFIERS -->
<div class="col-lg-12 container-fluid" id="modifiers" v-if="menu == 'modifiers'">
<div>
<!-- CATEGORY BACK -->
<div class="row">
<!-- CATEGORY DECK FRONT -->
<div class="col-md-3">
<div class="row">
<div class="col-lg-4">
<h3 :class="dark ? 'text-light' : 'text-dark'">{{ classNames[className] || 'Class' }} </h3>
</div>
<div class="col-lg-8 row justify-content-around">
<input type="button" data-toggle="modal" data-target="#perksModal" class="col-lg-5 btn btn-secondary"
value="Show perks" :class="dark ? 'btn-light' : 'btn-dark'" />
<input type="button" data-toggle="modal" data-target="#characterSelectionModal"
class="col-lg-5 btn btn-secondary" value="Switch class" :class="dark ? 'btn-light' : 'btn-dark'" />
</div>
</div>
<div v-for="modifier in modifiers">
<div class="row" v-if="modifier.name.substring(3,5) == modifierCategory">
<div class="modifierContainer" v-for='card in modifier.cards'>
<div class="col mt-3" v-on:click="addModifier(card)">
<img v-bind:src="'data/'+card.image" style="width:8em"
v-bind:class="[{selected: modifiersChosen.includes(card)}]" class="image rounded" />
</div>
</div>
</div>
</div>
</div>
<!-- SPECIAL MODIFIERS FRONT -->
<div class="col-md-3 border-right border-left" :class="dark ? 'border-light' : 'border-dark'">
<div class="row">
<h3 class="ml-3" :class="dark ? 'text-light' : 'text-dark'">Special</h3>
</div>
<div v-for="modifier in modifiersSpecial">
<div class="row">
<div class="modifierContainer" v-for='card in modifier.cards'>
<div class="col mt-3" v-on:click="addModifier(card)">
<img v-bind:src="'data/'+card.image" style="width:8em"
v-bind:class="[{selected: modifiersChosen.includes(card)}]" class="image rounded" />
</div>
</div>
</div>
</div>
</div>
<!-- BASE DECK FRONT -->
<div class="col-md-3 border-right" :class="dark ? 'border-light' : 'border-dark'">
<div class="row">
<h3 class="ml-3" :class="dark ? 'text-light' : 'text-dark'">Standard</h3>
</div>
<div v-for="modifier in modifiersBase">
<div class="row">
<div class="modifierContainer" v-for='card in modifier.cards'>
<div class="col mt-3" v-on:click="addModifier(card)">
<img v-bind:src="'data/'+card.image" style="width:8em"
v-bind:class="[{selected: modifiersChosen.includes(card)}]" class="image rounded" />
</div>
</div>
</div>
</div>
</div>
<!-- FINAL DECK -->
<div class="col-md-3">
<h3 :class="dark ? 'text-light' : 'text-dark'">Final Deck</h3>
<div class="row">
<div class="modifierContainer" v-for='card in modifiersChosen'>
<div class="col mt-3 " v-on:click="removeModifier(card)">
<img v-bind:src="'data/'+card.image" style="width:8em" class="image rounded" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ABILITIES -->
<div class="col-lg-12 container-fluid" v-if="menu == 'abilities'">
<!-- PER CATEGORY CARDS -->
<div class="row sticky-top" style="z-index: 100;" :class="dark? 'bg-dark' : 'bg-light'">
<div class="col-lg-9 ">
<div class="btn-toolbar row mb-3 justify-content-between" role="toolbar"
aria-label="Toolbar with button groups">
<div class="col-lg-9">
<h5 style="display: inline;" :class="dark ? 'text-light' : 'text-dark'">Character Level:</h5>
<button v-for='theLevel in 9' class="btn"
:class="[((theLevel == level && dark) || (theLevel != level && !dark)) ? 'btn-light' : 'btn-dark']"
v-on:click="level = theLevel" style="display: inline;">
<h5 style="display: inline;">{{ theLevel }}</h5>
</button>
<button data-toggle="modal" data-target="#characterSelectionModal" class="btn btn-secondary">
Switch Class
</button>
</div>
<form onsubmit="return false" class="input-group col-lg-3 border"
:class="[dark ? 'border-light' : 'border-dark']">
<input type="text" :class="dark ? ['darkInputText', 'text-light']: ['lightInputText', 'text-dark']"
class="pt-2 pb-2 border-0 shadow-none" style="outline: none;" placeholder="Name filter"
v-model="abilitySearchExp" v-on:input="filterAbilities">
<span id="searchclear" class="bi-x-lg" v-on:click="abilitySearchExp = ''"></span>
</form>
</div>
</div>
<div class="col-lg-3" style="text-align: center;">
<h3 v-if='abilityCategory != null' :class="dark ? 'text-light' : 'text-dark'">Deck {{ abilitiesChosen.length
}} / {{ abilityCategory.max }} </h3>
</div>
</div>
<div class="row" v-if='abilityCategory != null'>
<div class="col-lg-9 border-right container-fluid" :class="dark ? 'border-light' : 'border-dark'">
<div class="row" v-if="abilitySearchExp.length == 0">
<div class="col-auto mt-3 abilityContainer" v-for='(card,i) in abilityCategory.cards'
v-if="i != 0 && card.level <= level" v-on:click="addAbility(card)">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image"
v-bind:class="[{picked: abilitiesChosen.includes(card)}]" class="image rounded"></img>
</div>
</div>
<div class="row" v-else>
<div class="col-auto mt-3 abilityContainer" v-for='card in filteredAbilities'
v-if="card != abilityCategory.cards[0]" v-on:click="addAbility(card)">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image"
v-bind:class="[{selected: abilitiesChosen.includes(card)}]" class="image rounded"></img>
</div>
<div v-if="filteredAbilities.length == 0">
<h4 :class="dark ? 'text-light' : 'text-dark'">No match.</h4>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="centerAbilities">
<div v-for='(card,i) in abilitiesChosen'>
<div v-bind:class="[{crop: abilitiesChosen.length -1 !== i}]" v-on:click="removeAbility(card)">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>
</div>
</div>
</div>
</div>
</div>
</div> <!-- main row ends -->
<!-- GEAR -->
<div class="col-lg-12 container-fluid" id="gear" v-if="menu == 'gear'">
<div class="row">
<div class="col-lg-9">
<div class="btn-toolbar mb-3 row justify-content-between" role="toolbar"
aria-label="Toolbar with button groups">
<form id="addItemByID" onsubmit="return false" class="input-group col-lg-4 border" @submit="addItemById"
:class="dark ? 'border-light' : 'border-dark'">
<input type="text" :class=" dark ? ['darkInputText', 'text-light'] : ['lightInputText', 'text-dark']"
class="pt-2 pb-2 border-0 shadow-none" style="outline: none;" placeholder="Add item by ID"
aria-label="Input group example" v-model="idToAdd" aria-describedby="btnGroupAddon">
<span id="searchclear" class="bi-x-lg" v-on:click="idToAdd = ''"></span>
</form>
<form onsubmit="return false" class="input-group col-lg-3 border"
:class="dark ? 'border-light' : 'border-dark'">
<input type="text" :class=" dark ? ['darkInputText', 'text-light'] : ['lightInputText', 'text-dark']"
class="pt-2 pb-2 border-0 shadow-none" style="outline: none;" placeholder="Name filter"
aria-label="Input group example" v-model="gearSearchExp" v-on:input="filterGear"
aria-describedby="btnGroupAddon">
<span id="searchclear" class="bi-x-lg" v-on:click="gearSearchExp = ''"></span>
</form>
</div>
</div>
</div>
<div class="row ">
<div class="col-lg-9 border-right container-fluid" :class="dark ? 'border-light' : 'border-dark'">
<!-- Categories of items -->
<div class="row ">
<div class="col-auto mt-3 abilityContainer" v-for='gearCat in allGear'
v-if='((gearCategory == null || gearCat == gearCategory) && gearSearchExp.length == 0)'>
<a href="#" v-on:click="displayGearCategory(gearCat)">
<img src="data/items/back.png" class="image rounded" />
<h4 class="onCardNoHover"> {{ gearCat.name }}</h4>
</a>
</div>
<div class="col-auto mt-3" v-if='allGear.length == 0'>
<h4 :class="dark ? 'text-light' : 'text-dark'">Will be here soon.</h4>
</div>
<div class="col-auto mt-3" v-if='(gearSearchExp.length != 0 && filteredGear.length == 0)'>
<h4 :class="dark ? 'text-light' : 'text-dark'">No match.</h4>
</div>
</div>
<div class="row" v-if="gearSearchExp.length != 0">
<div v-for='item in filteredGear' class="col-auto mt-3 abilityContainer">
<img v-bind:class="[{selected: gearChosen.includes(item)}]" class="image rounded"
v-bind:src="'data/'+item.image" v-on:click="addGear(item)" />
<h4 class="onCardNoHover"> {{ item.points +1 }}</h4>
</div>
</div>
<div class="row" v-if="gearCategory != null && gearCategory.items.length > 0 && gearSearchExp.length == 0">
<div v-for='item in gearCategory.items' class="col-auto mt-3 abilityContainer">
<img v-bind:class="[{selected: gearChosen.includes(item)}]" class="image rounded"
v-bind:src="'data/'+item.image" v-on:click="addGear(item)" />
<h4 class="onCardNoHover"> {{ item.points +1 }}</h4>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="centerAbilities">
<div v-for='(card,i) in gearChosen'>
<div v-bind:class="[{crop: gearChosen.length -1 !== i}]" v-on:click="removeGear(card)">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>
</div>
</div>
</div>
</div>
</div>
</div> <!-- End of gear -->
<!-- ENHANCEMENT -->
<div class="col-lg-12 container-fluid" id="enhancement" v-if="menu == 'enhancement'">
<div v-if="abilitiesChosen.length == 0" id="enhancementClassChosen" class="text-center">
<p :class="dark ? 'text-light' : 'text-dark'">Build your deck in the <a href="#"
:data-toggle="!classChosen? 'modal': false" data-target="#characterSelectionModal"
v-on:click="setMenu('abilities')">Abilities</a> section first !</p>
</div>
<div v-else>
<div class="row">
<div class="col-md-9" :class="dark ? 'text-light' : 'text-dark'">
<h3 v-if="cardToEnhance == null">Choose a card to upgrade</h3>
<h3 v-if="cardToEnhance != null && enhancementMode == ''">Select the part of the card to upgrade</h3>
<h3 v-if="cardToEnhance != null && enhancementMode != ''">Upgrade {{enhancementMode }}</h3>
</div>
<div v-if='abilityCategory != null' class="col-md-3 alignCenter">
<h3 :class="dark ? 'text-light' : 'text-dark'">Deck {{ abilitiesChosen.length }} / {{
abilityCategory.max }} </h3>
</div>
<div v-else class="col-md-3 alignCenter">
<h3 :class="dark ? 'text-light' : 'text-dark'">Deck</h3>
</div>
</div>
<div class="row">
<div class="col-md-9 mt-3 container-fluid">
<div class="row">
<div class="col-lg-8">
<div class="container" v-if="cardToEnhance != null && enhancementMode != ''">
<div class="row mt-5">
<button class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay != 'base' ? enhancementDisplay = 'base' : enhancementDisplay = ''">+1
</button>
<div class="col-lg-10">
<button v-on:click="addEnhancement(base)" v-if="enhancementDisplay === 'base'"
v-for="base in baseEnhancements" class="btn btn-secondary">{{ base.name }}</button>
</div>
</div>
<div class="row">
<button class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay != 'buff' ? enhancementDisplay = 'buff' : enhancementDisplay = ''">Buffs
</button>
<div class="col-lg-10">
<button v-on:click="addEnhancement(buff)" v-if="enhancementDisplay === 'buff'"
v-for="buff in buffEnhancements" class="btn btn-secondary">{{ buff.name }}</button>
</div>
</div>
<div class="row">
<button class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay != 'debuff' ? enhancementDisplay = 'debuff' : enhancementDisplay = ''">Debuffs
</button>
<div class="col-lg-10">
<button v-on:click="addEnhancement(debuff)" v-if="enhancementDisplay === 'debuff'"
v-for="debuff in debuffEnhancements" class="btn btn-secondary">{{ debuff.name }}</button>
</div>
</div>
<div class="row">
<button class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay != 'elem' ? enhancementDisplay = 'elem' : enhancementDisplay = ''">Elements</button>
<div class="col-lg-10">
<button v-on:click="addEnhancement(elem)" v-if="enhancementDisplay === 'elem'"
v-for="elem in elementEnhancements" class="btn btn-secondary">{{ elem.name }}</button>
</div>
</div>
<div class="row">
<button v-on:click="addEnhancement(jump)" class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay = 'jump'">Jump </button>
</div>
<div class="row">
<button v-on:click="addEnhancement(hex)" class="col-2 btn btn-secondary"
v-on:click="enhancementDisplay = 'hex'">Hex </button>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card-wrap">
<div>
<img v-if="cardToEnhance != null" v-bind:id="cardToEnhance.xws"
v-bind:src="'data/'+cardToEnhance.image" class="biggerImage rounded" />
<a href="#" style="color: black;"
v-on:click="enhancementMode != 'bottom' ? enhancementMode = 'bottom' : enhancementMode = ''">
<h3 class="card-caption">Upgrade bottom</h3>
</a>
<span
v-if="cardToEnhance != null && cardToEnhance.bottom != null && cardToEnhance.bottom.length > 0"
style="padding-top: 30%" class="enhancement">
<a v-for="enhancement in cardToEnhance.bottom" href="#"
v-on:click="removeEnhancement(cardToEnhance.bottom, enhancement)">
<img class="float-right enhancementIcon" :src="'data/'+enhancement.image" />
</a>
</span>
<a href="#" style="color: black;"
v-on:click="enhancementMode != 'top' ? enhancementMode = 'top' : enhancementMode = ''">
<h3 class="card-caption above">Upgrade top </h3>
</a>
<span v-if="cardToEnhance != null && cardToEnhance.top != null && cardToEnhance.top.length > 0"
style="padding-top: 30%" class="enhancement above">
<a v-for="enhancement in cardToEnhance.top" href="#"
v-on:click="removeEnhancement(cardToEnhance.top, enhancement)">
<img class="float-right enhancementIcon" :src="'data/'+enhancement.image" />
</a>
</span>
</div>
</div>
</div>
</div>
</div>
<div v-if="abilitiesChosen.length > 0" class="col-md-3 mt-3 border-left"
:class="dark ? 'border-light' : 'border-dark'">
<div class="centerAbilities">
<div v-for='(card,i) in abilitiesChosen'>
<div v-bind:class="[{crop: abilitiesChosen.length -1 !== i}]">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" v-on:click="cardToEnhance = card"
class="image rounded"></img>
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- End of enhancement -->
</div> <!-- main container ends -->
</div> <!-- main wrapper ends -->
<!-- About modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" :class="[dark ? 'bg-dark' : 'bg-light', dark ? 'text-light' : 'text-dark']">
<div class="modal-header">
<h1 class="modal-title" id="exampleModalLabel">About</h1>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" :class="dark ? 'text-light' : 'text-dark'">×</span>
</button>
</div>
<div class="modal-body">
<p>
We made this website in order to play <i>Gloomhaven</i> during Covid-19 lockdown, without having to
print decks of abilities and modifiers.<br />
It's entirely free, without ads, and we hope you enjoy it.<br />
You can check the source code here:<br />
<a
href="https://github.com/orichalque/yet-an-other-gloomhaven-companion">https://github.com/orichalque/yet-an-other-gloomhaven-companion</a><br />
If you encounter any bug, or have suggestions, please open an issue so that we can correct it asap.<br />
Thanks to:
</p>
<ul>
<li><a href="https://github.com/any2cards/gloomhaven">https://github.com/any2cards/gloomhaven</a></li>
<li><a
href="https://github.com/wruczek/bootstrap-cookie-alert">https://github.com/wruczek/bootstrap-cookie-alert</a>
</li>
</ul>
<span>You can help us maintaining and improving the website here:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations" />
<input type="hidden" name="business" value="QDHSY8LBF3WRY" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="lc" value="en_US">
<input type="image" src="data/icons/btn_donate_SM.gif" name="submit"
title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
</form>
</span>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Expansion selection modal -->
<div class="modal fade" id="versionModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" :class="dark ? 'bg-dark' : 'bg-light'">
<div class="modal-header">
<h1 class="modal-title" id="exampleModalLabel" :class="dark ? 'text-light' : 'text-dark'">Expansions</h1>
<button type="button" class="close" :class="dark ? 'text-light' : 'text-dark'" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" :class="dark ? 'text-light' : 'text-dark'">
<h3>Version</h3>
<button class="btn btn-secondary" v-bind:class="{active: version === 'vanilla'}"
v-on:click="loadDatabaseVersion('vanilla')">Gloomhaven</button>
<button class="btn btn-secondary" v-bind:class="{active: version === 'jotl'}"
v-on:click="loadDatabaseVersion('jotl')">Jaws of the Lion</button>
<button class="btn btn-secondary" v-bind:class="{active: version === 'frosthaven'}"
v-on:click="loadDatabaseVersion('frosthaven')">Frosthaven</button>
<button class="btn btn-secondary" v-bind:class="{active: version === 'crimsonscales'}"
v-on:click="loadDatabaseVersion('crimsonscales')">Crimson Scales</button>
<button class="btn btn-secondary" v-bind:class="{active: version === 'trailofashes'}"
v-on:click="loadDatabaseVersion('trailofashes')">Trail of Ashes</button>
<hr :class="dark ? 'border-light' : 'border-dark'" />
<button class="btn btn-secondary" data-toggle="collapse" data-target="#spoilers" aria-expanded="false"
aria-controls="spoilers">Show spoilers</button>
<div class="collapse" id="spoilers">
<p></p>
<button v-if="version=='vanilla'" class="btn btn-secondary"
v-bind:class="{ disabled: hasOpenedXEnvelope }" type="button" v-on:click="loadXEnvelope()">
<span v-if="!hasOpenedXEnvelope">Open envelope X</span>
<span v-else>Envelope X opened</span>
</button>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Character selection modal -->
<div class="modal fade" id="characterSelectionModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content" :class="[dark ? 'bg-dark' : 'bg-light', dark ? 'text-light' : 'text-dark']">
<div class="modal-header">
<h1 class="modal-title" id="exampleModalLabel">Choose your character</h1>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" :class="dark ? 'text-light' : 'text-dark'">×</span>
</button>
</div>
<div class="modal-body container">
<div class="row border-bottom">
<div class="col parentImage" v-for='ability in abilities' v-if='!ability.hidden'>
<input type="image" class="smallerImage rounded"
v-bind:class="{selected: abilityCategory != null && abilityCategory != ability}"
v-on:click="displayAbilities(ability)" v-bind:src="'data/'+ability.cards[0].image" />
</div>
</div>
<button data-toggle="collapse"
v-if="version === 'vanilla' || version === 'crimsonscales' || version === 'frosthaven'"
style="margin-top: 1em" data-target="#lockedClasses" class="btn btn-secondary"
v-on:click="showLockedClasses = ! showLockedClasses" aria-expanded="false"
aria-controls="lockedClasses">Show locked classes</button>
<div v-if="showLockedClasses" class="row collapse" id="lockedClasses">
<div class="col parentImage" v-for='ability in abilities' v-if='ability.hidden'>
<input type="image" class="smallerImage rounded" v-on:click="displayAbilities(ability)"
v-bind:src="'data/'+ability.cards[0].image" />
<input type="image" v-if="ability.hidden" class="layer rounded" v-on:click="stopHidingAbility(ability)"
src="data/layers/locked_layer.png">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Help modal -->
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content" :class="[dark ? 'bg-dark' : 'bg-light', dark ? 'text-light' : 'text-dark']">
<div class="modal-header">