-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcards.js
3248 lines (2930 loc) · 116 KB
/
cards.js
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
/* cardsInterface
* - Given a Blackboard page with a list of items
* - Find all the items using the expected card data format
* - Insert into the first item on the page a cards interface
* data format
* - Card's indicating by "Card Image: URL" in the description, though the URL can be empty
* - Card title - heading of Blackboard item
* - Card Label - Specify the label to apply to the card (default Module)
* - Module number - just the order in which they appear in the list
* - picture - heading includes Card Image:**url** OR inserted image with title attribute = 'Card Image'
* - description - the rest of the description
* - DATE
* - Card Date: Mar 5
* Specify the date to be displayed
* - Card Date Label: Due
* Specify the label for the date - default Commencing
*/
var PARAMS = {}
var TOOLTIPSTER_ADDED = false;
var DOWNLOAD_LABEL = "Download File"
/* Griffith Calendar Term dates
* 2022
* - GU T1, T2, T3 3221 3225, 3228
* - OUA 2221 2223 2225 2227
* - QCM GU + QCM
*
* 2021
* - OUA Study Periods 1-4
* 2211, 2213 2215 2217
* - GU T1, T2, T3
* 3211 3215 3218
* - QCM T1 T2
* 3211QCM 3215QCM
* 2020
* - OUA Study Periods 1-4
* 2201 2203 2205 2207
* - GU T1, T2, T3
* 3201 3205 3208
* 2019
* - OUA SP 3, 4
* 2195 2197
* - GU T1, T2, T3
* 3191 3195 319
*/
var TERM_DATES = {
// From 2022 OUA study periods match GU trimesters
// These added by assignment below
3221: {
0: { start: "2022-03-07", stop: "2022-03-13" },
1: { start: "2022-03-14", stop: "2022-03-20" },
2: { start: "2022-03-21", stop: "2022-03-28" },
3: { start: "2022-03-28", stop: "2022-04-03" },
4: { start: "2022-04-04", stop: "2022-04-10" },
5: { start: "2022-04-18", stop: "2022-04-24" },
6: { start: "2022-04-25", stop: "2022-05-01" },
7: { start: "2022-05-02", stop: "2022-05-08" },
8: { start: "2022-05-09", stop: "2022-05-15" },
9: { start: "2022-05-16", stop: "2022-05-22" },
10: { start: "2022-05-23", stop: "2022-05-29" },
11: { start: "2022-05-30", stop: "2022-06-05" },
12: { start: "2022-06-06", stop: "2022-06-12" },
13: { start: "2022-06-13", stop: "2022-06-19" },
14: { start: "2022-06-20", stop: "2022-06-26" },
15: { start: "2022-06-27", stop: "2022-07-03" },
exam: { start: "2022-06-13", stop: "2022-06-25" },
},
'3221QCM': {
0: { start: "2022-02-21", stop: "2022-02-27" },
1: { start: "2022-02-28", stop: "2022-03-06" },
2: { start: "2022-03-07", stop: "2022-03-13" },
3: { start: "2022-03-14", stop: "2022-03-20" },
4: { start: "2022-03-21", stop: "2022-03-27" },
5: { start: "2022-03-28", stop: "2022-04-03" },
6: { start: "2022-04-04", stop: "2022-04-10" },
7: { start: "2022-04-18", stop: "2022-04-24" },
8: { start: "2022-04-25", stop: "2022-05-01" },
9: { start: "2022-05-09", stop: "2022-05-15" },
10: { start: "2022-05-16", stop: "2022-05-22" },
11: { start: "2022-05-23", stop: "2022-05-29" },
12: { start: "2022-05-30", stop: "2022-06-05" },
13: { start: "2022-06-06", stop: "2022-06-12" },
14: { start: "2022-06-13", stop: "2022-06-19" },
15: { start: "2022-06-20", stop: "2022-07-26" },
exam: { start: "2022-06-13", stop: "2022-06-25" },
},
3225: {
0: { start: "2022-07-11", stop: "2022-07-17" },
1: { start: "2022-07-18", stop: "2022-07-24" },
2: { start: "2022-07-25", stop: "2022-07-31" },
3: { start: "2022-08-01", stop: "2022-08-07" },
4: { start: "2022-08-08", stop: "2022-08-14" },
5: { start: "2022-08-22", stop: "2022-08-28" },
6: { start: "2022-08-29", stop: "2022-09-04" },
7: { start: "2022-09-05", stop: "2022-09-11" },
8: { start: "2022-09-12", stop: "2022-09-18" },
9: { start: "2022-09-19", stop: "2022-09-25" },
10: { start: "2022-09-26", stop: "2022-10-02" },
11: { start: "2022-10-03", stop: "2022-10-09" },
12: { start: "2022-10-10", stop: "2022-10-16" },
13: { start: "2022-10-17", stop: "2022-10-23" },
14: { start: "2022-10-24", stop: "2022-10-30" },
15: { start: "2022-10-31", stop: "2022-11-06" },
exam: { start: "2022-10-20", stop: "2022-10-29" },
},
'3225QCM': {
0: { start: "2022-07-18", stop: "2022-07-24" },
1: { start: "2022-07-25", stop: "2022-07-31" },
2: { start: "2022-08-01", stop: "2022-08-07" },
3: { start: "2022-08-08", stop: "2022-08-14" },
4: { start: "2022-08-15", stop: "2022-08-21" },
5: { start: "2022-08-22", stop: "2022-08-28" },
6: { start: "2022-09-05", stop: "2022-09-11" },
7: { start: "2022-09-12", stop: "2022-09-18" },
8: { start: "2022-09-19", stop: "2022-09-25" },
9: { start: "2022-10-03", stop: "2022-10-09" },
10: { start: "2022-10-10", stop: "2022-10-16" },
11: { start: "2022-10-17", stop: "2022-10-23" },
12: { start: "2022-10-24", stop: "2022-10-30" },
13: { start: "2022-10-31", stop: "2022-11-06" },
14: { start: "2022-11-07", stop: "2022-11-13" },
15: { start: "2022-11-14", stop: "2022-07-20" },
exam: { start: "2022-11-07", stop: "2022-11-19" },
},
3228: {
0: { start: "2022-10-31", stop: "2022-11-06" },
1: { start: "2022-11-07", stop: "2022-11-13" },
2: { start: "2022-11-14", stop: "2022-11-20" },
3: { start: "2022-11-21", stop: "2022-11-27" },
4: { start: "2022-11-28", stop: "2022-12-04" },
5: { start: "2022-12-05", stop: "2022-12-11" },
6: { start: "2022-12-12", stop: "2022-12-18" },
7: { start: "2022-12-19", stop: "2022-12-25" },
8: { start: "2023-01-09", stop: "2023-01-15" },
9: { start: "2023-01-16", stop: "2023-01-22" },
10: { start: "2023-01-23", stop: "2023-01-29" },
11: { start: "2023-01-30", stop: "2023-02-05" },
12: { start: "2023-02-06", stop: "2023-02-12" },
13: { start: "2023-02-13", stop: "2023-02-19" },
14: { start: "2023-02-20", stop: "2023-02-26" },
15: { start: "2023-02-27", stop: "2023-03-05" },
// exam: { start: "2023-02-17", stop: "2023-02-26" },
},
2211: {
0: { start: "2021-02-22", stop: "2021-02-28" },
1: { start: "2021-03-01", stop: "2021-03-07" },
2: { start: "2021-03-08", stop: "2021-03-14" },
3: { start: "2021-03-15", stop: "2021-03-21" },
4: { start: "2021-03-22", stop: "2021-03-28" },
5: { start: "2021-03-29", stop: "2021-04-04" },
6: { start: "2021-04-05", stop: "2021-04-11" },
7: { start: "2021-04-12", stop: "2021-04-18" },
8: { start: "2021-04-19", stop: "2021-04-25" },
9: { start: "2021-04-26", stop: "2021-05-02" },
10: { start: "2021-05-03", stop: "2021-05-09" },
11: { start: "2021-05-10", stop: "2021-05-16" },
12: { start: "2021-05-17", stop: "2021-05-23" },
13: { start: "2021-05-24", stop: "2021-05-30" },
14: { start: "2021-05-31", stop: "2021-06-06" },
exam: { start: "2021-05-31", stop: "2021-06-06" },
},
2213: {
1: { start: "2021-05-31", stop: "2021-06-06" },
2: { start: "2021-06-07", stop: "2021-06-13" },
3: { start: "2021-06-14", stop: "2021-06-20" },
4: { start: "2021-06-21", stop: "2021-06-27" },
5: { start: "2021-06-28", stop: "2021-07-04" },
6: { start: "2021-07-05", stop: "2021-07-11" },
7: { start: "2021-07-12", stop: "2021-07-18" },
8: { start: "2021-07-19", stop: "2021-07-25" },
9: { start: "2021-07-26", stop: "2021-08-01" },
10: { start: "2021-08-02", stop: "2021-08-08" },
11: { start: "2021-08-09", stop: "2021-08-15" },
12: { start: "2021-08-16", stop: "2021-08-22" },
13: { start: "2021-08-23", stop: "2021-08-29" },
exam: { start: "2021-08-30", stop: "2021-09-05" },
},
2215: {
0: { start: "2021-08-23", stop: "2021-08-29" },
1: { start: "2021-08-30", stop: "2021-09-05" },
2: { start: "2021-09-06", stop: "2021-09-12" },
3: { start: "2021-09-13", stop: "2021-09-19" },
4: { start: "2021-09-20", stop: "2021-09-26" },
5: { start: "2021-09-27", stop: "2021-10-03" },
6: { start: "2021-10-04", stop: "2021-10-10" },
7: { start: "2021-10-11", stop: "2021-10-17" },
8: { start: "2021-10-18", stop: "2021-10-24" },
9: { start: "2021-10-25", stop: "2021-10-31" },
10: { start: "2021-11-01", stop: "2021-11-07" },
11: { start: "2021-11-08", stop: "2021-11-14" },
12: { start: "2021-11-15", stop: "2021-11-21" },
13: { start: "2021-11-22", stop: "2021-11-28" },
14: { start: "2021-11-29", stop: "2021-12-05" },
exam: { start: "2021-11-29", stop: "2021-12-05" },
},
2217: {
0: { start: "2021-11-22", stop: "2021-11-28" },
1: { start: "2021-11-29", stop: "2021-12-05" },
2: { start: "2021-12-06", stop: "2021-12-12" },
3: { start: "2021-12-13", stop: "2021-12-19" },
4: { start: "2021-12-20", stop: "2021-12-26" },
5: { start: "2021-12-27", stop: "2022-01-02" },
6: { start: "2022-01-03", stop: "2022-01-09" },
7: { start: "2022-01-10", stop: "2022-01-16" },
8: { start: "2022-01-17", stop: "2022-01-23" },
9: { start: "2022-01-24", stop: "2022-01-30" },
10: { start: "2022-01-31", stop: "2022-02-06" },
11: { start: "2022-02-07", stop: "2022-02-13" },
12: { start: "2022-02-14", stop: "2022-02-20" },
13: { start: "2022-02-21", stop: "2022-02-27" },
exam: { start: "2022-02-28", stop: "2022-03-04" },
},
3218: {
0: { start: "2021-11-01", stop: "2021-11-07" },
1: { start: "2021-11-08", stop: "2021-11-14" },
2: { start: "2021-11-15", stop: "2021-11-21" },
3: { start: "2021-11-22", stop: "2021-11-28" },
4: { start: "2021-11-29", stop: "2021-12-05" },
5: { start: "2021-12-06", stop: "2021-12-12" },
6: { start: "2021-12-13", stop: "2021-12-19" },
7: { start: "2021-12-20", stop: "2021-12-26" },
8: { start: "2022-01-10", stop: "2022-01-16" },
9: { start: "2022-01-17", stop: "2022-01-23" },
10: { start: "2022-01-24", stop: "2022-01-30" },
11: { start: "2022-01-31", stop: "2022-02-06" },
12: { start: "2022-02-07", stop: "2022-02-13" },
13: { start: "2022-02-14", stop: "2022-02-20" },
14: { start: "2022-02-21", stop: "2022-02-27" },
15: { start: "2022-02-28", stop: "2022-03-06" },
exam: { start: "2022-02-17", stop: "2022-02-26" },
},
3215: {
0: { start: "2021-07-12", stop: "2021-07-18" },
1: { start: "2021-07-19", stop: "2021-07-25" },
2: { start: "2021-07-26", stop: "2021-08-01" },
3: { start: "2021-08-02", stop: "2021-08-08" },
4: { start: "2021-08-16", stop: "2021-08-22" },
5: { start: "2021-08-23", stop: "2021-08-29" },
6: { start: "2021-08-30", stop: "2021-09-05" },
7: { start: "2021-09-06", stop: "2021-09-12" },
8: { start: "2021-09-13", stop: "2021-09-19" },
9: { start: "2021-09-20", stop: "2021-09-26" },
10: { start: "2021-09-27", stop: "2021-10-03" },
11: { start: "2021-10-04", stop: "2021-10-10" },
12: { start: "2021-10-11", stop: "2021-10-17" },
13: { start: "2021-10-18", stop: "2021-10-24" },
14: { start: "2021-10-25", stop: "2021-10-31" },
15: { start: "2021-11-01", stop: "2021-11-07" },
exam: { start: "2021-10-21", stop: "2021-10-31" },
},
3211: {
0: { start: "2021-03-01", stop: "2021-03-07" },
1: { start: "2021-03-08", stop: "2021-03-14" },
2: { start: "2021-03-15", stop: "2021-03-21" },
3: { start: "2021-03-22", stop: "2021-03-28" },
4: { start: "2021-03-29", stop: "2021-04-04" },
5: { start: "2021-04-12", stop: "2021-04-18" },
6: { start: "2021-04-19", stop: "2021-04-25" },
7: { start: "2021-04-26", stop: "2021-05-02" },
8: { start: "2021-05-03", stop: "2021-05-09" },
9: { start: "2021-05-10", stop: "2021-05-16" },
10: { start: "2021-05-17", stop: "2021-05-23" },
11: { start: "2021-05-24", stop: "2021-05-30" },
12: { start: "2021-05-31", stop: "2021-06-06" },
13: { start: "2021-06-07", stop: "2021-06-13" },
14: { start: "2021-06-14", stop: "2021-06-20" },
15: { start: "2021-06-21", stop: "2021-06-27" },
exam: { start: "2021-06-10", stop: "2021-06-19" },
},
"3215QCM": {
0: { start: "2021-07-12", stop: "2021-07-18" },
1: { start: "2021-07-19", stop: "2021-07-25" },
2: { start: "2021-07-26", stop: "2021-08-01" },
3: { start: "2021-08-02", stop: "2021-08-08" },
4: { start: "2021-08-09", stop: "2021-08-15" },
5: { start: "2021-08-16", stop: "2021-08-22" },
6: { start: "2021-08-30", stop: "2021-09-05" },
7: { start: "2021-09-06", stop: "2021-09-12" },
8: { start: "2021-09-13", stop: "2021-09-19" },
9: { start: "2021-09-20", stop: "2021-09-26" },
10: { start: "2021-10-04", stop: "2021-10-10" },
11: { start: "2021-10-11", stop: "2021-10-17" },
12: { start: "2021-10-18", stop: "2021-10-24" },
13: { start: "2021-10-25", stop: "2021-10-31" },
14: { start: "2021-11-01", stop: "2021-11-07" },
15: { start: "2021-11-08", stop: "2021-11-14" },
exam: { start: "2021-10-30", stop: "2021-11-13" },
},
"3211QCM": {
0: { start: "2021-02-22", stop: "2021-02-28" },
1: { start: "2021-03-01", stop: "2021-03-07" },
2: { start: "2021-03-08", stop: "2021-03-14" },
3: { start: "2021-03-15", stop: "2021-03-21" },
4: { start: "2021-03-22", stop: "2021-03-29" },
5: { start: "2021-03-29", stop: "2021-04-04" },
6: { start: "2021-04-12", stop: "2021-04-18" },
7: { start: "2021-04-19", stop: "2021-04-25" },
8: { start: "2021-04-26", stop: "2021-05-02" },
9: { start: "2021-05-10", stop: "2021-05-16" },
10: { start: "2021-05-17", stop: "2021-05-23" },
11: { start: "2021-05-24", stop: "2021-05-30" },
12: { start: "2021-05-31", stop: "2021-06-06" },
13: { start: "2021-06-07", stop: "2021-03-13" },
14: { start: "2021-06-14", stop: "2021-03-20" },
15: { start: "2021-06-21", stop: "2021-03-26" },
exam: { start: "2021-06-12", stop: "2021-06-26" },
},
2201: {
0: { start: "2020-02-24", stop: "2020-03-01" },
1: { start: "2020-03-02", stop: "2020-03-08" },
2: { start: "2020-03-09", stop: "2020-03-15" },
3: { start: "2020-03-16", stCop: "2020-03-22" },
4: { start: "2020-03-23", stop: "2020-03-29" },
5: { start: "2020-03-30", stop: "2020-04-05" },
6: { start: "2020-04-06", stop: "2020-04-12" },
7: { start: "2020-04-13", stop: "2020-04-19" },
8: { start: "2020-04-20", stop: "2020-04-26" },
9: { start: "2020-04-27", stop: "2020-05-03" },
10: { start: "2020-05-04", stop: "2020-05-10" },
11: { start: "2020-05-11", stop: "2020-05-17" },
12: { start: "2020-05-18", stop: "2020-05-24" },
13: { start: "2020-05-25", stop: "2020-05-31" },
14: { start: "2020-06-01", stop: "2020-06-05" },
exam: { start: "2020-06-01", stop: "2020-06-05" },
},
2203: {
0: { start: "2020-05-25", stop: "2020-05-31" },
1: { start: "2020-06-01", stop: "2020-06-07" },
2: { start: "2020-06-08", stop: "2020-06-14" },
3: { start: "2020-06-15", stop: "2020-06-21" },
4: { start: "2020-06-22", stop: "2020-06-28" },
5: { start: "2020-06-29", stop: "2020-07-05" },
6: { start: "2020-07-06", stop: "2020-07-12" },
7: { start: "2020-07-13", stop: "2020-07-19" },
8: { start: "2020-07-20", stop: "2020-07-26" },
9: { start: "2020-07-27", stop: "2020-08-02" },
10: { start: "2020-08-03", stop: "2020-08-09" },
11: { start: "2020-08-10", stop: "2020-05-17" },
12: { start: "2020-08-17", stop: "2020-05-24" },
13: { start: "2020-08-24", stop: "2020-05-31" },
14: { start: "2020-08-31", stop: "2020-09-06" },
exam: { start: "2020-08-31", stop: "2020-09-04" },
},
2205: {
0: { start: "2020-08-24", stop: "2020-09-30" },
1: { start: "2020-08-31", stop: "2020-09-06" },
2: { start: "2020-09-07", stop: "2020-09-13" },
3: { start: "2020-09-14", stop: "2020-09-20" },
4: { start: "2020-09-21", stop: "2020-09-27" },
5: { start: "2020-09-28", stop: "2020-10-04" },
6: { start: "2020-10-05", stop: "2020-10-11" },
7: { start: "2020-10-12", stop: "2020-10-19" },
8: { start: "2020-10-19", stop: "2020-10-25" },
9: { start: "2020-10-26", stop: "2020-11-01" },
10: { start: "2020-11-02", stop: "2020-11-08" },
11: { start: "2020-11-09", stop: "2020-11-15" },
12: { start: "2020-11-16", stop: "2020-11-22" },
13: { start: "2020-11-23", stop: "2020-11-29" },
14: { start: "2020-11-30", stop: "2020-12-06" },
15: { start: "2020-12-07", stop: "2020-12-13" },
exam: { start: "2020-12-07", stop: "2020-12-13" },
},
2207: {
0: { start: "2020-11-23", stop: "2020-11-29" },
1: { start: "2020-11-30", stop: "2020-12-06" },
2: { start: "2020-12-07", stop: "2020-12-13" },
3: { start: "2020-12-14", stop: "2020-12-20" },
4: { start: "2020-12-21", stop: "2020-12-27" },
5: { start: "2020-12-28", stop: "2021-01-03" },
6: { start: "2021-01-04", stop: "2021-01-10" },
7: { start: "2021-01-11", stop: "2021-01-17" },
8: { start: "2021-01-18", stop: "2021-01-24" },
9: { start: "2021-01-25", stop: "2021-01-31" },
10: { start: "2021-02-01", stop: "2021-02-07" },
11: { start: "2021-02-08", stop: "2021-02-14" },
12: { start: "2021-02-15", stop: "2021-02-21" },
13: { start: "2021-02-22", stop: "2021-02-28" },
14: { start: "2021-03-01", stop: "2021-03-07" },
15: { start: "2021-03-08", stop: "2021-03-14" },
exam: { start: "2021-03-01", stop: "2021-03-07" },
},
3208: {
0: { start: "2020-10-26", stop: "2020-11-01" },
1: { start: "2020-11-02", stop: "2020-11-08" },
2: { start: "2020-11-09", stop: "2020-11-15" },
3: { start: "2020-11-16", stop: "2020-11-22" },
4: { start: "2020-11-23", stop: "2020-11-29" },
5: { start: "2020-11-30", stop: "2020-12-06" },
6: { start: "2020-12-07", stop: "2020-12-13" },
7: { start: "2020-12-14", stop: "2020-12-20" },
8: { start: "2021-01-04", stop: "2021-01-10" },
9: { start: "2021-01-11", stop: "2021-01-17" },
10: { start: "2021-01-18", stop: "2021-01-24" },
11: { start: "2021-01-25", stop: "2021-01-31" },
12: { start: "2021-02-01", stop: "2021-02-07" },
13: { start: "2021-02-08", stop: "2021-02-14" },
exam: { start: "2021-02-08", stop: "2021-02-20" },
},
3205: {
0: { start: "2020-07-06", stop: "2020-07-12" },
1: { start: "2020-07-13", stop: "2020-07-19" },
2: { start: "2020-07-20", stop: "2020-08-26" },
3: { start: "2020-07-27", stop: "2020-08-02" },
4: { start: "2020-08-03", stop: "2020-08-16" },
5: { start: "2020-08-17", stop: "2020-08-23" },
6: { start: "2020-08-24", stop: "2020-08-30" },
7: { start: "2020-08-31", stop: "2020-09-06" },
8: { start: "2020-09-07", stop: "2020-09-13" },
9: { start: "2020-09-14", stop: "2020-09-20" },
10: { start: "2020-09-21", stop: "2020-09-27" },
11: { start: "2020-09-28", stop: "2020-10-04" },
12: { start: "2020-10-05", stop: "2020-10-11" },
13: { start: "2020-10-12", stop: "2020-10-18" },
14: { start: "2020-10-19", stop: "2020-10-25" },
15: { start: "2020-10-27", stop: "2020-11-01" },
exam: { start: "2020-10-12", stop: "2020-10-18" },
},
3201: {
0: { start: "2020-02-17", stop: "2020-02-23" },
1: { start: "2020-02-24", stop: "2020-03-01" },
2: { start: "2020-03-02", stop: "2020-03-08" },
3: { start: "2020-03-09", stop: "2020-03-15" },
4: { start: "2020-03-16", stop: "2020-03-22" },
5: { start: "2020-03-23", stop: "2020-03-29" },
6: { start: "2020-03-30", stop: "2020-04-05" },
7: { start: "2020-04-13", stop: "2020-04-19" },
8: { start: "2020-04-20", stop: "2020-04-26" },
9: { start: "2020-04-27", stop: "2020-05-03" },
10: { start: "2020-05-04", stop: "2020-05-10" },
11: { start: "2020-05-11", stop: "2020-05-17" },
12: { start: "2020-05-18", stop: "2020-05-24" },
13: { start: "2020-05-25", stop: "2020-05-31" },
exam: { start: "2020-06-01", stop: "2020-06-07" },
},
3198: {
0: { start: "2019-10-21", stop: "2019-10-27" },
1: { start: "2019-10-28", stop: "2019-11-03" },
2: { start: "2019-11-04", stop: "2019-11-10" },
3: { start: "2019-11-11", stop: "2019-11-17" },
4: { start: "2019-11-18", stop: "2019-11-24" },
5: { start: "2019-11-25", stop: "2019-12-1" },
6: { start: "2019-12-02", stop: "2019-12-08" },
7: { start: "2019-12-09", stop: "2019-12-15" },
8: { start: "2019-12-16", stop: "2019-12-22" },
9: { start: "2020-01-06", stop: "2020-01-12" },
10: { start: "2020-01-13", stop: "2020-01-19" },
11: { start: "2020-01-20", stop: "2020-01-26" },
12: { start: "2020-01-27", stop: "2020-02-02" },
13: { start: "2020-02-03", stop: "2020-02-09" },
exam: { start: "2020-02-06", stop: "2020-02-15" },
},
2197: {
0: { start: "2019-11-18", stop: "2019-11-24" },
1: { start: "2019-11-25", stop: "2019-12-01" },
2: { start: "2019-12-02", stop: "2019-12-08" },
3: { start: "2019-12-09", stop: "2019-12-15" },
4: { start: "2019-12-16", stop: "2019-12-22" },
5: { start: "2019-12-23", stop: "2019-09-29" },
6: { start: "2019-12-30", stop: "2020-01-05" },
7: { start: "2020-01-06", stop: "2020-01-12" },
8: { start: "2020-01-13", stop: "2020-01-19" },
9: { start: "2020-01-20", stop: "2020-01-26" },
10: { start: "2020-01-27", stop: "2020-02-02" },
11: { start: "2020-02-03", stop: "2020-02-09" },
12: { start: "2020-02-10", stop: "2020-02-16" },
13: { start: "2019-02-17", stop: "2020-02-23" },
14: { start: "2020-02-24", stop: "2020-03-01" },
15: { start: "2020-03-02", stop: "2020-03-08" },
},
2195: {
0: { start: "2019-08-19", stop: "2019-09-25" },
1: { start: "2019-08-26", stop: "2019-09-01" },
2: { start: "2019-09-02", stop: "2019-09-18" },
3: { start: "2019-09-09", stop: "2019-09-15" },
4: { start: "2019-09-16", stop: "2019-09-22" },
5: { start: "2019-09-23", stop: "2019-09-29" },
6: { start: "2019-09-30", stop: "2019-10-06" },
7: { start: "2019-10-07", stop: "2019-10-13" },
8: { start: "2019-10-14", stop: "2019-08-20" },
9: { start: "2019-10-21", stop: "2019-10-27" },
10: { start: "2019-10-28", stop: "2019-11-03" },
11: { start: "2019-11-04", stop: "2019-11-10" },
12: { start: "2019-11-11", stop: "2019-11-17" },
13: { start: "2019-11-18", stop: "2019-11-24" },
14: { start: "2019-11-25", stop: "2019-12-01" },
15: { start: "2019-10-07", stop: "2019-10-13" },
},
3195: {
0: { start: "2019-07-01", stop: "2019-07-07" },
1: { start: "2019-07-08", stop: "2019-07-14" },
2: { start: "2019-07-15", stop: "2019-07-21" },
3: { start: "2019-07-22", stop: "2019-07-28" },
4: { start: "2019-07-29", stop: "2019-08-04" },
5: { start: "2019-08-05", stop: "2019-08-11" },
6: { start: "2019-08-19", stop: "2019-08-25" },
7: { start: "2019-08-26", stop: "2019-09-01" },
8: { start: "2019-09-02", stop: "2019-09-08" },
9: { start: "2019-09-09", stop: "2019-09-15" },
10: { start: "2019-09-16", stop: "2019-09-22" },
11: { start: "2019-09-23", stop: "2019-09-29" },
12: { start: "2019-09-30", stop: "2019-10-06" },
13: { start: "2019-10-07", stop: "2019-10-13" },
14: { start: "2019-10-14", stop: "2019-10-20" },
15: { start: "2019-10-21", stop: "2019-10-27" },
exam: { start: "2019-10-10", stop: "2019-10-19" },
},
3191: {
0: { start: "2019-02-18", stop: "2019-02-24" },
1: { start: "2019-02-25", stop: "2019-03-03" },
2: { start: "2019-03-04", stop: "2019-03-10" },
3: { start: "2019-03-11", stop: "2019-03-17" },
4: { start: "2019-03-18", stop: "2019-03-24" },
5: { start: "2019-03-25", stop: "2019-03-31" },
6: { start: "2019-04-01", stop: "2019-04-07" },
7: { start: "2019-04-08", stop: "2019-04-14" },
8: { start: "2019-04-22", stop: "2019-04-28" },
9: { start: "2019-04-29", stop: "2019-05-05" },
10: { start: "2019-05-06", stop: "2019-05-12" },
11: { start: "2019-05-13", stop: "2019-05-19" },
12: { start: "2019-05-20", stop: "2019-05-26" },
13: { start: "2019-05-27", stop: "2019-06-02" },
14: { start: "2019-06-03", stop: "2019-06-09" },
15: { start: "2019-06-10", stop: "2019-06-17" },
exam: { start: "2019-05-30", stop: "2019-06-08" },
},
};
TERM_DATES[2222] = TERM_DATES[3221];
TERM_DATES[2224] = TERM_DATES[3225];
TERM_DATES[2226] = TERM_DATES[3228];
// TERM/YEAR specify default period
// SET_DATE is used for testing activePic, specify a date strong for now
var TERM = "3215",
DEFAULT_YEAR = 2021,
SET_DATE = "";
var MONTHS = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec",
];
const MONTHS_HASH = {
Jan: 0,
January: 0,
Feb: 1,
February: 1,
Mar: 2,
March: 2,
Apr: 3,
April: 3,
May: 4,
Jun: 5,
June: 5,
Jul: 6,
July: 6,
Aug: 7,
August: 7,
Sep: 8,
September: 8,
Oct: 9,
October: 9,
Nov: 10,
November: 10,
Dec: 11,
December: 11,
};
// kludge to parse card image when Blackboard inserts one of its icons
const BBIMG = "/images/ci/icons/cmlink_generic.gif";
// Interface design from https://codepen.io/njs/pen/BVdwZB
// TEMPLATES - by 6
// define the template types
const NUM_TEMPLATES = 6,
HORIZONTAL = 0, // original 3 cards per row
VERTICAL = 1, // 1 card per row
HORIZONTAL_NOENGAGE = 2, // original, but no engage
PEOPLE = 5,
ASSESSMENT = 6; // horizontal but show off people (BCI) version
// Whether the images will be hidden
var HIDE_IMAGES = false;
// Whether or not xAPI logging is turned on
// - turned on by adding "logging" to Card Interface
var LOGGING = false;
// Define the wrapper around the card interface
var interfaceHtmlTemplate = Array(NUM_TEMPLATES);
// Kludge - hard code CSS path to enable shifting from
// dev to live
//var CARDS_CSS="https://djon.es/gu/cards.css";
var CARDS_CSS = "https://s3.amazonaws.com/filebucketdave/banner.js/cards.css";
interfaceHtmlTemplate[HORIZONTAL] = `
<link rel="stylesheet" href="{CARDS_CSS}" />
<div id="guCardInterface" class="flex flex-wrap -m-3">
{CARDS}
</div>
`;
interfaceHtmlTemplate[HORIZONTAL] = interfaceHtmlTemplate[HORIZONTAL].replace(
"{CARDS_CSS}",
CARDS_CSS
);
interfaceHtmlTemplate[VERTICAL] = `
<link rel="stylesheet" href="{CARDS_CSS}" />
{CARDS}
</div>
`;
interfaceHtmlTemplate[VERTICAL] = interfaceHtmlTemplate[VERTICAL].replace(
"{CARDS_CSS}",
CARDS_CSS
);
interfaceHtmlTemplate[HORIZONTAL_NOENGAGE] = interfaceHtmlTemplate[HORIZONTAL];
interfaceHtmlTemplate[PEOPLE] = interfaceHtmlTemplate[HORIZONTAL];
interfaceHtmlTemplate[ASSESSMENT] = interfaceHtmlTemplate[HORIZONTAL];
// template for each individual card
var cardHtmlTemplate = Array(NUM_TEMPLATES);
// the extract string for the hovers is used in a replace
// Don't change it (Kludegy)
cardHtmlTemplate[HORIZONTAL] = `
<div class="clickablecard w-full sm:w-1/2 {WIDTH} flex flex-col p-3">
<div class="hover:outline-none hover:shadow-outline bg-white rounded-lg shadow-lg overflow-hidden flex-1 flex flex-col relative"> <!-- Relative could go -->
<a href="{LINK}" class="cardmainlink"></a>
<div class="{BG_SIZE} h-48" style="background-image: url('{PIC_URL}'); background-color: rgb(255,255,255)">{IFRAME}
</div>
{COMING_SOON}
<div class="carddescription p-4 flex-1 flex flex-col">
<span class="cardLabel">
{LABEL} {MODULE_NUM}
</span>
<h3 class="mb-4 text-2xl">{TITLE}</h3>
<div class="mb-4 flex-1">
{DESCRIPTION}
</div>
{LINK_ITEM}
{REVIEW_ITEM}
{EDIT_ITEM}
{DATE}
</div>
</div>
</div>
`;
cardHtmlTemplate[VERTICAL] = `
<a href="{LINK}">
<div class="lg:flex xl:flex md:flex mb-4 rounded-lg shadow-lg hover:shadow-outline">
<div class="lg:w-1/4 md:w-1/4 sm:w-full h-auto lg:flex-none bg-cover bg-center rounded-t lg:rounded-t-none lg:rounded-l text-center overflow-hidden" style="background-image: url('{PIC_URL}')">
<img src="{PIC_URL}" style="opacity:0;width:50%" />
{IFRAME}
</div>
<div class="p-2 m-2 lg:flex md:w-1/5 lg:w-1/5 sm:w-full">
<h3>{TITLE}</h3>
</div>
{COMING_SOON}
<div class="carddescription m-2 p-2 lg:flex-initial md:w-1/2 lg:w-1/2 sm:w-full">
<p class="text-grey-darker text-base">
{DESCRIPTION}
</p>
{LINK_ITEM}
{EDIT_ITEM}
</div>
</div>
</a>
`;
cardHtmlTemplate[HORIZONTAL_NOENGAGE] = `
<div class="clickablecard w-full sm:w-1/2 {WIDTH} flex flex-col p-3">
<div class="hover:outline-none hover:shadow-outline bg-white rounded-lg shadow-lg overflow-hidden flex-1 flex flex-col relative"> <!-- Relative could go -->
<a href="{LINK}" class="cardmainlink"></a>
<div class="{BG_SIZE} h-48" style="background-image: url('{PIC_URL}');">
{IFRAME}
</div>
{COMING_SOON}
<div class="p-4 flex-1 flex flex-col">
<span class="cardLabel">
{LABEL} {MODULE_NUM}
</span>
<h3 class="mb-4 text-2xl">{TITLE}</h3>
<div class="carddescription mb-4 flex-1">
{DESCRIPTION}
</div>
{DATE}
{LINK_ITEM}
{REVIEW_ITEM}
{EDIT_ITEM}
</div>
</div>
</div>
`;
// TODO - this might not be a better fit as something not a template?
cardHtmlTemplate[PEOPLE] = `
<!-- <style>
.codegena{position:relative;width:100%;height:0;padding-bottom:56.27198%;
.codegena iframe{position:absolute;top:0;left:0;width:100%;height:100%;}
</style>-->
<div class="clickablecard w-full sm:w-1/2 md:w-1/2 flex flex-col p-3">
<div class="hover:outline-none hover:shadow-outline bg-white rounded-lg shadow-lg overflow-hidden flex-1 flex flex-col relative"> <!-- Relative could go -->
<a href="{LINK}" class="cardmainlink"></a>
<div class="w-full"><iframe src='https://player.vimeo.com/video/226525600?&title=0&byline=0'></iframe></div></a>
<div class="p-4 flex-1 flex flex-col">
<a href="{LINK}">
<span class="cardLabel">
{LABEL} {MODULE_NUM}
</span>
<h3 class="mb-4 text-2xl">{TITLE}</h3>
<div class="carddescription mb-4 flex-1">
{DESCRIPTION}
</div>
</a>
{LINK_ITEM}
{EDIT_ITEM}
{DATE}
</div>
</div>
</div>
`;
// Implement the assessment template
cardHtmlTemplate[ASSESSMENT] = `
<div class="clickablecard lg:max-w-full w-full lg:flex xl:flex md:flex mb-6 rounded-lg shadow-lg hover:shadow-outline">
<!-- padding kludge -->
<!-- <div> </div> -->
<div class="h-auto">
<a href="{LINK}" class="cardmainlink"></a>
<h1 class="mt-2 ml-2 font-extrabold rounded-full h-16 w-16 flex items-center justify-center border-2 border-black bg-red text-white ">{MODULE_NUM}</h1>
<p class="text-xs p-2 pr-6">Weight: <span class="font-bold">{WEIGHTING}</p>
<!-- date -->
{DATE}
</div>
<div class="m-2"> </div>
{COMING_SOON}
<div class="carddescription m-2">
<div class="mb-4">
<h3 class="font-bold">{TITLE}</h3>
<p class="text-sm">{ASSESSMENT_TYPE}</p>
<p class="text-sm">Learning outcomes: {LEARNING_OUTCOMES}</p>
</div>
{DESCRIPTION}
{LINK_ITEM}
{EDIT_ITEM}
</div>
</div>
`;
// template to add the "ENGAGE" link to (more strongly) indicate that the card links somewhere
var linkItemHtmlTemplate = Array(NUM_TEMPLATES);
linkItemHtmlTemplate[HORIZONTAL] = `
<p> <br /> </p>
<div class="p-4 absolute pin-r pin-b">
<a href="{LINK}" class="gu-engage"><div class="hover:bg-blue text-blue-dark font-semibold hover:text-white py-2 px-4 border border-blue hover:border-transparent rounded">
{ENGAGE}
</div></a>
</div>
`;
linkItemHtmlTemplate[VERTICAL] = "";
linkItemHtmlTemplate[HORIZONTAL_NOENGAGE] = "";
linkItemHtmlTemplate[PEOPLE] = "";
linkItemHtmlTemplate[ASSESSMENT] = "";
// TODO: need to decide how and what this will look like
//linkItemHtmlTemplate[1] = '<p><strong>Engage</strong></p>';
linkItemHtmlTemplate[VERTICAL] = "";
/*`
<div class="relative pin-r pin-b m-18"> <button class="bg-transparent hover:bg-blue text-blue-dark font-semibold hover:text-white py-2 px-4 border border-blue hover:border-transparent rounded"> Engage </button>
</div>`;*/
//*****************************************************************
// Templates for the "Mark Review" and "Reviewed" features
var markReviewLinkHtmlTemplate = Array(NUM_TEMPLATES);
var markUnReviewedLinkHtmlTemplate = Array(NUM_TEMPLATES);
markReviewLinkHtmlTemplate[HORIZONTAL] = `
<div class="p-4 absolute pin-l pin-b">
<a href="{LINK}"><button class="bg-transparent hover:bg-blue text-blue-dark font-semibold hover:text-white py-2 px-4 border border-blue hover:border-transparent rounded">
<span class="font-bold rounded-full px-2 py-1 bg-yellow text-black">⚠</span> {MARK_REVIEWED}</button></a>
</div>
`;
markUnReviewedLinkHtmlTemplate[HORIZONTAL] = `
<div class="p-4 absolute pin-l pin-b">
<a href="{LINK}"><button class="bg-transparent hover:bg-blue text-blue-dark font-semibold hover:text-white py-2 px-4 border border-blue hover:border-transparent rounded">
<span class="font-bold rounded-full px-2 py-1 bg-green text-white">✓</span> {REVIEWED}</button></a>
</div>
`;
markReviewLinkHtmlTemplate[VERTICAL] = "";
markUnReviewedLinkHtmlTemplate[VERTICAL] = "";
markReviewLinkHtmlTemplate[HORIZONTAL_NOENGAGE] =
markReviewLinkHtmlTemplate[HORIZONTAL];
markUnReviewedLinkHtmlTemplate[HORIZONTAL_NOENGAGE] =
markUnReviewedLinkHtmlTemplate[HORIZONTAL];
markReviewLinkHtmlTemplate[PEOPLE] = "";
markUnReviewedLinkHtmlTemplate[PEOPLE] = "";
markReviewLinkHtmlTemplate[ASSESSMENT] = "";
markUnReviewedLinkHtmlTemplate[ASSESSMENT] = "";
// Template for the calendar/date tab
var dateHtmlTemplate = Array(NUM_TEMPLATES);
var dualDateHtmlTemplate = Array(NUM_TEMPLATES);
dateHtmlTemplate[HORIZONTAL] = `
<div class="block rounded-t rounded-b overflow-hidden bg-white text-center w-24 absolute pin-t pin-r">
<div class="bg-black text-white py-1 text-xs border-l border-r border-t border-black">
{DATE_LABEL}
</div>
{WEEK}
{TIME}
<div class="bg-red text-white py-1 border-l border-r border-black">
{MONTH}
</div>
<div class="pt-1 border-l border-r border-b border-black rounded-b">
<span class="text-2xl font-bold">{DATE}</span>
</div>
</div>
`;
dateHtmlTemplate[ASSESSMENT] = `
<div class="block rounded-t rounded-b overflow-hidden bg-white text-center w-24 pin-b pin-l">
<div class="bg-black text-white py-1 text-xs">
{DATE_LABEL}
</div>
{WEEK}
<div class="bg-red text-white py-1">
{MONTH}
</div>
<div class="pt-1 border-l border-r border-b rounded-b">
<span class="text-2xl font-bold">{DATE}</span>
</div>
</div>
`;
dualDateHtmlTemplate[HORIZONTAL] = `
<div class="block rounded-t rounded-b overflow-hidden bg-white text-center w-24 absolute pin-t pin-r">
<div class="bg-black text-white py-1 text-xs border-l border-r border-black">
{DATE_LABEL}
</div>
{WEEK}
{DAYS}
{TIME}
<div class="bg-red text-white flex items-stretch py-1 border-l border-r border-black">
<div class="w-1/2 flex-grow">{MONTH_START}</div>
<div class="flex items-stretch border-l border-black flex-grow -mt-1 -mb-1"></div>
<div class="w-1/2">{MONTH_STOP}</div>
</div>
<div class="border-l border-r border-b text-center flex border-black items-stretch pt-1">
<div class="w-1/2 text-2xl flex-grow font-bold">{DATE_START}</div>
<div class="flex font-bolditems-stretch border-l border-black flex-grow -mt-1"></div>
<div class="w-1/2 text-2xl font-bold">{DATE_STOP}</div>
</div>
</div>
`;
dualDateHtmlTemplate[ASSESSMENT] = `
<div class="block rounded-t rounded-b overflow-hidden bg-white text-center w-24 pin-b pin-l">
<div class="bg-black text-white py-1 text-xs border-l border-r border-t border-black">
{DATE_LABEL}
</div>
{WEEK}
<div class="bg-red text-white flex items-stretch py-1 border-l border-r border-black">
<div class="w-1/2 flex-grow">{MONTH_START}</div>
<div class="flex items-stretch border-l border-black flex-grow -mt-1 -mb-1"></div>
<div class="w-1/2">{MONTH_STOP}</div>
</div>
<div class="border-l border-r border-b text-center flex border-black items-stretch pt-1 rounded-b">
<div class="w-1/2 text-2xl flex-grow font-bold">{DATE_START}</div>
<div class="flex font-bolditems-stretch border-l border-black flex-grow -mt-1"></div>
<div class="w-1/2 text-2xl font-bold">{DATE_STOP}</div>
</div>
</div>
`;
var comingSoonHtmlTemplate = Array(NUM_TEMPLATES);
comingSoonHtmlTemplate[HORIZONTAL] = `
<div class="cardComingSoon p-4 flex bg-yellow-light">
<span>🚧</span>
<span>{COMING_SOON_LABEL} {MONTH} {DATE} ({TIME})</span>
</div>
`;
comingSoonHtmlTemplate[HORIZONTAL_NOENGAGE] =
comingSoonHtmlTemplate[HORIZONTAL];
comingSoonHtmlTemplate[PEOPLE] = comingSoonHtmlTemplate[HORIZONTAL_NOENGAGE];
comingSoonHtmlTemplate[VERTICAL] = comingSoonHtmlTemplate[HORIZONTAL_NOENGAGE];
var dualComingSoonHtmlTemplate = Array(NUM_TEMPLATES);
dualComingSoonHtmlTemplate[HORIZONTAL] = `
<div class="cardComingSoon p-4 flex bg-yellow-light">
<span>🚧</span>
<span>{COMING_SOON_LABEL} {MONTH_START} {DATE_START} ({TIME_START})-{MONTH_STOP} {DATE_STOP} ({TIME_STOP})</span>
</div>
`;
dualComingSoonHtmlTemplate[HORIZONTAL_NOENGAGE] =
dualComingSoonHtmlTemplate[HORIZONTAL];
dualComingSoonHtmlTemplate[PEOPLE] =
dualComingSoonHtmlTemplate[HORIZONTAL_NOENGAGE];
dualComingSoonHtmlTemplate[VERTICAL] =
dualComingSoonHtmlTemplate[HORIZONTAL_NOENGAGE];
// week templates
weekHtmlTemplate = `
<div class="bg-yellow-lighter text-black py-1">
{WEEK}
</div>
`;
dualWeekHtmlTemplate = `
<div class="bg-yellow-lighter text-black py-1 border-l border-r border-black">
Week {WEEK_START} to {WEEK_STOP}
</div>
`;
examPeriodTemplate = `
<div class="bg-yellow-lighter text-black py-1 border-l border-r border-black">
Exam Period
</div>
`;
// time template
timeHtmlTemplate = `
<div class="bg-yellow-light text-black py-1 text-xs">
{TIME_START}
</div>
`;
//comingSoonHtmlTemplate = `{TIME_START}`;
dualTimeHtmlTemplate = `
<div class="bg-yellow-light text-black flex items-stretch py-1 border-l border-r border-black">
<div class="w-1/2 flex-grow text-xs">{TIME_START}</div>
<div class="flex items-stretch border-l border-black flex-grow -mt-1 -mb-1"></div>
<div class="w-1/2 text-xs">{TIME_STOP}</div>
</div>
`;
// dual dates may have specific days, they need special handling
dualDayHtmlTemplate = `
<div class="bg-yellow-light text-black flex items-stretch py-1 border-l border-r border-black">
<div class="w-1/2 flex-grow text-xs">{DAY_START}</div>
<div class="flex items-stretch border-l border-black flex-grow -mt-1 -mb-1"></div>
<div class="w-1/2 text-xs">{DAY_STOP}</div>
</div>
`;
dateHtmlTemplate[VERTICAL] = dateHtmlTemplate[HORIZONTAL];
dateHtmlTemplate[HORIZONTAL_NOENGAGE] = dateHtmlTemplate[HORIZONTAL];
dateHtmlTemplate[PEOPLE] = "";
//dateHtmlTemplate[ASSESSMENT] = dateHtmlTemplate[HORIZONTAL];
dualDateHtmlTemplate[VERTICAL] = dualDateHtmlTemplate[HORIZONTAL];
dualDateHtmlTemplate[HORIZONTAL_NOENGAGE] = dualDateHtmlTemplate[HORIZONTAL];
dualDateHtmlTemplate[PEOPLE] = "";