-
Notifications
You must be signed in to change notification settings - Fork 0
/
reader_test.js
1511 lines (1449 loc) · 50.6 KB
/
reader_test.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
var page = 0;
var prevBtn
var nextBtn
var book
var chapter
var paper1
var paper2
var paper3
var paper4
var paper5
var paper6
var paper7
var paper8
var paper9
var paper10
var pageList
// Business Logic
let currentLocation = 1
let numOfPapers = 10
let maxLocation = numOfPapers + 1
$(document).ready(function($) {
prevBtn = document.querySelector("#prev-btn")
nextBtn = document.querySelector("#next-btn")
book = document.querySelector("#book")
chapter = document.querySelector("#chapter-cover")
paper1 = document.querySelector("#p1")
paper2 = document.querySelector("#p2")
paper3 = document.querySelector("#p3")
paper4 = document.querySelector("#p4")
paper5 = document.querySelector("#p5")
paper6 = document.querySelector("#p6")
paper7 = document.querySelector("#p7")
paper8 = document.querySelector("#p8")
paper9 = document.querySelector("#p9")
paper10 = document.querySelector("#p10")
pageList = [document.getElementById("page1"), document.getElementById("page2"),
document.getElementById("page3"), document.getElementById("page4"),
document.getElementById("page5"), document.getElementById("page6"),
document.getElementById("page7"), document.getElementById("page8"),
document.getElementById("page9"), document.getElementById("page10"),
document.getElementById("page11"), document.getElementById("page12"),
document.getElementById("page13"), document.getElementById("page14"),
document.getElementById("page15"), document.getElementById("page16"),
document.getElementById("page17"), document.getElementById("page18")]
// Event Listener
prevBtn.addEventListener("click", goPrevPage)
nextBtn.addEventListener("click", goNextPage)
loadDropDownContent()
if (window.innerWidth <= 750) {
loadChapter(1, true)
}
else {
loadChapter(1, false)
}
})
function openBook() {
if (window.innerWidth > 750) {
book.style.transform = "translateX(50%)"
prevBtn.style.transform = "translateX(-180px)"
nextBtn.style.transform = "translateX(180px)"
chapter.style.transition = "0s"
chapter.style.transform = "scale(0)"
}
prevBtn.style.display = "inherit"
nextBtn.style.display = "inherit"
}
function closeBook(isAtBeginning) {
if (window.innerWidth > 750) {
if(isAtBeginning) {
book.style.transform = "translateX(0%)"
currentLocation = 1
page = 0
} else {
book.style.transform = "translateX(100%)"
currentLocation = 11
page = 20
}
} else if (!isAtBeginning) {
currentLocation = 11
}
if(isAtBeginning) {
prevBtn.style.display = "none"
nextBtn.style.display = "inherit"
} else {
nextBtn.style.display = "none"
prevBtn.style.display = "inherit"
}
prevBtn.style.transform = "translateX(0px)"
nextBtn.style.transform = "translateX(0px)"
chapter.style.transition = "transform .5s"
chapter.style.transform = "scale(1)"
}
function goNextPage() {
if(currentLocation < maxLocation) {
prevBtn.style.display = "inherit"
nextBtn.style.display = "inherit"
var mobile = false
page += 2
if (window.innerWidth <= 750) {
mobile = true
page -= 1
}
switch(currentLocation) {
case 1:
openBook()
paper1.classList.add("flipped")
paper1.style.zIndex = 1
if (mobile) {
document.getElementById("page2").innerHTML = chapterList[0]
mobileFlip = false
}
currentLocation++
break
case 2:
if (mobile && !mobileFlip) {
document.getElementById("page2").innerHTML = chapterList[1]
mobileFlip = true
} else {
paper2.classList.add("flipped")
paper2.style.zIndex = 2
if (mobile) {
document.getElementById("page4").innerHTML = chapterList[2]
mobileFlip = false
}
currentLocation++
}
break
case 3:
if (mobile && !mobileFlip) {
document.getElementById("page4").innerHTML = chapterList[3]
mobileFlip = true
} else {
paper3.classList.add("flipped")
paper3.style.zIndex = 3
if (mobile) {
document.getElementById("page6").innerHTML = chapterList[4]
mobileFlip = false
}
currentLocation++
}
break
case 4:
if (mobile && !mobileFlip) {
document.getElementById("page6").innerHTML = chapterList[5]
mobileFlip = true
} else {
paper4.classList.add("flipped")
paper4.style.zIndex = 4
if (mobile) {
document.getElementById("page8").innerHTML = chapterList[6]
mobileFlip = false
}
currentLocation++
}
break
case 5:
if (mobile && !mobileFlip) {
document.getElementById("page8").innerHTML = chapterList[7]
mobileFlip = true
} else {
paper5.classList.add("flipped")
paper5.style.zIndex = 5
if (mobile) {
document.getElementById("page10").innerHTML = chapterList[8]
mobileFlip = false
}
currentLocation++
}
break
case 6:
if (mobile && !mobileFlip) {
document.getElementById("page10").innerHTML = chapterList[9]
mobileFlip = true
} else {
paper6.classList.add("flipped")
paper6.style.zIndex = 6
if (mobile) {
document.getElementById("page12").innerHTML = chapterList[10]
mobileFlip = false
}
currentLocation++
}
break
case 7:
if (mobile && !mobileFlip) {
document.getElementById("page12").innerHTML = chapterList[11]
mobileFlip = true
} else {
paper7.classList.add("flipped")
paper7.style.zIndex = 7
if (mobile) {
document.getElementById("page14").innerHTML = chapterList[12]
mobileFlip = false
}
currentLocation++
}
break
case 8:
if (mobile && !mobileFlip) {
document.getElementById("page14").innerHTML = chapterList[13]
mobileFlip = true
} else {
paper8.classList.add("flipped")
paper8.style.zIndex = 8
if (mobile) {
document.getElementById("page16").innerHTML = chapterList[14]
mobileFlip = false
}
currentLocation++
}
break
case 9:
if (mobile && !mobileFlip) {
document.getElementById("page16").innerHTML = chapterList[15]
mobileFlip = true
} else {
paper9.classList.add("flipped")
paper9.style.zIndex = 9
if (mobile) {
document.getElementById("page18").innerHTML = chapterList[16]
mobileFlip = false
}
currentLocation++
}
break
case 10:
if (mobile && !mobileFlip) {
document.getElementById("page18").innerHTML = chapterList[17]
mobileFlip = true
} else {
paper10.classList.add("flipped")
paper10.style.zIndex = 10
if (mobile) {
mobileFlip = false
}
currentLocation++
}
break
default:
throw new Error("unknown state")
}
if ((chapterList[page - 2] == `` && !mobile) || (chapterList[page - 1] ==`` && mobile)) {
mobileFlip = true
currentLocation++
checkPagesForward(mobile)
}
if (currentLocation > numOfPapers) {
closeBook(false)
}
}
}
function goPrevPage() {
if(currentLocation > 1) {
var mobile = false
page -= 2
if (window.innerWidth <= 750) {
mobile = true
page += 1
}
switch(currentLocation) {
case 2:
if (mobile && mobileFlip) {
document.getElementById("page2").innerHTML = chapterList[0]
mobileFlip = false
} else {
mobileFlip = true
paper1.classList.remove("flipped")
paper1.style.zIndex = 10
currentLocation--
closeBook(true)
}
break
case 3:
if (mobile && mobileFlip) {
document.getElementById("page4").innerHTML = chapterList[2]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page2").innerHTML = chapterList[1]
paper2.classList.remove("flipped")
paper2.style.zIndex = 9
currentLocation--
}
break
case 4:
if (mobile && mobileFlip) {
document.getElementById("page6").innerHTML = chapterList[4]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page4").innerHTML = chapterList[3]
paper3.classList.remove("flipped")
paper3.style.zIndex = 8
currentLocation--
}
break
case 5:
if (mobile && mobileFlip) {
document.getElementById("page8").innerHTML = chapterList[6]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page6").innerHTML = chapterList[5]
paper4.classList.remove("flipped")
paper4.style.zIndex = 7
currentLocation--
}
break
case 6:
if (mobile && mobileFlip) {
document.getElementById("page10").innerHTML = chapterList[8]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page8").innerHTML = chapterList[7]
paper5.classList.remove("flipped")
paper5.style.zIndex = 6
currentLocation--
}
break
case 7:
if (mobile && mobileFlip) {
document.getElementById("page12").innerHTML = chapterList[10]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page10").innerHTML = chapterList[9]
paper6.classList.remove("flipped")
paper6.style.zIndex = 5
currentLocation--
}
break
case 8:
if (mobile && mobileFlip) {
document.getElementById("page14").innerHTML = chapterList[12]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page12").innerHTML = chapterList[11]
paper7.classList.remove("flipped")
paper7.style.zIndex = 4
currentLocation--
}
break
case 9:
if (mobile && mobileFlip) {
document.getElementById("page16").innerHTML = chapterList[14]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page14").innerHTML = chapterList[13]
paper8.classList.remove("flipped")
paper8.style.zIndex = 3
currentLocation--
}
break
case 10:
if (mobile && mobileFlip) {
document.getElementById("page18").innerHTML = chapterList[16]
mobileFlip = false
} else {
mobileFlip = true
document.getElementById("page16").innerHTML = chapterList[15]
paper9.classList.remove("flipped")
paper9.style.zIndex = 2
currentLocation--
}
break
case 11:
paper10.classList.remove("flipped")
paper10.style.zIndex = 1
if (mobile) {
mobileFlip = true
document.getElementById("page18").innerHTML = chapterList[17]
}
currentLocation--
break
default:
throw new Error("unknown state")
}
if ((chapterList[page - 2] == `` && !mobile) || (chapterList[page - 1] ==`` && mobile)) {
mobileFlip = false
checkPagesReverse(mobile)
}
if (currentLocation == numOfPapers) {
openBook()
}
}
}
function changeChapter() {
resetBook()
if (window.innerWidth <= 750) {
chapterValue = parseInt(document.getElementById("chapter-mobile").value)
loadChapter(parseInt(document.getElementById("chapter-mobile").value), true)
}
else {
if (parseInt(document.getElementById("chapter-back").value) == chapterValue) {
chapterValue = parseInt(document.getElementById("chapter-cover").value)
loadChapter(parseInt(document.getElementById("chapter-cover").value), false)
}
else {
chapterValue = parseInt(document.getElementById("chapter-back").value)
loadChapter(parseInt(document.getElementById("chapter-back").value), false)
}
}
document.getElementById("chapter-back").value = chapterValue
document.getElementById("chapter-cover").value = chapterValue
document.getElementById("chapter-mobile").value = chapterValue
}
function resetBook() {
currentLocation = 1
page = 0
paper10.classList.remove("flipped")
paper10.style.zIndex = 1
paper9.classList.remove("flipped")
paper9.style.zIndex = 2
paper8.classList.remove("flipped")
paper8.style.zIndex = 3
paper7.classList.remove("flipped")
paper7.style.zIndex = 4
paper6.classList.remove("flipped")
paper6.style.zIndex = 5
paper5.classList.remove("flipped")
paper5.style.zIndex = 6
paper4.classList.remove("flipped")
paper4.style.zIndex = 7
paper3.classList.remove("flipped")
paper3.style.zIndex = 8
paper2.classList.remove("flipped")
paper2.style.zIndex = 9
paper1.classList.remove("flipped")
paper1.style.zIndex = 10
mobileFlip = false
closeBook(true)
}
function loadDropDownContent() {
document.getElementById("chapter-mobile").innerHTML = chapterSelection
document.getElementById("chapter-cover").innerHTML = chapterSelection
document.getElementById("chapter-back").innerHTML = chapterSelection
}
function checkPagesForward(mobile) {
for (item in chapterList) {
}
if (chapterList[16] === `` && (mobileFlip || !mobile)) {
paper9.classList.add("flipped")
paper9.style.zIndex = 9
paper10.classList.add("flipped")
paper10.style.zIndex = 10
currentLocation ++
page = 19
closeBook(false)
}
if (chapterList[14] === `` && (mobileFlip || !mobile)) {
paper8.classList.add("flipped")
paper8.style.zIndex = 8
currentLocation ++
}
if (chapterList[12] === `` && (mobileFlip || !mobile)) {
paper7.classList.add("flipped")
paper7.style.zIndex = 7
currentLocation ++
}
if (chapterList[10] === `` && (mobileFlip || !mobile)) {
paper6.classList.add("flipped")
paper6.style.zIndex = 6
currentLocation ++
}
if (chapterList[8] === `` && (mobileFlip || !mobile)) {
paper5.classList.add("flipped")
paper5.style.zIndex = 5
currentLocation ++
}
}
function checkPagesReverse(mobile) {
if (chapterList[16] === `` && (!mobileFlip || !mobile)) {
paper9.classList.remove("flipped")
paper9.style.zIndex = 2
paper10.classList.remove("flipped")
paper10.style.zIndex = 1
currentLocation --
page -= 2
openBook()
}
if (chapterList[14] === `` && (!mobileFlip || !mobile)) {
paper8.classList.remove("flipped")
paper8.style.zIndex = 3
currentLocation --
page -= 2
}
if (chapterList[12] === `` && (!mobileFlip || !mobile)) {
paper7.classList.remove("flipped")
paper7.style.zIndex = 4
currentLocation --
page -= 2
}
if (chapterList[10] === `` && (!mobileFlip || !mobile)) {
paper6.classList.remove("flipped")
paper6.style.zIndex = 5
currentLocation --
page -= 2
}
if (chapterList[8] === `` && (!mobileFlip || !mobile)) {
paper5.classList.remove("flipped")
paper5.style.zIndex = 6
currentLocation --
page -= 2
}
if (mobile && chapterList[page - 1] ==`` && chapterList[page - 2] != ``) {
mobileFlip = false
pageList[page - 1].innerHTML = chapterList[page - 2]
page--
}
else if (mobile){
mobileFlip = true
}
}
var chapterList = []
var chapterValue = 1
const chapterSelection = ` <option value="1">Chapter 1</option>
<option value="2">Chapter 2</option>
<option value="3">Chapter 3</option>
<option value="4">Chapter 4</option>
<option value="5">Chapter 5</option>
<option value="6">Chapter 6</option>
<option value="7">Chapter 7</option>
<option value="8">Chapter 8</option>
<option value="9">Chapter 9</option>
<option value="2">Chapter 10</option>
<option value="11">Chapter 11</option>
<option value="12">Chapter 12</option>
<option value="13">Chapter 13</option>
<option value="14">Chapter 14</option>
<option value="15">Chapter 15</option>
<option value="16">Chapter 16</option>
<option value="17">Chapter 17</option>
<option value="18">Chapter 18</option>
<option value="19">Chapter 19</option>
<option value="20">Chapter 20</option>`
var mobileFlip = false
const ch1p1 = `1`
const ch1p1mobile = `1mobile`
const ch1p2 = `2`
const ch1p2mobile = `2mobile`
const ch1p3 = `3`
const ch1p3mobile = `3mobile`
const ch1p4 = `4`
const ch1p4mobile = `4mobile`
const ch1p5 = `5`
const ch1p5mobile = `5mobile`
const ch1p6 = `6`
const ch1p6mobile = `6mobile`
const ch1p7 = `7`
const ch1p7mobile = `7mobile`
const ch1p8 = `8`
const ch1p8mobile = `8mobile`
const ch1p9 = `9`
const ch1p9mobile = `9mobile`
const ch1p10 = `10`
const ch1p10mobile = `10mobile`
const ch1p11 = `11`
const ch1p11mobile = `11mobile`
const ch1p12 = `12`
const ch1p12mobile = `12mobile`
const ch1p13 = `13`
const ch1p13mobile = `13mobile`
const ch1p14 = `14`
const ch1p14mobile = `14mobile`
const ch1p15 = `15`
const ch1p15mobile = `15mobile`
const ch1p16 = `16`
const ch1p16mobile = `16mobile`
const ch1p17 = `17`
const ch1p17mobile = `17mobile`
const ch1p18 = `18`
const ch1p18mobile = `18mobile`
const ch1 = [ch1p1, ch1p2, ch1p3, ch1p4, ch1p5, ch1p6, ch1p7, ch1p8, ch1p9, ch1p10, ch1p11, ch1p12, ch1p13, ch1p14, ch1p15, ch1p16, ch1p17, ch1p18]
const ch1mobile = [ch1p1mobile, ch1p2mobile, ch1p3mobile, ch1p4mobile, ch1p5mobile, ch1p6mobile, ch1p7mobile, ch1p8mobile, ch1p9mobile, ch1p10mobile, ch1p11mobile, ch1p12mobile, ch1p13mobile, ch1p14mobile, ch1p15mobile, ch1p16mobile, ch1p17mobile, ch1p18mobile]
const ch2p1 = `1`
const ch2p1mobile = `1mobile`
const ch2p2 = `2`
const ch2p2mobile = `2mobile`
const ch2p3 = `3`
const ch2p3mobile = `3mobile`
const ch2p4 = `4`
const ch2p4mobile = `4mobile`
const ch2p5 = `5`
const ch2p5mobile = `5mobile`
const ch2p6 = `6`
const ch2p6mobile = `6mobile`
const ch2p7 = `7`
const ch2p7mobile = `7mobile`
const ch2p8 = `8`
const ch2p8mobile = `8mobile`
const ch2p9 = `9`
const ch2p9mobile = `9mobile`
const ch2p10 = `10`
const ch2p10mobile = `10mobile`
const ch2p11 = `11`
const ch2p11mobile = `11mobile`
const ch2p12 = `12`
const ch2p12mobile = `12mobile`
const ch2p13 = `13`
const ch2p13mobile = `13mobile`
const ch2p14 = `14`
const ch2p14mobile = `14mobile`
const ch2p15 = `15`
const ch2p15mobile = `15mobile`
const ch2p16 = `16`
const ch2p16mobile = `16mobile`
const ch2p17 = `17`
const ch2p17mobile = `17mobile`
const ch2p18 = `18`
const ch2p18mobile = `18mobile`
const ch2 = [ch2p1, ch2p2, ch2p3, ch2p4, ch2p5, ch2p6, ch2p7, ch2p8, ch2p9, ch2p10, ch2p11, ch2p12, ch2p13, ch2p14, ch2p15, ch2p16, ch2p17, ch2p18]
const ch2mobile = [ch2p1mobile, ch2p2mobile, ch2p3mobile, ch2p4mobile, ch2p5mobile, ch2p6mobile, ch2p7mobile, ch2p8mobile, ch2p9mobile, ch2p10mobile, ch2p11mobile, ch2p12mobile, ch2p13mobile, ch2p14mobile, ch2p15mobile, ch2p16mobile, ch2p17mobile, ch2p18mobile]
const ch3p1 = `1`
const ch3p1mobile = `1mobile`
const ch3p2 = `2`
const ch3p2mobile = `2mobile`
const ch3p3 = `3`
const ch3p3mobile = `3mobile`
const ch3p4 = `4`
const ch3p4mobile = `4mobile`
const ch3p5 = `5`
const ch3p5mobile = `5mobile`
const ch3p6 = `6`
const ch3p6mobile = `6mobile`
const ch3p7 = `7`
const ch3p7mobile = `7mobile`
const ch3p8 = `8`
const ch3p8mobile = `8mobile`
const ch3p9 = `9`
const ch3p9mobile = `9mobile`
const ch3p10 = `10`
const ch3p10mobile = `10mobile`
const ch3p11 = `11`
const ch3p11mobile = `11mobile`
const ch3p12 = `12`
const ch3p12mobile = `12mobile`
const ch3p13 = `13`
const ch3p13mobile = `13mobile`
const ch3p14 = `14`
const ch3p14mobile = `14mobile`
const ch3p15 = `15`
const ch3p15mobile = `15mobile`
const ch3p16 = `16`
const ch3p16mobile = `16mobile`
const ch3p17 = `17`
const ch3p17mobile = `17mobile`
const ch3p18 = `18`
const ch3p18mobile = `18mobile`
const ch3 = [ch3p1, ch3p2, ch3p3, ch3p4, ch3p5, ch3p6, ch3p7, ch3p8, ch3p9, ch3p10, ch3p11, ch3p12, ch3p13, ch3p14, ch3p15, ch3p16, ch3p17, ch3p18]
const ch3mobile = [ch3p1mobile, ch3p2mobile, ch3p3mobile, ch3p4mobile, ch3p5mobile, ch3p6mobile, ch3p7mobile, ch3p8mobile, ch3p9mobile, ch3p10mobile, ch3p11mobile, ch3p12mobile, ch3p13mobile, ch3p14mobile, ch3p15mobile, ch3p16mobile, ch3p17mobile, ch3p18mobile]
const ch4p1 = `1`
const ch4p1mobile = `1mobile`
const ch4p2 = `2`
const ch4p2mobile = `2mobile`
const ch4p3 = `3`
const ch4p3mobile = `3mobile`
const ch4p4 = `4`
const ch4p4mobile = `4mobile`
const ch4p5 = `5`
const ch4p5mobile = `5mobile`
const ch4p6 = `6`
const ch4p6mobile = `6mobile`
const ch4p7 = `7`
const ch4p7mobile = `7mobile`
const ch4p8 = `8`
const ch4p8mobile = `8mobile`
const ch4p9 = `9`
const ch4p9mobile = `9mobile`
const ch4p10 = `10`
const ch4p10mobile = `10mobile`
const ch4p11 = `11`
const ch4p11mobile = `11mobile`
const ch4p12 = `12`
const ch4p12mobile = `12mobile`
const ch4p13 = `13`
const ch4p13mobile = `13mobile`
const ch4p14 = `14`
const ch4p14mobile = `14mobile`
const ch4p15 = `15`
const ch4p15mobile = `15mobile`
const ch4p16 = `16`
const ch4p16mobile = `16mobile`
const ch4p17 = `17`
const ch4p17mobile = `17mobile`
const ch4p18 = `18`
const ch4p18mobile = `18mobile`
const ch4 = [ch4p1, ch4p2, ch4p3, ch4p4, ch4p5, ch4p6, ch4p7, ch4p8, ch4p9, ch4p10, ch4p11, ch4p12, ch4p13, ch4p14, ch4p15, ch4p16, ch4p17, ch4p18]
const ch4mobile = [ch4p1mobile, ch4p2mobile, ch4p3mobile, ch4p4mobile, ch4p5mobile, ch4p6mobile, ch4p7mobile, ch4p8mobile, ch4p9mobile, ch4p10mobile, ch4p11mobile, ch4p12mobile, ch4p13mobile, ch4p14mobile, ch4p15mobile, ch4p16mobile, ch4p17mobile, ch4p18mobile]
const ch5p1 = `1`
const ch5p1mobile = `1mobile`
const ch5p2 = `2`
const ch5p2mobile = `2mobile`
const ch5p3 = `3`
const ch5p3mobile = `3mobile`
const ch5p4 = `4`
const ch5p4mobile = `4mobile`
const ch5p5 = `5`
const ch5p5mobile = `5mobile`
const ch5p6 = `6`
const ch5p6mobile = `6mobile`
const ch5p7 = `7`
const ch5p7mobile = `7mobile`
const ch5p8 = `8`
const ch5p8mobile = `8mobile`
const ch5p9 = `9`
const ch5p9mobile = `9mobile`
const ch5p10 = `10`
const ch5p10mobile = `10mobile`
const ch5p11 = `11`
const ch5p11mobile = `11mobile`
const ch5p12 = `12`
const ch5p12mobile = `12mobile`
const ch5p13 = `13`
const ch5p13mobile = `13mobile`
const ch5p14 = `14`
const ch5p14mobile = `14mobile`
const ch5p15 = `15`
const ch5p15mobile = `15mobile`
const ch5p16 = `16`
const ch5p16mobile = `16mobile`
const ch5p17 = `17`
const ch5p17mobile = `17mobile`
const ch5p18 = `18`
const ch5p18mobile = `18mobile`
const ch5 = [ch5p1, ch5p2, ch5p3, ch5p4, ch5p5, ch5p6, ch5p7, ch5p8, ch5p9, ch5p10, ch5p11, ch5p12, ch5p13, ch5p14, ch5p15, ch5p16, ch5p17, ch5p18]
const ch5mobile = [ch5p1mobile, ch5p2mobile, ch5p3mobile, ch5p4mobile, ch5p5mobile, ch5p6mobile, ch5p7mobile, ch5p8mobile, ch5p9mobile, ch5p10mobile, ch5p11mobile, ch5p12mobile, ch5p13mobile, ch5p14mobile, ch5p15mobile, ch5p16mobile, ch5p17mobile, ch5p18mobile]
const ch6p1 = `1`
const ch6p1mobile = `1mobile`
const ch6p2 = `2`
const ch6p2mobile = `2mobile`
const ch6p3 = `3`
const ch6p3mobile = `3mobile`
const ch6p4 = `4`
const ch6p4mobile = `4mobile`
const ch6p5 = `5`
const ch6p5mobile = `5mobile`
const ch6p6 = `6`
const ch6p6mobile = `6mobile`
const ch6p7 = `7`
const ch6p7mobile = `7mobile`
const ch6p8 = `8`
const ch6p8mobile = `8mobile`
const ch6p9 = `9`
const ch6p9mobile = `9mobile`
const ch6p10 = `10`
const ch6p10mobile = `10mobile`
const ch6p11 = `11`
const ch6p11mobile = `11mobile`
const ch6p12 = `12`
const ch6p12mobile = `12mobile`
const ch6p13 = `13`
const ch6p13mobile = `13mobile`
const ch6p14 = `14`
const ch6p14mobile = `14mobile`
const ch6p15 = `15`
const ch6p15mobile = `15mobile`
const ch6p16 = `16`
const ch6p16mobile = `16mobile`
const ch6p17 = `17`
const ch6p17mobile = `17mobile`
const ch6p18 = `18`
const ch6p18mobile = `18mobile`
const ch6 = [ch6p1, ch6p2, ch6p3, ch6p4, ch6p5, ch6p6, ch6p7, ch6p8, ch6p9, ch6p10, ch6p11, ch6p12, ch6p13, ch6p14, ch6p15, ch6p16, ch6p17, ch6p18]
const ch6mobile = [ch6p1mobile, ch6p2mobile, ch6p3mobile, ch6p4mobile, ch6p5mobile, ch6p6mobile, ch6p7mobile, ch6p8mobile, ch6p9mobile, ch6p10mobile, ch6p11mobile, ch6p12mobile, ch6p13mobile, ch6p14mobile, ch6p15mobile, ch6p16mobile, ch6p17mobile, ch6p18mobile]
const ch7p1 = `1`
const ch7p1mobile = `1mobile`
const ch7p2 = `2`
const ch7p2mobile = `2mobile`
const ch7p3 = `3`
const ch7p3mobile = `3mobile`
const ch7p4 = `4`
const ch7p4mobile = `4mobile`
const ch7p5 = `5`
const ch7p5mobile = `5mobile`
const ch7p6 = `6`
const ch7p6mobile = `6mobile`
const ch7p7 = `7`
const ch7p7mobile = `7mobile`
const ch7p8 = `8`
const ch7p8mobile = `8mobile`
const ch7p9 = `9`
const ch7p9mobile = `9mobile`
const ch7p10 = `10`
const ch7p10mobile = `10mobile`
const ch7p11 = `11`
const ch7p11mobile = `11mobile`
const ch7p12 = `12`
const ch7p12mobile = `12mobile`
const ch7p13 = `13`
const ch7p13mobile = `13mobile`
const ch7p14 = `14`
const ch7p14mobile = `14mobile`
const ch7p15 = `15`
const ch7p15mobile = `15mobile`
const ch7p16 = `16`
const ch7p16mobile = `16mobile`
const ch7p17 = `17`
const ch7p17mobile = `17mobile`
const ch7p18 = `18`
const ch7p18mobile = `18mobile`
const ch7 = [ch7p1, ch7p2, ch7p3, ch7p4, ch7p5, ch7p6, ch7p7, ch7p8, ch7p9, ch7p10, ch7p11, ch7p12, ch7p13, ch7p14, ch7p15, ch7p16, ch7p17, ch7p18]
const ch7mobile = [ch7p1mobile, ch7p2mobile, ch7p3mobile, ch7p4mobile, ch7p5mobile, ch7p6mobile, ch7p7mobile, ch7p8mobile, ch7p9mobile, ch7p10mobile, ch7p11mobile, ch7p12mobile, ch7p13mobile, ch7p14mobile, ch7p15mobile, ch7p16mobile, ch7p17mobile, ch7p18mobile]
const ch8p1 = `1`
const ch8p1mobile = `1mobile`
const ch8p2 = `2`
const ch8p2mobile = `2mobile`
const ch8p3 = `3`
const ch8p3mobile = `3mobile`
const ch8p4 = `4`
const ch8p4mobile = `4mobile`
const ch8p5 = `5`
const ch8p5mobile = `5mobile`
const ch8p6 = `6`
const ch8p6mobile = `6mobile`
const ch8p7 = `7`
const ch8p7mobile = `7mobile`
const ch8p8 = `8`
const ch8p8mobile = `8mobile`
const ch8p9 = `9`
const ch8p9mobile = `9mobile`
const ch8p10 = `10`
const ch8p10mobile = `10mobile`
const ch8p11 = `11`
const ch8p11mobile = `11mobile`
const ch8p12 = `12`
const ch8p12mobile = `12mobile`
const ch8p13 = `13`
const ch8p13mobile = `13mobile`
const ch8p14 = `14`
const ch8p14mobile = `14mobile`
const ch8p15 = `15`
const ch8p15mobile = `15mobile`
const ch8p16 = `16`
const ch8p16mobile = `16mobile`
const ch8p17 = `17`
const ch8p17mobile = `17mobile`
const ch8p18 = `18`
const ch8p18mobile = `18mobile`
const ch8 = [ch8p1, ch8p2, ch8p3, ch8p4, ch8p5, ch8p6, ch8p7, ch8p8, ch8p9, ch8p10, ch8p11, ch8p12, ch8p13, ch8p14, ch8p15, ch8p16, ch8p17, ch8p18]
const ch8mobile = [ch8p1mobile, ch8p2mobile, ch8p3mobile, ch8p4mobile, ch8p5mobile, ch8p6mobile, ch8p7mobile, ch8p8mobile, ch8p9mobile, ch8p10mobile, ch8p11mobile, ch8p12mobile, ch8p13mobile, ch8p14mobile, ch8p15mobile, ch8p16mobile, ch8p17mobile, ch8p18mobile]
const ch9p1 = `1`
const ch9p1mobile = `1mobile`
const ch9p2 = `2`
const ch9p2mobile = `2mobile`
const ch9p3 = `3`
const ch9p3mobile = `3mobile`
const ch9p4 = `4`
const ch9p4mobile = `4mobile`
const ch9p5 = `5`
const ch9p5mobile = `5mobile`
const ch9p6 = `6`
const ch9p6mobile = `6mobile`
const ch9p7 = `7`
const ch9p7mobile = `7mobile`
const ch9p8 = `8`
const ch9p8mobile = `8mobile`
const ch9p9 = `9`
const ch9p9mobile = `9mobile`
const ch9p10 = `10`
const ch9p10mobile = `10mobile`
const ch9p11 = `11`
const ch9p11mobile = `11mobile`
const ch9p12 = `12`
const ch9p12mobile = `12mobile`
const ch9p13 = `13`
const ch9p13mobile = `13mobile`
const ch9p14 = `14`
const ch9p14mobile = `14mobile`
const ch9p15 = `15`
const ch9p15mobile = `15mobile`
const ch9p16 = `16`
const ch9p16mobile = `16mobile`
const ch9p17 = `17`
const ch9p17mobile = `17mobile`
const ch9p18 = `18`
const ch9p18mobile = `18mobile`
const ch9 = [ch9p1, ch9p2, ch9p3, ch9p4, ch9p5, ch9p6, ch9p7, ch9p8, ch9p9, ch9p10, ch9p11, ch9p12, ch9p13, ch9p14, ch9p15, ch9p16, ch9p17, ch9p18]
const ch9mobile = [ch9p1mobile, ch9p2mobile, ch9p3mobile, ch9p4mobile, ch9p5mobile, ch9p6mobile, ch9p7mobile, ch9p8mobile, ch9p9mobile, ch9p10mobile, ch9p11mobile, ch9p12mobile, ch9p13mobile, ch9p14mobile, ch9p15mobile, ch9p16mobile, ch9p17mobile, ch9p18mobile]
const ch10p1 = `1`
const ch10p1mobile = `1mobile`
const ch10p2 = `2`
const ch10p2mobile = `2mobile`
const ch10p3 = `3`
const ch10p3mobile = `3mobile`
const ch10p4 = `4`
const ch10p4mobile = `4mobile`
const ch10p5 = `5`
const ch10p5mobile = `5mobile`
const ch10p6 = `6`
const ch10p6mobile = `6mobile`
const ch10p7 = `7`
const ch10p7mobile = `7mobile`
const ch10p8 = `8`
const ch10p8mobile = `8mobile`
const ch10p9 = `9`
const ch10p9mobile = `9mobile`
const ch10p10 = `10`
const ch10p10mobile = `10mobile`
const ch10p11 = `11`
const ch10p11mobile = `11mobile`
const ch10p12 = `12`
const ch10p12mobile = `12mobile`
const ch10p13 = `13`
const ch10p13mobile = `13mobile`
const ch10p14 = `14`
const ch10p14mobile = `14mobile`
const ch10p15 = `15`
const ch10p15mobile = `15mobile`
const ch10p16 = `16`
const ch10p16mobile = `16mobile`
const ch10p17 = `17`
const ch10p17mobile = `17mobile`
const ch10p18 = `18`
const ch10p18mobile = `18mobile`
const ch10 = [ch10p1, ch10p2, ch10p3, ch10p4, ch10p5, ch10p6, ch10p7, ch10p8, ch10p9, ch10p10, ch10p11, ch10p12, ch10p13, ch10p14, ch10p15, ch10p16, ch10p17, ch10p18]
const ch10mobile = [ch10p1mobile, ch10p2mobile, ch10p3mobile, ch10p4mobile, ch10p5mobile, ch10p6mobile, ch10p7mobile, ch10p8mobile, ch10p9mobile, ch10p10mobile, ch10p11mobile, ch10p12mobile, ch10p13mobile, ch10p14mobile, ch10p15mobile, ch10p16mobile, ch10p17mobile, ch10p18mobile]
const ch11p1 = `1`
const ch11p1mobile = `1mobile`
const ch11p2 = `2`
const ch11p2mobile = `2mobile`
const ch11p3 = `3`
const ch11p3mobile = `3mobile`
const ch11p4 = `4`
const ch11p4mobile = `4mobile`
const ch11p5 = `5`
const ch11p5mobile = `5mobile`
const ch11p6 = `6`
const ch11p6mobile = `6mobile`
const ch11p7 = `7`
const ch11p7mobile = `7mobile`
const ch11p8 = `8`
const ch11p8mobile = `8mobile`
const ch11p9 = `9`
const ch11p9mobile = `9mobile`
const ch11p10 = `10`
const ch11p10mobile = `10mobile`
const ch11p11 = `11`
const ch11p11mobile = `11mobile`
const ch11p12 = `12`
const ch11p12mobile = `12mobile`
const ch11p13 = `13`
const ch11p13mobile = `13mobile`
const ch11p14 = `14`
const ch11p14mobile = `14mobile`
const ch11p15 = `15`
const ch11p15mobile = `15mobile`
const ch11p16 = `16`
const ch11p16mobile = `16mobile`
const ch11p17 = `17`