forked from SalGnt/Travelogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.html
1051 lines (1010 loc) · 37.5 KB
/
events.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
---
layout: default
title: Events
---
<script
type="text/javascript"
src="{{ '/assets/js/libs/moment.min.js' | prepend: site.baseurl }}"
></script>
<script
type="text/javascript"
src="{{ '/assets/js/libs/fullcalendar.min.js' | prepend: site.baseurl }}"
></script>
<script
type="text/javascript"
src="{{ '/assets/js/libs/konami.min.js' | prepend: site.baseurl }}"
></script>
<link
rel="stylesheet"
href="{{ '/assets/css/vendors/fullcalendar.min.css' | prepend:site.baseurl }}"
/>
<style>
.form-container {
display: flex;
justify-content: center;
padding: 15px;
}
#calendar {
padding-top: 20px;
padding-bottom: 20px;
}
#sb-site {
padding-top: 20px;
padding-bottom: 20px;
}
.fc-view-container {
background: #fafafa;
}
.fc-day-header {
padding-top: 5px !important;
padding-bottom: 5px !important;
}
.fc-content {
padding: 5px;
}
.event-current {
background: #74c1e8;
}
.event-holiday {
background: #e3e192;
}
.event-session {
background: #ff7f7f;
}
.event-default {
background: #7fffbb;
}
.fc-list-item-title a {
font-weight: bold;
}
.event-tooltip .tooltip b {
line-height: 2;
}
.event-tooltip {
position: relative;
}
.event-tooltip .fc-title {
border-bottom: 1px dotted black;
}
.event-tooltip .tooltip {
visibility: hidden;
width: 240px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 2147483647;
bottom: 125%;
left: 50%;
margin-left: -120px;
opacity: 0;
}
.event-tooltip .tooltip::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.event-tooltip:hover .tooltip {
visibility: visible;
opacity: 1;
}
</style>
<div class="form-container">
<select id="campaign-selector">
<option value="ignemTaxo">Ignem Taxo</option>
<option value="c2">Campaign 2</option>
</select>
<button id="render-calendar">View Calendar</button>
</div>
<div id="calendar-container">
<div id="calendar" />
</div>
<script>
moment.updateLocale("en", {
months: [
"Abadius",
"Calistril",
"Pharast",
"Gozran",
"Desnus",
"Sarenith",
"Erastus",
"Arodus",
"Rova",
"Lamashan",
"Neth",
"Kuthona",
],
weekdays: [
"Sunday",
"Moonday",
"Toilday",
"Wealday",
"Oathday",
"Fireday",
"Starday",
],
});
var campaignEvents = {
ignemTaxo: {
currentDate: moment("5088-03-21"),
events: [
{
title: "Campaign begins",
start: "5087-03-03",
},
{
title: "*Runemagic Expiration",
description:
"The !Runerock, an ancient magic-infused piece of earth that powers the magic of the dwarves of #Vohrn Valdhur, has gone inert causing all of their magic to fail.",
start: "5087-11-22",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Runemagic Expiration",
},
{
title: "!Runewell of Lust Refills",
description:
"The !Runerock's original power source, the !Runewell of Lust replenishes its power. Sky within a 100 mile radius glows as though daylight (but with a pink tint). Sky within a 200 mile radius glows with a dim light (also with a pink tint)",
start: "5087-12-19",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Runemagic Expiration",
type: "secret",
},
{
title: "!Hat of Disguise arrives at #D'Aguillon Estate",
start: "5087-12-23",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/item/Hat Of Disguise",
type: "secret",
},
{
title: "!Runewell of Lust Rumors reach Vigil",
description:
"Rumors of a sky that lit up light daylight reach #Vigil",
start: "5087-12-29",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Runemagic Expiration",
type: "secret",
},
{
title: "@Ildkongs Deadline",
description:
"@Ildkong offered ^Ignem Taxo a bargain: Bring him a master dwarven blacksmith before the year is out and @Narlak Fineseer can keep his home under the #Lyrune Mesa. If ^Ignem Taxo fail to do this, he will kill @Narlak Fineseer and hunt them down. As a show of good faith, @Ildkong is allowing @Narlak Fineseer to access his home in the interim.",
start: "5088-09-05",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Dreams Of Fire",
},
{
title: "^Valdhurian Scouts return",
description:
"Prince @Grasul Runerock says that he will muster armies of the other kingdoms and order the entire ^Dwarven Legion to march on #Adamaneuadd. Its likely that a trip that long will take 3 months.",
start: "5088-01-15",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Dreams Of Fire",
},
{
title: "^Dwarven Legion marches on #Adamaneuadd",
description:
"The ^Dwarven Legion begins the march on #Adamaneuadd.",
start: "5088-01-18",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Dreams Of Fire",
},
{
title: "^Dwarven Legion seige on #Adamaneuadd begins",
description:
"The ^Dwarven Legion has crossed the continent and begun the seige on #Adamaneuadd",
start: "5088-05-03",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Dreams Of Fire",
type: "secret",
},
{
title: "@Sirius becomes an adult",
start: "5088-07-12",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/organization/Blink Dog",
type: "secret",
},
{
title: "#Fel Talos Keep is permanently summoned",
start: "5088-01-28",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/plot/Fomorian Incursion",
type: "secret",
},
{
title: "!Memory Stone used",
start: "5088-01-05",
link: "https://campaign-logger.com/#/log/f109d3a5519cd49f2a4fab503e09d4b4/item/Memory Stone",
},
],
},
c2: {
currentDate: moment("4444-04-25"),
events: [
{
title: "Campaign begins",
start: "4444-04-25",
},
],
},
};
var pathfinderHolidays = [
{
title: "Foundation Day",
description:
"A civil holiday celebrating the foundation of the city by the god Aroden.",
city: "Absalom",
start: moment("2000-01-01"),
},
{
title: "Pjallarane Day",
description:
"This Irrisen New Year celebration commemorates the one-day rebellion launched by Queen Pjallarane against her mother, Baba Yaga.",
city: "Irrisen",
start: moment("2000-01-01"),
},
{
title: "Eternal Kiss (New Moon)",
description:
"This 11-day festival culminates on the first new moon of the new year. It involves soothsaying using the entrails of a sacrificial victim.",
god: "Zon-Kuthon",
start: moment("2000-01-03"),
},
{
title: "Vault Day",
god: "Abadar",
start: moment("2000-01-06"),
},
{
title: "Longnight (Full Moon)",
description:
"All-night festival in which revelers defy the darkness of winter and stay up to greet the dawn. In chilly Irrisen, entire communities gather for annual dances on this night.",
start: moment("2000-01-18"),
},
{
title: "Ruby Prince's Birthday",
description:
"A national holiday in honor of the birthday of Khemet III, the Ruby Prince.",
city: "Osirion",
start: moment("2000-01-20"),
},
{
title: "Merrymead",
description:
"During this holiday in celebration of the approaching Spring, the previous year's alcohol is consumed.",
city: "Druma",
god: "Cayden Cailean",
start: moment("2000-02-02"),
},
{
title: "King Eodred II's Birthday",
description:
"A probably now defunct holiday honoring King Eodred (given the King's death in 4708 AR) on the occasion of his birthday.",
city: "Korvosa",
start: moment("2000-02-16"),
},
{
title: "Loyalty Day",
description:
"This national holiday commemorates the signing of the Treaty of Egorian which ended Cheliax's civil war and installed the diabolic House Thrune on the throne.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-02-19"),
},
{
title: "Leap Day",
start: moment("2000-02-29"),
},
{
title: "Fateless Day",
description:
"Followers of Mahathallah mark each leap day as Fateless Day, when the River of Souls temporarily stops and souls can escape Pharasma's judgment. They perform many sacrificial and suicidal rituals on Fateless Day.",
god: "Mahathallah",
start: moment("2000-02-29"),
},
{
title: "Batul al-Alim",
description:
"This holiday commemorates the birth of the romantic Qadiran poet Batul al-Alim.",
city: "Qadira",
start: moment("2000-02-28"),
},
{
title: "Golemwalk Parade",
description:
"A parade of golems made by amateurs hoping to win a monetary grant from the Golemworks. At the end of the parade, the constructs are judged.",
city: "Magnimar",
start: moment("2000-03-02"),
},
{
title: "Day of Bones",
description:
"Priests and worshipers of the Lady of Graves parade the bodies of the recently dead on this holiday, holding free burials afterwards.",
god: "Pharasma",
start: moment("2000-03-05"),
},
{
title: "Sable Company Founding Day",
description:
"A military holiday marked by parades, celebrating the founding of the Sable Company in 4409 AR.",
city: "Korvosa",
start: moment("2000-03-06"),
},
{
title: "Night of Tears",
description:
"A solemn vigil commemorating those lost in the Battle of Red Hail in 4701 AR.",
city: "Solku",
start: moment("2000-03-07"),
},
{
title: "Kaliashahrim",
description:
"This national holiday celebrates the Padishah Emperor and Qadira's allegiance to him.",
city: "Qadira",
start: moment("2000-03-13"),
},
{
title: "Days of Wrath",
description:
"Contests and blood sports are held to honor and elevate those who are superior.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-03-15"),
},
{
title: "Firstbloom",
description: "Fertility dances celebrate the coming of spring.",
god: "Gozreh",
start: moment("2000-03-15"),
},
{
title: "Planting Week",
description:
"This holy week to the god Erastil is a time of heavy work in the fields for farmers.",
city: "Erastil",
start: moment("2000-03-15"),
},
{
title: "Conquest Day",
description:
"A national holiday in which citizens of Nex renew their pledge to conquer their eternal enemy, Geb.",
city: "Nex",
start: moment("2000-03-26"),
},
{
title: "Currentseve",
description:
"On this religious holiday, all who travel on the water make offerings to Gozreh in the hopes of safe passage for the coming year.",
god: "Gozreh",
start: moment("2000-04-07"),
},
{
title: "Taxfest",
description:
"Priests of the god accompany tax collectors on this holiday. After completing their duties, the church sponsors large (and free) public celebrations to help mend relations with common folk.",
god: "Abadar",
start: moment("2000-04-15"),
},
{
title: "Wrights of Augustana",
description:
"This local festival in the Andoran port city of Augustana is held to honor and celebrate the local shipbuilding industry as well as the navy.",
city: "Andoran",
start: moment("2000-04-16"),
end: moment("2000-04-30"),
},
{
title: "Ascendance Night",
description:
"Day marking the apotheosis of the Reaper of Reputation.",
god: "Norgorber",
start: moment("2000-05-02"),
},
{
title: "Old-Mage Day",
description:
"Holiday celebrating Old-Mage Jatembe, the father of Garundi magic.",
city: "Nantambu",
start: moment("2000-05-13"),
},
{
title: "Remembrance Moon (Full Moon)",
description:
"A national holiday to commemorate those who died in the Shining Crusade against the Whispering Tyrant.[3] Although not strictly a religious holiday, Iomedae's name is heavily invoked, due to her many military accomplishments during the war.",
city: "Lastwall, Ustalav",
god: "Iomedae",
start: moment("2000-05-18"),
},
{
title: "Goblin Flea Market",
description:
"A market day that focuses on unusual crafts and offers games to children who dress up for the occasion.",
city: "Andoran",
start: moment("2000-05-29"),
},
{
title: "Breaching Festival",
description:
"Yearly festival in which contestants try to break through the magical wards protecting the Academae.",
city: "Korvosa",
start: moment("2000-05-29"),
},
{
title: "Angel Day",
description:
"A day of masquerades acting as a celebration to the Empyreal Lords.",
city: "Magnimar",
start: moment("2000-05-31"),
},
{
title: "Day of Destiny Festival",
description:
"This day celebrates the day the emperor of Cheliax signed the charter for the founding of the city of Korvosa.",
city: "Korvosa",
start: moment("2000-06-03"),
},
{
title: "Liberty Day",
description: "Holiday celebrating Andoran's independence.",
city: "Andoran",
start: moment("2000-06-03"),
},
{
title: "Burning Blades",
description:
"The holy, month-long festival ends on this day, featuring dances with flaming blades.",
god: "Sarenrae",
start: moment("2000-06-10"),
},
{
title: "Days of Wrath (Summer Solstice)",
description:
"Contests and blood sports are held to honor and elevate those who are superior.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-06-15"),
},
{
title: "Ritual of Stardust (Summer Solstice)",
description:
"Festival held in the evening and through the night, where Desna's faithful sing songs and throw sand and powdered gems into bonfires.",
god: "Desna",
start: moment("2000-06-15"),
},
{
title: "Sunwrought Festival (Summer Solstice)",
description:
"Day commemorating the defeat of Rovagug by Sarenrae, celebrated with the flying of kites, fireworks, and gift giving.",
god: "Sarenrae",
start: moment("2000-06-15"),
},
{
title: "Talon Tag",
description:
"The Eagle Knights perform aerial displays in Almas on this day.",
city: "Andoran",
start: moment("2000-06-21"),
},
{
title: "Riverwind Festival",
description:
"An early summer holiday that honors a cooling shift in the winds, celebrated with much drinking.",
city: "Korvosa",
start: moment("2000-06-22"),
},
{
title: "Goblin Flea Market",
description:
"A market day that focuses on unusual crafts and offers games to children who dress up for the occasion.",
city: "Andoran",
start: moment("2000-06-26"),
},
{
title: "Archerfeast",
description:
"Holy day celebrated with archery contests, bartering for livestock, and the courting of women.",
god: "Erastil",
start: moment("2000-07-03"),
},
{
title: "Founding Festival",
description:
"An all-night party filled with fireworks and alcohol commemorating the founding of the city in 4407 AR.",
city: "Korvosa",
start: moment("2000-07-14"),
},
{
title: "Kianidi Festival",
description:
"Celebration where tribal ties are honored and stories of travels are shared.",
race: "Garundi",
start: moment("2000-07-15"),
start: moment("2000-07-21"),
},
{
title: "Burning Night",
description:
"Items or people who have transgressed against the god-king of Razmiran are burned on this day.",
city: "Razmiran",
start: moment("2000-07-17"),
},
{
title: "Goblin Flea Market",
description:
"A market day that focuses on unusual crafts and offers games to children who dress up for the occasion.",
city: "Andoran",
start: moment("2000-07-31"),
},
{
title: "Inheritor's Ascendance",
description:
"Originally called 'Herald's Day', honours the day that Iomedae was chosen by the god Aroden to become his herald (thus replacing Arazni), boosting her power beyond that of a fledgling goddess. This holiday was renamed after the demise of Aroden.",
god: "Iomedae",
start: moment("2000-08-01"),
},
{
title: "First Crusader Day",
description:
"Holiday in celebration of the continuing crusade against the demons of the Worldwound.",
city: "Mendev",
start: moment("2000-08-06"),
},
{
title: "Day of Silenced Whispers",
description:
"Holiday celebrating the defeat of the Whispering Tyrant and the freeing of Ustalav.",
city: "Ustalav",
start: moment("2000-08-09"),
},
{
title: "Founding Day",
description:
"Festival celebrating the founding by Ilsur of the town of Ilsurian in 4631 AR.",
city: "Ilsurian",
start: moment("2000-08-10"),
},
{
title: "Armasse",
description:
"Holy day where commoners are trained to fight and historical tales are told with the hope that someone will learn from them.",
god: "Aroden, Iomedae",
start: moment("2000-08-16"),
},
{
title: "Silverglazer Sunday",
description:
"Two-part fishing festival celebrated with swimming contests and enormous puppets.",
city: "Andoran",
start: moment("2000-08-28"),
},
{
title: "Saint Alika's Birthday",
description:
"Quiet holiday honoring the birth of Saint Alika the Martyr.",
city: "Korvosa",
start: moment("2000-08-31"),
},
{
title: "First Brewing",
description:
"The date of this religious holiday changes from year to year, but usually occurs about a month after the harvest of crops used for alcoholic beverages. Cayden's priests use this holiday to bless the harvest and reflect on the hard work of the Accidental God's devotees.",
god: "Cayden Cailean",
start: moment("2000-09-01"),
},
{
title: "Market's Door",
description:
"Held on a different day every year in early autumn, during the Market's Door festival, Abadaran priests bless the markets where the first of the fall harvest is being sold.",
god: "Abadar",
start: moment("2000-09-01"),
},
{
title: "Silverglazer Sunday",
description: "Second part of a two-part festival.",
city: "Andoran",
start: moment("2000-09-04"),
},
{
title: "Crabfest",
description:
"Fall is crab season on Conqueror's Bay, and this feast day is filled with the eating of them.",
city: "Korvosa",
start: moment("2000-09-07"),
},
{
title: "Signing Day",
description:
"Festival marking the day these nations gained their independence from Taldor.",
city: "Andoran, Cheliax, Galt, Isger",
start: moment("2000-09-08"),
},
{
title: "Days of Wrath (Autumnal Equinox)",
description:
"Contests and blood sports are held to honor and elevate those who are superior.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-09-15"),
},
{
title: "Swallowtail (Autumnal Equinox)",
description:
"Holiday celebrated with storytelling, feasting, and the release of butterflies.",
god: "Desna",
start: moment("2000-09-15"),
},
{
title: "Day of the Inheritor",
description:
"Holiday commemorating the church of Iomedae's adoption of the forlorn faithful of the dead god Aroden into their midst.",
god: "Iomedae",
start: moment("2000-09-19"),
},
{
title: "Feast of Szurpade",
description:
"This 'celebration of plenty' festival mocks the traditional harvest festivals celebrated in the region before Baba Yaga and her eternal winter descended upon the land.",
city: "Irrisen",
start: moment("2000-09-26"),
},
{
title: "Day of Sundering",
description:
"Once many holidays were celebrated by the faith of Ydersius, but today only this date has much significance.",
god: "Ydersius",
start: moment("2000-09-29"),
},
{
title: "Harvest Feast",
description:
"Harvest celebration marking the end of many agricultural activities with the coming of winter.",
start: moment("2000-10-03"),
},
{
title: "Ascendance Day",
description:
"Holiday marking the ascension of the goddess Iomedae after taking the Test of the Starstone.",
god: "Iomedae",
start: moment("2000-10-06"),
},
{
title: "Admani Upastuti (Full Moon)",
description: "Holiday marking the founding of Jalmeray.",
city: "Jalmeray",
start: moment("2000-10-18"),
},
{
title: "Bastion Day",
description:
"A festival honoring the founding of the town of Solku.",
city: "Solku",
start: moment("2000-10-19"),
end: moment("2000-10-20"),
},
{
title: "Jestercap",
description:
"Holiday marked by the playing of many practical jokes; particularly popular among gnomes.",
city: "Andoran, Druma, Taldor",
start: moment("2000-10-27"),
},
{
title: "Allbirth",
god: "Lamashtu",
start: moment("2000-10-30"),
},
{
title: "Festival of the Witch",
description:
"Festival celebrating witchcraft and the central part it plays in Irriseni culture.",
city: "Irrisen",
start: moment("2000-10-30"),
},
{
title: "Independence Day",
description: "Marks the beginning of the Red Revolution.",
city: "Galt",
start: moment("2000-11-05"),
},
{
title: "Abjurant Day",
description:
"Day of communal strengthening of defenses and the teaching of magic to children.",
god: "Nethys",
start: moment("2000-11-08"),
},
{
title: "Great Fire Remembrance",
description:
"Holiday commemorates the dead of the Great Fire of 4429 AR.",
city: "Korvosa",
start: moment("2000-11-13"),
},
{
title: "Even-Tongued Day",
description:
"Day that celebrates when Andoran, Galt, and Isger were put under Chelish control.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-11-14"),
},
{
title: "Evoking Day",
description:
"Holiday marked by displays of fireworks and magical duels (both mock and real).",
god: "Nethys",
start: moment("2000-11-18"),
},
{
title: "Seven Veils",
description:
"Celebration of the unity of all races, commemorated by multi-species masquerade balls.",
start: moment("2000-11-23"),
},
{
title: "Baptism of Ice",
description:
"A fertility festival where the children born in the previous year are paraded through the towns.",
city: "Irrisen",
start: moment("2000-11-24"),
end: moment("2000-11-30"),
},
{
title: "Transmutatum",
description: "Festival promoting self-improvement.",
god: "Nethys",
start: moment("2000-11-28"),
},
{
title: "Pseudodragon Festival",
description:
"Holiday marking the return of the wild pseudodragons to Conqueror's Bay.",
city: "Korvosa",
start: moment("2000-12-07"),
},
{
title: "Winter Week",
description:
"Traditional feast; time for courting and spending time with friends.",
start: moment("2000-12-08"),
end: moment("2000-11-14"),
},
{
title: "Ascension Day",
description:
"Holiday celebrating Cayden's divine ascension after taking the Test of the Starstone.",
god: "Cayden Cailean",
start: moment("2000-12-11"),
},
{
title: "Crystalhue (Winter Solstice)",
description:
"Holiday marked by the creation of artistic works, and the start of romantic courtships.",
god: "Shelyn",
start: moment("2000-12-15"),
},
{
title: "Days of Wrath (Winter Solstice)",
description:
"Contests and blood sports are held to honor and elevate those who are superior.",
city: "Cheliax",
god: "Asmodeus",
start: moment("2000-12-15"),
},
{
title: "Ritual of Stardust (Winter Solstice)",
description:
"Bi-annual festival held on the solstices, where the faithful of Desna sing songs through the night around bonfires.",
god: "Desna",
start: moment("2000-12-15"),
},
{
title: "Night of the Pale",
description:
"Night of morbid revelry, as people wait indoors for the ghosts of last year's dead to pass by their homes.",
start: moment("2000-12-31"),
},
{
title: "The Final Day",
description:
"Cultists of Groetus perform an hour's silence at dusk on the last day of the year seeking guidance from their god about the End Time.",
god: "Groetus",
start: moment("2000-12-31"),
},
];
var campaign = null;
var showHolidays = false;
var showSecret = false;
var recurringEvents = [];
function generateRecurringEvents() {
recurringEvents = [];
pathfinderHolidays.forEach((event) => {
for (var i = 0; i < 100; i++) {
var year =
i < 50
? campaignEvents[campaign].currentDate.year() -
Math.abs(i - 50)
: campaignEvents[campaign].currentDate.year() +
Math.abs(i - 50);
var leapYear = year % 4 == 0;
var leapDay =
event.start.month() === 1 && event.start.date() === 29;
if (!leapDay || (leapDay && leapYear)) {
recurringEvents.push({
title: event.title,
description: event.description,
city: event.city,
god: event.god,
start: moment(event.start)
.year(year)
.month(event.start.month())
.date(event.start.date())
.format("YYYY-MM-DD"),
end:
event.end &&
moment(event.end)
.year(year)
.month(event.end.month())
.date(event.end.date())
.format("YYYY-MM-DD"),
type: "holiday",
});
}
}
});
}
function renderCalendar() {
generateRecurringEvents();
var calendar = $("#calendar").fullCalendar({
// calendar things
aspectRatio: 1.5,
defaultView: "listYear",
header: {
left: "prev,next today",
center: "title",
right: "month,listYear toggleHolidays, toggleCampaign",
},
customButtons: {
toggleHolidays: {
text: "Holidays",
click: function () {
showHolidays = !showHolidays;
calendar.fullCalendar("rerenderEvents");
},
},
},
buttonText: {
prev: "<",
next: ">",
today: "Today",
month: "Month",
year: "Year",
},
eventTextColor: "#444444",
// campaign things
monthNames: [
"Abadius (1)",
"Calistril (2)",
"Pharast (3)",
"Gozran (4)",
"Desnus (5)",
"Sarenith (6)",
"Erastus (7)",
"Arodus (8)",
"Rova (9)",
"Lamashan (10)",
"Neth (11)",
"Kuthona (12)",
],
dayNames: [
"Sunday",
"Moonday",
"Toilday",
"Wealday",
"Oathday",
"Fireday",
"Starday",
],
dayNamesShort: [
"Sunday",
"Moonday",
"Toilday",
"Wealday",
"Oathday",
"Fireday",
"Starday",
],
// event things
now: campaignEvents[campaign].currentDate,
events: recurringEvents
.concat(campaignEvents[campaign].events)
.concat([
{
title: "Current Day",
start: campaignEvents[campaign].currentDate.format(
"YYYY-MM-DD"
),
},
]),
eventRender: function (event, element, view) {
if (!showHolidays && event.type === "holiday") {
return false;
}
if (
!showSecret &&
event.type === "secret" &&
event.start.isAfter(campaignEvents[campaign].currentDate)
) {
return false;
}
if (view.type === "listYear" && event.type === "session") {
return false;
}
var additionalInfo = [];
if (event.description) {
additionalInfo.push(event.description);
}
if (event.city) {
additionalInfo.push("<b>City:</b> " + event.city);
}
if (event.god) {
additionalInfo.push("<b>God:</b> " + event.god);
}
if (event.race) {
additionalInfo.push("<b>Race:</b> " + event.race);
}
if (additionalInfo.length) {
element
.find(".fc-list-item-title")
.append("<br/>" + additionalInfo.join("<br/>"));
element
.addClass("event-tooltip")
.append(
'<span class="tooltip">' +