-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1575 lines (1505 loc) · 81.9 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">
<style>
button
{
width: 160px;
margin-right: 10px;
}
table
{
border-collapse: collapse;
border-bottom: 1px solid black;
}
th
{
background-color: rgba(210, 210, 210, 1.0);
border: 1px solid black;
}
tr
{
height: 38px;
border-left: 1px solid black;
border-right: 1px solid black;
}
td
{
text-align: center;
border-left: 1px solid rgba(0, 0, 0, 0.05);
border-right: 1px solid rgba(0, 0, 0, 0.05);
}
td:first-child
{
border-left: 1px solid black;
}
td:last-child
{
border-right: 1px solid black;
}
.filter_Title
{
width: 165px;
display: inline-block;
white-space: nowrap;
}
.adventure_Pack_Filter_Title
{
width: 260px;
display: inline-block;
white-space: nowrap;
}
.filter_Number_Input
{
width: 70px;
}
.filter_Text_Input
{
width: 164px;
}
.alphabetical_Column
{
min-width: 175px;
}
.numerical_Column
{
min-width: 50px;
}
</style>
</head>
<body>
<div style = "width: 800px"><button onclick = "save_To_Local_Storage()">Save to Local Storage</button><button onclick = "delete_Local_Storage()">Delete Local Storage</button><a id = "download_Raw_String_Link" download = "raw_Table_String.js" draggable = "false"><button onclick = "convert_Table_To_Raw_String()">Save to computer</button></a><button onclick = "toggle_Visibility(this, 'filters_Section', 'Filters')" id = "filters_Section_Toggle_Button">Show Filters</button><span id = "number_Of_Items_Sorted"></span><br></div>
<div id = "filters_Section" style = "display: none; width: 680px" onchange = "filter_Table()">
<br>
<span class = "filter_Title">Level: </span><input type = "number" class = "filter_Number_Input" id = "level_Lower_Limit_Input_Box" value = "1"></input> to <input type = "number" class = "filter_Number_Input" id = "level_Upper_Limit_Input_Box" value = "37"></input><br>
<span class = "filter_Title">Experience: </span><input type = "number" class = "filter_Number_Input" id = "experience_Lower_Limit_Input_Box" value = "0"></input> to <input type = "number" class = "filter_Number_Input" id = "experience_Upper_Limit_Input_Box" value = "1000000"></input><br>
<span class = "filter_Title">Time: </span><input type = "number" class = "filter_Number_Input" id = "estimated_Time_Lower_Limit_Input_Box" value = "0"></input> to <input type = "number" class = "filter_Number_Input" id = "estimated_Time_Upper_Limit_Input_Box" value = "120"></input><br>
<span class = "filter_Title">Favor: </span><input type = "number" class = "filter_Number_Input" id = "favor_Lower_Limit_Input_Box" value = "0"></input> to <input type = "number" class = "filter_Number_Input" id = "favor_Upper_Limit_Input_Box" value = "42"></input><br>
<br>
<span class = "filter_Title">Experience Weight: </span><input type = "number" class = "filter_Number_Input" id = "experience_Weight_Input_Box" value = 1></input><br>
<span class = "filter_Title">Favor Weight: </span><input type = "number" class = "filter_Number_Input" id = "favor_Weight_Input_Box" value = 1000></input><br>
<span class = "filter_Title">Minimum Weight / Time: </span><input type = "number" class = "filter_Number_Input" id = "weighted_Experience_And_Favor_Per_Time_Lower_Limit_Input_Box" value = 0></input><br>
<br>
<span class = "filter_Title">Filter Completed: </span><input type = "checkbox" id = "filter_Completed_Checkbox"><br>
<br>
<span class = "filter_Title"><button onclick = "toggle_Visibility(this, 'adventure_Packs_Selection_Section', 'Adventure Packs')">Show Adventure Packs</button></span><br>
<div id = "adventure_Packs_Selection_Section" style = "display: none">
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Against_the_Slave_Lords">Against the Slave Lords</a>: </span><input type = "checkbox" id = "against_The_Slave_Lords_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Attack_on_Stormreach">Attack on Stormreach</a>: </span><input type = "checkbox" id = "attack_On_Stormreach_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Delera%27s_Tomb">Delera's Tomb</a>: </span><input type = "checkbox" id = "deleras_Tomb_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Zawabi%27s_Refuge">Demon Sands</a>: </span><input type = "checkbox" id = "demon_Sands_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Devil_Assault">Devil Assault</a>: </span><input type = "checkbox" id = "devil_Assault_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Disciples_of_Rage">Disciples of Rage</a>: </span><input type = "checkbox" id = "disciples_Of_Rage_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Dragonblood_Prophecy">Dragonblood Prophecy</a>: </span><input type = "checkbox" id = "dragonblood_Prophecy_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Eveningstar_Challenge_Pack">Eveningstar Challenge Pack</a>: </span><input type = "checkbox" id = "eveningstar_Challenge_Pack_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Fables_of_the_Feywild">Fables of the Feywild</a>: </span><input type = "checkbox" id = "fables_Of_The_Feywild_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Grip_of_the_Hidden_Hand">Grip of the Hidden Hand</a>: </span><input type = "checkbox" id = "grip_Of_The_Hidden_Hand_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Harbinger_of_Madness">Harbinger of Madness</a>: </span><input type = "checkbox" id = "harbinger_Of_Madness_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Heart_of_Madness">Heart of Madness</a>: </span><input type = "checkbox" id = "heart_Of_Madness_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Hunter_and_Hunted">Hunter and Hunted</a>: </span><input type = "checkbox" id = "hunter_And_Hunted_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Keep_on_the_Borderlands">Keep on the Borderlands</a>: </span><input type = "checkbox" id = "keep_On_The_Borderlands_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Magic_of_Myth_Drannor">Magic of Myth Drannor</a>: </span><input type = "checkbox" id = "magic_Of_Myth_Drannor_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Masterminds_of_Sharn">Masterminds of Sharn</a>: </span><input type = "checkbox" id = "masterminds_Of_Sharn_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Menace_of_the_Underdark_(adventure_pack)">Menace of the Underdark</a>: </span><input type = "checkbox" id = "menace_Of_The_Underdark_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Mists_of_Ravenloft">Mists of Ravenloft</a>: </span><input type = "checkbox" id = "mists_Of_Ravenloft_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Peril_of_the_Planar_Eyes">Peril of the Planar Eyes</a>: </span><input type = "checkbox" id = "peril_Of_The_Planar_Eyes_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Phiarlan_Carnival">Phiarlan Carnival</a>: </span><input type = "checkbox" id = "phiarlan_Carnival_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Reign_of_Madness">Reign of Madness</a>: </span><input type = "checkbox" id = "reign_Of_Madness_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Ruins_of_Gianthold_(heroic)">Ruins of Gianthold</a>: </span><input type = "checkbox" id = "ruins_Of_Gianthold_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Secrets_of_the_Artificers">Secrets of the Artificers</a>: </span><input type = "checkbox" id = "secrets_Of_The_Artificers_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Sentinels_of_Stormreach">Sentinels of Stormreach</a>: </span><input type = "checkbox" id = "sentinels_Of_Stormreach_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Shadow_Under_Thunderholme">Shadow Under Thunderholme</a>: </span><input type = "checkbox" id = "shadow_Under_Thunderholme_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Shadowfell_Conspiracy">Shadowfell Conspiracy</a>: </span><input type = "checkbox" id = "shadowfell_Conspiracy_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Sinister_Secret_of_Saltmarsh">Sinister Secret of Saltmarsh</a>: </span><input type = "checkbox" id = "sinister_Secret_Of_Saltmarsh_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Slice_of_Life">Slice of Life</a>: </span><input type = "checkbox" id = "slice_Of_Life_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Sorrowdusk_Isle">Sorrowdusk Isle</a>: </span><input type = "checkbox" id = "sorrowdusk_Isle_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Tangleroot_Gorge">Tangleroot Gorge</a>: </span><input type = "checkbox" id = "tangleroot_Gorge_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Catacombs">The Catacombs</a>: </span><input type = "checkbox" id = "the_Catacombs_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Devil%27s_Gambit">The Devil's Gambit</a>: </span><input type = "checkbox" id = "the_Devils_Gambit_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Devils_of_Shavarath">The Devils of Shavarath</a>: </span><input type = "checkbox" id = "the_Devils_Of_Shavarath_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Dreaming_Dark">The Dreaming Dark</a>: </span><input type = "checkbox" id = "the_Dreaming_Dark_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Druid%27s_Deep">The Druid's Deep</a>: </span><input type = "checkbox" id = "the_Druids_Deep_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Haunted_Halls_of_Eveningstar">The Haunted Halls of Eveningstar</a>: </span><input type = "checkbox" id = "the_Haunted_Halls_Of_Eveningstar_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_High_Road_of_Shadows">The High Road of Shadows</a>: </span><input type = "checkbox" id = "the_High_Road_Of_Shadows_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Isle_of_Dread">The Isle of Dread</a>: </span><input type = "checkbox" id = "the_Isle_Of_Dread_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Lost_Gatekeepers">The Lost Gatekeepers</a>: </span><input type = "checkbox" id = "the_Lost_Gatekeepers_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Mines_of_Tethyamar">The Mines of Tethyamar</a>: </span><input type = "checkbox" id = "the_Mines_Of_Tethyamar_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Litany_of_the_Dead_Part_1">The Necropolis, Part 1</a>: </span><input type = "checkbox" id = "the_Necropolis_Part_1_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Litany_of_the_Dead_Part_2">The Necropolis, Part 2</a>: </span><input type = "checkbox" id = "the_Necropolis_Part_2_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Litany_of_the_Dead_Part_3">The Necropolis, Part 3</a>: </span><input type = "checkbox" id = "the_Necropolis_Part_3_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Litany_of_the_Dead_Part_4">The Necropolis, Part 4</a>: </span><input type = "checkbox" id = "the_Necropolis_Part_4_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Path_of_Inspiration">The Path of Inspiration</a>: </span><input type = "checkbox" id = "the_Path_Of_Inspiration_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Reaver%27s_Refuge">The Reaver's Reach</a>: </span><input type = "checkbox" id = "the_Reavers_Reach_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Red_Fens">The Red Fens</a>: </span><input type = "checkbox" id = "the_Red_Fens_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Restless_Isles">The Restless Isles</a>: </span><input type = "checkbox" id = "the_Restless_Isles_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Ruins_of_Threnal">The Ruins of Threnal</a>: </span><input type = "checkbox" id = "the_Ruins_Of_Threnal_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Seal_of_Shan-To-Kor">The Seal of Shan-To-Kor</a>: </span><input type = "checkbox" id = "the_Seal_Of_Shan_To_Kor_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Sharn_Syndicate">The Sharn Syndicate</a>: </span><input type = "checkbox" id = "the_Sharn_Syndicate_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Soul_Splitter">The Soul Splitter</a>: </span><input type = "checkbox" id = "the_Soul_Splitter_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Temple_of_Elemental_Evil">The Temple of Elemental Evil</a>: </span><input type = "checkbox" id = "the_Temple_Of_Elemental_Evil_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/The_Vale_of_Twilight">The Vale of Twilight</a>: </span><input type = "checkbox" id = "the_Vale_Of_Twilight_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Vault_of_Night">The Vault of Night</a>: </span><input type = "checkbox" id = "the_Vault_Of_Night_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Three-Barrel_Cove">Three-Barrel Cove</a>: </span><input type = "checkbox" id = "three_Barrel_Cove_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Trials_of_the_Archons">Trials of the Archons</a>: </span><input type = "checkbox" id = "trials_Of_The_Archons_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Vaults_of_the_Artificers">Vaults of the Artificers</a>: </span><input type = "checkbox" id = "vaults_Of_The_Artificers_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/Vecna_Unleashed">Vecna Unleashed</a>: </span><input type = "checkbox" id = "vecna_Unleashed_Checkbox"><br>
<span class = "adventure_Pack_Filter_Title"><a href = "https://ddowiki.com/page/White_Plume_Mountain_and_Other_Tales">White Plume Mountain and Other Tales</a>: </span><input type = "checkbox" id = "white_Plume_Mountain_And_Other_Tales_Checkbox"><br>
</div>
<br>
<span class = "filter_Title">Contains phrases: </span><input type = "text" class = "filter_Text_Input" id = "contains_Phrases_Input_Box"><br>
<span class = "filter_Title">Does not contain phrases: </span><input type = "text" class = "filter_Text_Input" id = "does_Not_Contain_Phrases_Input_Box"><br>
<br>
<button onclick = "reset_Filters()">Reset Filters</button>
</div>
<br>
<table>
<caption></caption>
<thead>
<tr>
<th onclick = "sort_Table(0)">Completed</th>
<th onclick = "sort_Table(1)" class = "numerical_Column">Level</th>
<th onclick = "sort_Table(2)" class = "alphabetical_Column">Quest Name</th>
<th onclick = "sort_Table(3)" class = "numerical_Column">Exp</th>
<th onclick = "sort_Table(4)" class = "numerical_Column">Time</th>
<th onclick = "sort_Table(5)" class = "numerical_Column">Favor</th>
<th onclick = "sort_Table(6)" class = "alphabetical_Column">Location</th>
<th onclick = "sort_Table(7)" class = "alphabetical_Column">Adventure Pack</th>
<th onclick = "sort_Table(8)" class = "alphabetical_Column">Damage Reduction Information</th>
<th onclick = "sort_Table(9)" class = "alphabetical_Column">Notes</th>
</tr>
</thead>
<tbody id = "table_Body">
</tbody>
</table>
<script type = "text/javascript" src = "raw_Table_String.js"><!--Just includes the variable raw_Table_String in the global scope which is the starting point for the table if no local changes have been saved-->
</script>
<script type = "text/javascript">
window.addEventListener //Listens for navigation away from the page
(
"beforeunload", function(event)
{
event.preventDefault();
}
);
var table_Body_Element = document.getElementById("table_Body");
var download_Raw_String_Link_Element = document.getElementById("download_Raw_String_Link");
var level_Lower_Limit_Input_Box_Element = document.getElementById("level_Lower_Limit_Input_Box");
var level_Upper_Limit_Input_Box_Element = document.getElementById("level_Upper_Limit_Input_Box");
var experience_Lower_Limit_Input_Box_Element = document.getElementById("experience_Lower_Limit_Input_Box");
var experience_Upper_Limit_Input_Box_Element = document.getElementById("experience_Upper_Limit_Input_Box");
var time_Lower_Limit_Input_Box_Element = document.getElementById("estimated_Time_Lower_Limit_Input_Box");
var time_Upper_Limit_Input_Box_Element = document.getElementById("estimated_Time_Upper_Limit_Input_Box");
var favor_Lower_Limit_Input_Box_Element = document.getElementById("favor_Lower_Limit_Input_Box");
var favor_Upper_Limit_Input_Box_Element = document.getElementById("favor_Upper_Limit_Input_Box");
var experience_Weight_Input_Box_Element = document.getElementById("experience_Weight_Input_Box");
var favor_Weight_Input_Box_Element = document.getElementById("favor_Weight_Input_Box");
var weighted_Experience_And_Favor_Per_Time_Lower_Limit_Input_Box_Element = document.getElementById("weighted_Experience_And_Favor_Per_Time_Lower_Limit_Input_Box");
var filter_Completed_Checkbox_Element = document.getElementById("filter_Completed_Checkbox");
var against_The_Slave_Lords_Checkbox_Element = document.getElementById("against_The_Slave_Lords_Checkbox");
var attack_On_Stormreach_Checkbox_Element = document.getElementById("attack_On_Stormreach_Checkbox");
var deleras_Tomb_Checkbox_Element = document.getElementById("deleras_Tomb_Checkbox");
var demon_Sands_Checkbox_Element = document.getElementById("demon_Sands_Checkbox");
var devil_Assault_Checkbox_Element = document.getElementById("devil_Assault_Checkbox");
var disciples_Of_Rage_Checkbox_Element = document.getElementById("disciples_Of_Rage_Checkbox");
var dragonblood_Prophecy_Checkbox_Element = document.getElementById("dragonblood_Prophecy_Checkbox");
var eveningstar_Challenge_Pack_Checkbox_Element = document.getElementById("eveningstar_Challenge_Pack_Checkbox");
var fables_Of_The_Feywild_Checkbox_Element = document.getElementById("fables_Of_The_Feywild_Checkbox");
var grip_Of_The_Hidden_Hand_Checkbox_Element = document.getElementById("grip_Of_The_Hidden_Hand_Checkbox");
var harbinger_Of_Madness_Checkbox_Element = document.getElementById("harbinger_Of_Madness_Checkbox");
var heart_Of_Madness_Checkbox_Element = document.getElementById("heart_Of_Madness_Checkbox");
var hunter_And_Hunted_Checkbox_Element = document.getElementById("hunter_And_Hunted_Checkbox");
var keep_On_The_Borderlands_Checkbox_Element = document.getElementById("keep_On_The_Borderlands_Checkbox");
var magic_Of_Myth_Drannor_Checkbox_Element = document.getElementById("magic_Of_Myth_Drannor_Checkbox");
var masterminds_Of_Sharn_Checkbox_Element = document.getElementById("masterminds_Of_Sharn_Checkbox");
var menace_Of_The_Underdark_Checkbox_Element = document.getElementById("menace_Of_The_Underdark_Checkbox");
var mists_Of_Ravenloft_Checkbox_Element = document.getElementById("mists_Of_Ravenloft_Checkbox");
var peril_Of_The_Planar_Eyes_Checkbox_Element = document.getElementById("peril_Of_The_Planar_Eyes_Checkbox");
var phiarlan_Carnival_Checkbox_Element = document.getElementById("phiarlan_Carnival_Checkbox");
var reign_Of_Madness_Checkbox_Element = document.getElementById("reign_Of_Madness_Checkbox");
var ruins_Of_Gianthold_Checkbox_Element = document.getElementById("ruins_Of_Gianthold_Checkbox");
var secrets_Of_The_Artificers_Checkbox_Element = document.getElementById("secrets_Of_The_Artificers_Checkbox");
var sentinels_Of_Stormreach_Checkbox_Element = document.getElementById("sentinels_Of_Stormreach_Checkbox");
var shadow_Under_Thunderholme_Checkbox_Element = document.getElementById("shadow_Under_Thunderholme_Checkbox");
var shadowfell_Conspiracy_Checkbox_Element = document.getElementById("shadowfell_Conspiracy_Checkbox");
var sinister_Secret_Of_Saltmarsh_Checkbox_Element = document.getElementById("sinister_Secret_Of_Saltmarsh_Checkbox");
var slice_Of_Life_Checkbox_Element = document.getElementById("slice_Of_Life_Checkbox");
var sorrowdusk_Isle_Checkbox_Element = document.getElementById("sorrowdusk_Isle_Checkbox");
var tangleroot_Gorge_Checkbox_Element = document.getElementById("tangleroot_Gorge_Checkbox");
var the_Catacombs_Checkbox_Element = document.getElementById("the_Catacombs_Checkbox");
var the_Devils_Gambit_Checkbox_Element = document.getElementById("the_Devils_Gambit_Checkbox");
var the_Devils_Of_Shavarath_Checkbox_Element = document.getElementById("the_Devils_Of_Shavarath_Checkbox");
var the_Dreaming_Dark_Checkbox_Element = document.getElementById("the_Dreaming_Dark_Checkbox");
var the_Druids_Deep_Checkbox_Element = document.getElementById("the_Druids_Deep_Checkbox");
var the_Haunted_Halls_Of_Eveningstar_Checkbox_Element = document.getElementById("the_Haunted_Halls_Of_Eveningstar_Checkbox");
var the_High_Road_Of_Shadows_Checkbox_Element = document.getElementById("the_High_Road_Of_Shadows_Checkbox");
var the_Isle_Of_Dread_Checkbox_Element = document.getElementById("the_Isle_Of_Dread_Checkbox");
var the_Lost_Gatekeepers_Checkbox_Element = document.getElementById("the_Lost_Gatekeepers_Checkbox");
var the_Mines_Of_Tethyamar_Checkbox_Element = document.getElementById("the_Mines_Of_Tethyamar_Checkbox");
var the_Necropolis_Part_1_Checkbox_Element = document.getElementById("the_Necropolis_Part_1_Checkbox");
var the_Necropolis_Part_2_Checkbox_Element = document.getElementById("the_Necropolis_Part_2_Checkbox");
var the_Necropolis_Part_3_Checkbox_Element = document.getElementById("the_Necropolis_Part_3_Checkbox");
var the_Necropolis_Part_4_Checkbox_Element = document.getElementById("the_Necropolis_Part_4_Checkbox");
var the_Path_Of_Inspiration_Checkbox_Element = document.getElementById("the_Path_Of_Inspiration_Checkbox");
var the_Reavers_Reach_Checkbox_Element = document.getElementById("the_Reavers_Reach_Checkbox");
var the_Red_Fens_Checkbox_Element = document.getElementById("the_Red_Fens_Checkbox");
var the_Restless_Isles_Checkbox_Element = document.getElementById("the_Restless_Isles_Checkbox");
var the_Ruins_Of_Threnal_Checkbox_Element = document.getElementById("the_Ruins_Of_Threnal_Checkbox");
var the_Seal_Of_Shan_To_Kor_Checkbox_Element = document.getElementById("the_Seal_Of_Shan_To_Kor_Checkbox");
var the_Sharn_Syndicate_Checkbox_Element = document.getElementById("the_Sharn_Syndicate_Checkbox");
var the_Soul_Splitter_Checkbox_Element = document.getElementById("the_Soul_Splitter_Checkbox");
var the_Temple_Of_Elemental_Evil_Checkbox_Element = document.getElementById("the_Temple_Of_Elemental_Evil_Checkbox");
var the_Vale_Of_Twilight_Checkbox_Element = document.getElementById("the_Vale_Of_Twilight_Checkbox");
var the_Vault_Of_Night_Checkbox_Element = document.getElementById("the_Vault_Of_Night_Checkbox");
var three_Barrel_Cove_Checkbox_Element = document.getElementById("three_Barrel_Cove_Checkbox");
var trials_Of_The_Archons_Checkbox_Element = document.getElementById("trials_Of_The_Archons_Checkbox");
var vaults_Of_The_Artificers_Checkbox_Element = document.getElementById("vaults_Of_The_Artificers_Checkbox");
var vecna_Unleashed_Checkbox_Element = document.getElementById("vecna_Unleashed_Checkbox");
var white_Plume_Mountain_And_Other_Tales_Checkbox_Element = document.getElementById("white_Plume_Mountain_And_Other_Tales_Checkbox");
var contains_Phrases_Input_Box_Element = document.getElementById("contains_Phrases_Input_Box");
var does_Not_Contain_Phrases_Input_Box_Element = document.getElementById("does_Not_Contain_Phrases_Input_Box");
var number_Of_Items_Sorted_Element = document.getElementById("number_Of_Items_Sorted");
var table_Body_Array = []; //Stores the table rows, which are themselves arrays of strings
var table_Data_Array_Copy = []; //A copy of the array used to stablize the sort in Chrome. Data order will often be intentionally one update behind
var column_Name_To_Array_Index = { completed: 0, level: 1, quest_Name: 2, exp: 3, time: 4, favor: 5, location: 6, adventure_Pack: 7, damage_Reduction_Information: 8, notes: 9}; //Update type as well if any changes are made
var sort_Selection_Type_Array = [ "Checkbox", "Numerical", "Quest Name", "Numerical", "Numerical", "Numerical", "Alphabetical", "Alphabetical", "Alphabetical", "Alphabetical"]; //The type of sort to use on each selection
var sort_Selection_Ascending_State_Array = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; //1 represents that the values for a selection type are increasing as the rows go down, -1 represents values lowering as the rows go down
var current_Sort_Selection = 0;
var number_Of_Items_Filtered = 0;
function filter_Table()
{
table_Body_Element.style.display = "none"; //Avoids unnecessary redrawing of Table
number_Of_Items_Filtered = 0;
var contains_Phrases_Array = contains_Phrases_Input_Box_Element.value.split(" "); //Used in phrase filters
if(contains_Phrases_Array.length === 1 && contains_Phrases_Array[0] === "")
{
contains_Phrases_Array = [];
}
var does_Not_Contain_Phrases_Array = does_Not_Contain_Phrases_Input_Box_Element.value.split(" "); //Used in phrase filters
if(does_Not_Contain_Phrases_Array.length === 1 && does_Not_Contain_Phrases_Array[0] === "")
{
does_Not_Contain_Phrases_Array = [];
}
for(i = 0; i < table_Body_Element.children.length; i++)
{
table_Body_Element.children[i].style.display = "table-row";
if
(
Number(table_Body_Array[i][column_Name_To_Array_Index.level]) < level_Lower_Limit_Input_Box_Element.value || Number(table_Body_Array[i][column_Name_To_Array_Index.level]) > level_Upper_Limit_Input_Box_Element.value
|| Number(table_Body_Array[i][column_Name_To_Array_Index.exp]) < experience_Lower_Limit_Input_Box_Element.value || Number(table_Body_Array[i][column_Name_To_Array_Index.exp]) > experience_Upper_Limit_Input_Box_Element.value
|| Number(table_Body_Array[i][column_Name_To_Array_Index.time]) < time_Lower_Limit_Input_Box_Element.value || Number(table_Body_Array[i][column_Name_To_Array_Index.time]) > time_Upper_Limit_Input_Box_Element.value
|| Number(table_Body_Array[i][column_Name_To_Array_Index.favor]) < favor_Lower_Limit_Input_Box_Element.value || Number(table_Body_Array[i][column_Name_To_Array_Index.favor]) > favor_Upper_Limit_Input_Box_Element.value
)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
if(((Number(table_Body_Array[i][column_Name_To_Array_Index.exp]) * experience_Weight_Input_Box_Element.value) + (Number(table_Body_Array[i][column_Name_To_Array_Index.favor]) * favor_Weight_Input_Box_Element.value) / Number(table_Body_Array[i][column_Name_To_Array_Index.time])) < weighted_Experience_And_Favor_Per_Time_Lower_Limit_Input_Box_Element.value)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
if(filter_Completed_Checkbox_Element.checked === true)
{
if(table_Body_Array[i][column_Name_To_Array_Index.completed] === "<input type=\"checkbox\" checked=\"\">")
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
}
switch(table_Body_Array[i][column_Name_To_Array_Index.adventure_Pack])
{
case "Against the Slave Lords":
if(against_The_Slave_Lords_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue; //Moves to next row in the loop, nothing to do with switch statement
}
break;
case "Attack on Stormreach":
if(attack_On_Stormreach_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Delera's Tomb":
if(deleras_Tomb_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Demon Sands":
if(demon_Sands_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Devil Assault":
if(devil_Assault_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Disciples of Rage":
if(disciples_Of_Rage_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Dragonblood Prophecy":
if(dragonblood_Prophecy_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Eveningstar Challenge Pack":
if(eveningstar_Challenge_Pack_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Fables of the Feywild":
if(fables_Of_The_Feywild_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Grip of the Hidden Hand":
if(grip_Of_The_Hidden_Hand_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Harbinger of Madness":
if(harbinger_Of_Madness_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Heart of Madness":
if(heart_Of_Madness_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Hunter and Hunted":
if(hunter_And_Hunted_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Keep on the Borderlands":
if(keep_On_The_Borderlands_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Magic of Myth Drannor":
if(magic_Of_Myth_Drannor_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Masterminds of Sharn":
if(masterminds_Of_Sharn_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Menace of the Underdark":
if(menace_Of_The_Underdark_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Mists of Ravenloft":
if(mists_Of_Ravenloft_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Peril of the Planar Eyes":
if(peril_Of_The_Planar_Eyes_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Phiarlan Carnival":
if(phiarlan_Carnival_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Reign of Madness":
if(reign_Of_Madness_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Ruins of Gianthold":
if(ruins_Of_Gianthold_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Secrets of the Artificers":
if(secrets_Of_The_Artificers_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Sentinels of Stormreach":
if(sentinels_Of_Stormreach_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Shadow Under Thunderholme":
if(shadow_Under_Thunderholme_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Shadowfell Conspiracy":
if(shadowfell_Conspiracy_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Sinister Secret of Saltmarsh":
if(sinister_Secret_Of_Saltmarsh_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Slice of Life":
if(slice_Of_Life_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Sorrowdusk Isle":
if(sorrowdusk_Isle_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Tangleroot Gorge":
if(tangleroot_Gorge_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Catacombs":
if(the_Catacombs_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Devil's Gambit":
if(the_Devils_Gambit_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Devils of Shavarath":
if(the_Devils_Of_Shavarath_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Dreaming Dark":
if(the_Dreaming_Dark_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Druid's Deep":
if(the_Druids_Deep_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Haunted Halls of Eveningstar":
if(the_Haunted_Halls_Of_Eveningstar_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The High Road of Shadows":
if(the_High_Road_Of_Shadows_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Isle of Dread":
if(the_Isle_Of_Dread_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Lost Gatekeepers":
if(the_Lost_Gatekeepers_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Mines of Tethyamar":
if(the_Mines_Of_Tethyamar_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Necropolis, Part 1":
if(the_Necropolis_Part_1_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Necropolis, Part 2":
if(the_Necropolis_Part_2_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Necropolis, Part 3":
if(the_Necropolis_Part_3_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Necropolis, Part 4":
if(the_Necropolis_Part_4_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Path of Inspiration":
if(the_Path_Of_Inspiration_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Reaver's Reach":
if(the_Reavers_Reach_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Red Fens":
if(the_Red_Fens_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Restless Isles":
if(the_Restless_Isles_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Ruins of Threnal":
if(the_Ruins_Of_Threnal_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Seal of Shan-To-Kor":
if(the_Seal_Of_Shan_To_Kor_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Sharn Syndicate":
if(the_Sharn_Syndicate_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Soul Splitter":
if(the_Soul_Splitter_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Temple of Elemental Evil":
if(the_Temple_Of_Elemental_Evil_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Vale of Twilight":
if(the_Vale_Of_Twilight_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "The Vault of Night":
if(the_Vault_Of_Night_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Three-Barrel Cove":
if(three_Barrel_Cove_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Trials of the Archons":
if(trials_Of_The_Archons_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Vaults of the Artificers":
if(vaults_Of_The_Artificers_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "Vecna Unleashed":
if(vecna_Unleashed_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
case "White Plume Mountain and Other Tales":
if(white_Plume_Mountain_And_Other_Tales_Checkbox_Element.checked === true)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
continue;
}
break;
default:
}
for(j = 0; j < contains_Phrases_Array.length; j++)
{
if
(
table_Body_Element.children[i].children[column_Name_To_Array_Index.quest_Name].textContent.toLowerCase().includes(contains_Phrases_Array[j].toLowerCase()) === false //Uses the table itself rather than array to avoid matching hidden URLs
&& table_Body_Array[i][column_Name_To_Array_Index.location].toLowerCase().includes(contains_Phrases_Array[j].toLowerCase()) === false
&& table_Body_Array[i][column_Name_To_Array_Index.adventure_Pack].toLowerCase().includes(contains_Phrases_Array[j].toLowerCase()) === false
&& table_Body_Array[i][column_Name_To_Array_Index.damage_Reduction_Information].toLowerCase().includes(contains_Phrases_Array[j].toLowerCase()) === false
&& table_Body_Array[i][column_Name_To_Array_Index.notes].toLowerCase().includes(contains_Phrases_Array[j].toLowerCase()) === false
)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
break;
}
}
if(table_Body_Element.children[i].style.display === "none")
{
continue;
}
for(j = 0; j < does_Not_Contain_Phrases_Array.length; j++)
{
if
(
table_Body_Element.children[i].children[column_Name_To_Array_Index.quest_Name].textContent.toLowerCase().includes(does_Not_Contain_Phrases_Array[j].toLowerCase()) === true //Uses the table itself rather than array to avoid matching hidden URLs
|| table_Body_Array[i][column_Name_To_Array_Index.location].toLowerCase().includes(does_Not_Contain_Phrases_Array[j].toLowerCase()) === true
|| table_Body_Array[i][column_Name_To_Array_Index.adventure_Pack].toLowerCase().includes(does_Not_Contain_Phrases_Array[j].toLowerCase()) === true
|| table_Body_Array[i][column_Name_To_Array_Index.damage_Reduction_Information].toLowerCase().includes(does_Not_Contain_Phrases_Array[j].toLowerCase()) === true
|| table_Body_Array[i][column_Name_To_Array_Index.notes].toLowerCase().includes(does_Not_Contain_Phrases_Array[j].toLowerCase()) === true
)
{
table_Body_Element.children[i].style.display = "none";
number_Of_Items_Filtered = number_Of_Items_Filtered + 1;
break;
}
}
if((i - number_Of_Items_Filtered) % 2 === 0) //Apply the alternating color background stripes to visible rows
{
table_Body_Element.children[i].style.backgroundColor = "rgba(255, 255, 255, 1.0)";
}
else
{
table_Body_Element.children[i].style.backgroundColor = "rgba(225, 225, 225, 1.0)";
}
}
number_Of_Items_Sorted_Element.textContent = number_Of_Items_Filtered + " Items Filtered";
table_Body_Element.style.display = "table-row-group"; //Return the Table to visible
}
function update_Table() //Converts the contents of the array into HTML
{
table_Body_Element.style.display = "none"; //Avoid unnecessary redrawing of Table
while(table_Body_Element.children[0] !== undefined) //Destroys the old table
{
table_Body_Element.removeChild(table_Body_Element.lastChild);
}
for(i = 0; i < table_Body_Array.length; i++) //Fills the table with rows and data
{
var new_Table_Row = document.createElement("TR");
for(j = 0; j < sort_Selection_Type_Array.length; j++)
{
var new_Table_Data = document.createElement("TD");
new_Table_Data.innerHTML = table_Body_Array[i][j];
if(j === column_Name_To_Array_Index.exp || j === column_Name_To_Array_Index.time || j === column_Name_To_Array_Index.damage_Reduction_Information || j === column_Name_To_Array_Index.notes)
{
new_Table_Data.setAttribute("contenteditable", "true");
}
new_Table_Data.setAttribute("oninput", "table_Data_Changed(" + i + ", " + j + ")");
new_Table_Row.appendChild(new_Table_Data);
}
table_Body_Element.appendChild(new_Table_Row);
}
filter_Table(); //Also changes style back to normal for redraw
}
function numerical_Sort(item_1, item_2)
{
if(Number(item_1[current_Sort_Selection]) < Number(item_2[current_Sort_Selection]))
{
return -1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
else if(Number(item_1[current_Sort_Selection]) === Number(item_2[current_Sort_Selection]))
{
if(table_Data_Array_Copy.indexOf(item_1) < table_Data_Array_Copy.indexOf(item_2))
{
return -1;
}
else
{
return 1;
}
}
else
{
return 1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
}
function quest_Name_Sort(item_1, item_2) //Quest names should not contain the > character side from the the ones present in <a>Name</a> and should always be closed properly if it has a hidden URL
{
var item_1_Quest_Name = item_1[current_Sort_Selection][item_1[current_Sort_Selection].length - 1] === ">" ? item_1[current_Sort_Selection].split(">")[1].split("<")[0] : item_1[current_Sort_Selection];
var item_2_Quest_Name = item_2[current_Sort_Selection][item_2[current_Sort_Selection].length - 1] === ">" ? item_2[current_Sort_Selection].split(">")[1].split("<")[0] : item_2[current_Sort_Selection];
if(item_1_Quest_Name < item_2_Quest_Name)
{
return -1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
else if(item_1_Quest_Name === item_2_Quest_Name) //Shouldn't occur, but left just in case someone messes up the list
{
if(table_Data_Array_Copy.indexOf(item_1) < table_Data_Array_Copy.indexOf(item_2))
{
return -1;
}
else
{
return 1;
}
}
else
{
return 1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
}
function alphabetical_Sort(item_1, item_2)
{
if(item_1[current_Sort_Selection] < item_2[current_Sort_Selection])
{
return -1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
else if(item_1[current_Sort_Selection] === item_2[current_Sort_Selection])
{
if(table_Data_Array_Copy.indexOf(item_1) < table_Data_Array_Copy.indexOf(item_2))
{
return -1;
}
else
{
return 1;
}
}
else
{
return 1 * sort_Selection_Ascending_State_Array[current_Sort_Selection];
}
}
function sort_Table(sort_Selection) //Orders the table by a column
{
if(sort_Selection === current_Sort_Selection) //Flip from ascending to/from descending if the user clicks on the already selected category to sort
{
sort_Selection_Ascending_State_Array[sort_Selection] = sort_Selection_Ascending_State_Array[sort_Selection] * -1;
}
current_Sort_Selection = sort_Selection;
table_Data_Array_Copy = [];
for(i = 0; i < table_Body_Array.length; i++)
{
table_Data_Array_Copy[i] = table_Body_Array[i];
}
if(sort_Selection_Type_Array[current_Sort_Selection] === "Numerical") //Numerical Sort
{
table_Body_Array.sort(numerical_Sort);
}
else if(sort_Selection_Type_Array[current_Sort_Selection] === "Quest Name") //Quest Name Sort
{
table_Body_Array.sort(quest_Name_Sort);
}
else //Regular Alphabetical, also used for Checkboxes