-
Notifications
You must be signed in to change notification settings - Fork 108
/
index.html
1514 lines (1428 loc) · 61.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<link
href="https://fonts.googleapis.com/css?family=Roboto Mono"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
<script src="https://kit.fontawesome.com/b08b6de27e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.8.1/font/bootstrap-icons.min.css">
<link rel="icon" href="./images/glider-icon.png" type="image/gif" />
<!-- Meta tags -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes" />
<meta
name="description"
content="Explore Conway's Game of Life, a fascinating cellular automaton created by mathematician John Horton Conway in 1970. Dive into the eternal patterns and captivating simulations at Eternal Game of Life."/>
<meta
name="keywords"
content="Conway's Game of Life, cellular automaton, John Horton Conway, 1970,Conway's Game of Life, cellular automaton, John Horton Conway, 1970, eternal game of life, game of life patterns, life simulation, mathematical game, game of life rules, Conway game, interactive game of life, game of life website, play Conway's Game of Life, online game of life, Conway automaton, game of life examples, cellular automaton game, game of life history, Conway game simulator, eternal patterns in life. "/>
<meta name="author" content="Shrihari Magar">
<meta name="title" content="Eternal Game of Life">
<meta name='URL' content='https://eternalgameoflife.netlify.app/'>
<meta name='identifier-URL' content='https://eternalgameoflife.netlify.app/'>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="bingbot" content="index, follow" />
<!-- Open Graph -->
<meta property="og:title" content="Eternal Game of Life" />
<meta property="og:type" content="website" />
<meta property="og:url" content='https://eternalgameoflife.netlify.app/' />
<meta property="og:description"
content="Explore Conway's Game of Life, a fascinating cellular automaton created by mathematician John Horton Conway in 1970. Dive into the eternal patterns and captivating simulations at Eternal Game of Life." />
<meta property="og:image" content="https://github.com/EternoSeeker/gameoflife/blob/main/images/glider-icon.png">
<title>Conway's Game of Life</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap"
rel="stylesheet"
/>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.slim.js"
integrity="sha512-docBEeq28CCaXCXN7cINkyQs0pRszdQsVBFWUd+pLNlEk3LDlSDDtN7i1H+nTB8tshJPQHS0yu0GW9YGFd/CRg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.slim.min.js"
integrity="sha512-sNylduh9fqpYUK5OYXWcBleGzbZInWj8yCJAU57r1dpSK9tP2ghf/SRYCMj+KsslFkCOt3TvJrX2AV/Gc3wOqA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.js"
integrity="sha512-+k1pnlgt4F1H8L7t3z95o3/KO+o78INEcXTbnoJQ/F2VqDVhWoaiVml/OEHv9HsVgxUaVW+IbiZPUJQfF/YxZw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"
integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js"
integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.min.js"
integrity="sha512-aNMyYYxdIxIaot0Y1/PLuEu3eipGCmsEUBrUq+7aVyPGMFH8z0eTP0tkqAvv34fzN6z+201d3T8HPb1svWSKHQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.js"
integrity="sha512-FSNQjUUq97PtDnAJyMlBTH8EhV4o5X5FLVbzS9ttrdEVVbmrssJBh/PgXFQbxS+6yYx5n5irOj7de6Th0TRQZA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YetnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./css/introduction.css">
<link rel="stylesheet" href="./css/style.css" />
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="./css/sweet-alert.css" />
<style>
ul {
list-style-type: none;
}
</style>
<!--Preloade-->
<style>
/*Preloader CSS*/
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
justify-content: center;
align-items: center;
background-color: black;
transition: opacity 2s ease-out, visibility 2s ease-out;
opacity: 1;
visibility: visible;
z-index: 9999;
}
#preloader.hidden {
opacity: 0;
visibility: hidden;
}
#loader {
display: block;
position: relative;
width: 150px;
height: 150px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #55a5ea;
animation: spin 3s linear infinite;
}
#loader:before {
content: "";
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #3fbcc0c6;
animation: spin 3s linear infinite;
}
#loader:after {
content: "";
position: absolute;
top: 15px;
left: 15px;
right: 15px;
bottom: 15px;
border-radius: 50%;
border: 3px solid transparent;
border-top-color: #fff;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<!--Cursor-->
<style>
.circle {
z-index: 10000;
width: 20px;
height: 20px;
border-radius: 50%;
pointer-events: none;
animation: colors 5s infinite;
position: fixed;
transform: translate(-50%, -50%);
}
.circle::before {
content: "";
position: fixed;
width: 50px;
height: 50px;
opacity: 0.2;
transform: translate(-30%, -30%);
border-radius: 50%;
}
</style>
<script>
function redirectToReadme() {
window.location.href =
"https://github.com/EternoSeeker/gameoflife/blob/main/README.md";
}
function redirectToFeedback() {
window.location.href = "feedback.html";
}
function redirectToFAQ() {
window.location.href = "faq.html";
}
</script>
</head>
<body>
<div class="right-social-icn">
<!-- <div class="footer-left-Social-icon-container"> -->
<div class="footer-left-social-icons soc1">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" fill="#007b00" viewBox="0 0 32 32">
<path d="M 19.253906 2 C 15.311906 2 13 4.0821719 13 8.8261719 L 13 13 L 8 13 L 8 18 L 13 18 L 13 30 L 18 30 L 18 18 L 22 18 L 23 13 L 18 13 L 18 9.671875 C 18 7.884875 18.582766 7 20.259766 7 L 23 7 L 23 2.2050781 C 22.526 2.1410781 21.144906 2 19.253906 2 z"></path></svg></a>
</div>
<div class="footer-left-social-icons soc2">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" fill="#007b00" viewBox="0 0 32 32">
<path d="M 11.46875 5 C 7.917969 5 5 7.914063 5 11.46875 L 5 20.53125 C 5 24.082031 7.914063 27 11.46875 27 L 20.53125 27 C 24.082031 27 27 24.085938 27 20.53125 L 27 11.46875 C 27 7.917969 24.085938 5 20.53125 5 Z M 11.46875 7 L 20.53125 7 C 23.003906 7 25 8.996094 25 11.46875 L 25 20.53125 C 25 23.003906 23.003906 25 20.53125 25 L 11.46875 25 C 8.996094 25 7 23.003906 7 20.53125 L 7 11.46875 C 7 8.996094 8.996094 7 11.46875 7 Z M 21.90625 9.1875 C 21.402344 9.1875 21 9.589844 21 10.09375 C 21 10.597656 21.402344 11 21.90625 11 C 22.410156 11 22.8125 10.597656 22.8125 10.09375 C 22.8125 9.589844 22.410156 9.1875 21.90625 9.1875 Z M 16 10 C 12.699219 10 10 12.699219 10 16 C 10 19.300781 12.699219 22 16 22 C 19.300781 22 22 19.300781 22 16 C 22 12.699219 19.300781 10 16 10 Z M 16 12 C 18.222656 12 20 13.777344 20 16 C 20 18.222656 18.222656 20 16 20 C 13.777344 20 12 18.222656 12 16 C 12 13.777344 13.777344 12 16 12 Z"></path></svg></a>
</div>
<div class="footer-left-social-icons soc3">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" fill="#007b00" viewBox="0 0 24 24">
<path d="M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"></path></svg></a>
</div>
<div class="footer-left-social-icons soc4">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" fill="#007b00" viewBox="0 0 24 24">
<path d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.167 6.839 9.481.5.092.684-.217.684-.484 0-.238-.009-.866-.014-1.7-2.782.604-3.37-1.338-3.37-1.338-.455-1.156-1.112-1.465-1.112-1.465-.908-.621.069-.608.069-.608 1.003.07 1.532 1.03 1.532 1.03.893 1.532 2.344 1.09 2.915.832.091-.645.35-1.086.635-1.335-2.22-.251-4.555-1.11-4.555-4.937 0-1.09.39-1.983 1.032-2.68-.103-.252-.448-1.267.098-2.636 0 0 .837-.268 2.74 1.02A9.432 9.432 0 0112 6.73c.84.003 1.686.113 2.48.33 1.902-1.288 2.738-1.02 2.738-1.02.547 1.369.202 2.384.1 2.636.643.697 1.03 1.59 1.03 2.68 0 3.836-2.34 4.684-4.567 4.927.359.308.678.916.678 1.847 0 1.334-.012 2.411-.012 2.737 0 .268.18.581.688.482C19.135 20.164 22 16.417 22 12c0-5.523-4.477-10-10-10z"></path>
</svg>
</a>
</div>
<div class="footer-left-social-icons soc5">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24" height="24" fill="#007b00" viewBox="0 0 448 512">
<!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
<path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"></path>
</svg>
</a>
</div>
<!-- </div> -->
</div>
<div class="circle-container">
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 1"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.95"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 1"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.95"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 1"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.95"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
<div
class="circle"
style="background-color: #55a5ea; left: 504px; top: 59px; scale: 0.9"
></div>
</div>
<div id="preloader">
<div id="loader"></div>
</div>
<div class="introduction-series" id="intro-series">
<div class="intro-page" id="page1">
<div class="popup" id="popup1">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Welcome</div>
<div class="intro-content"> Let's get started with Conway's game of life!</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(2)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(2)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page2">
<div class="popup" id="popup2">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Grid</div>
<div class="intro-content">Click on a cell in the grid to toggle between dead and alive state.</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(1)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(3)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(1)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(3)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page3">
<div class="popup" id="popup3">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Speed settings</div>
<div class="intro-content">Increase or decrease the speed of the simulation from these buttons</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(2)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(4)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(2)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(4)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page4">
<div class="popup" id="popup4">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Random</div>
<div class="intro-content">Randomly make a certain percentage of the grid alive</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(3)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(5)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(3)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(5)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page5">
<div class="popup" id="popup5">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Grid height</div>
<div class="intro-content">Specify the number of tiles in the height of the grid</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(4)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(6)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(4)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(6)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page6">
<div class="popup" id="popup6">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Settings</div>
<div class="intro-content">Change more specifications of the game like randomness of the simulation here </div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(5)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(7)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(5)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(7)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page7">
<div class="popup" id="popup7">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Presets</div>
<div class="intro-content">Discover preset arrangements and run them in the simulation</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(6)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(8)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(6)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(8)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page8">
<div class="popup" id="popup8">
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">Start/Pause</div>
<div class="intro-content">After you are satisfied with the pattern on grid, press this button to start the simulation</div>
<div class="bottom-btns">
<button class="intro-bottom-btn" id="pop-skip" onclick="closeIntroSeries()">Skip</button>
<button class="intro-bottom-btn" id="pop-prev" onclick="showBox(7)">Prev</button>
<button class="intro-bottom-btn" id="pop-next" onclick="showBox(9)">Next</button>
</div>
<div class="bottom-symbols">
<button class="symbolintro" onclick="closeIntroSeries()"><i class="fa-solid fa-forward"></i></button>
<button class="symbolintro" onclick="showBox(7)" id="prev-symbol"><i class="fa-solid fa-arrow-left"></i></button>
<button class="symbolintro" onclick="showBox(9)"><i class="fa-solid fa-arrow-right"></i></button>
</div>
</div>
</div>
<div class="intro-page" id="page9">
<div class="popup" id="popup9">
<!-- end wale ka code, beech mein aur daalna -->
<span class="popup-cross" onclick="closeIntroSeries()">X</span>
<div class="intro-head">End</div>
<div class="intro-content">Now youre all set and ready. Have fun!</div>
<div class="bottom-btn-end">
<button class="intro-bottom-btn" id="pop-end" onclick="closeIntroSeries()">Start</button>
</div>
</div>
</div>
</div>
<div class="game-settings">
<button id="toggleButton"><i class="fa-solid fa-bars"></i></button>
<div class="sidenav" id="sideNav">
<div class="other-settings animate" class="hov"><i class="fa-solid fa-gear"></i> Settings</div>
<div class="cross">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="16"
height="16"
color="#ffffff"
fill="none"
>
<path
d="M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</div>
<div class="other-settings-container animate">
<div class="toggle-item">
<label for="grid-toggle" class="toggle-label">
<span class="toggle-switch">
<input type="checkbox" checked id="grid-toggle" class="toggle-input" onchange="toggleGrid()">
<span class="toggle-slider"></span>
</span>
<span class="toggle-text">Gridlines</span>
</label>
</div>
<div class="toggle-item">
<label for="warp-on-edges" class="toggle-label">
<span class="toggle-switch">
<input type="checkbox" checked id="warp-on-edges" class="toggle-input" onchange="toggleWarp()">
<span class="toggle-slider"></span>
</span>
<span class="toggle-text">Warp on Edges</span>
</label>
</div>
<div class="toggle-item">
<label for="music-toggle" class="toggle-label">
<span class="toggle-switch">
<input type="checkbox" id="music-toggle" class="toggle-input" onchange="toggleMusic()">
<span class="toggle-slider"></span>
</span>
<span class="toggle-text">Music</span>
</label>
</div>
<p class="randomness-container">
<label class="randomness-value" style="cursor: pointer"
><span class="hov">Randomness</span>
<span><span id="randomValOutput">20</span>%</span>
</label>
<input
type="range"
min="0"
max="100"
value="20"
class="range"
id="randomVal"
/>
</p>
</div>
<div class="color-themes has-dropdown animate" style="cursor: pointer">
<i class="fa-solid fa-palette"></i> Themes
</div>
<div class="themes-container animate">
<ul>
<li>
<div>
<input
type="radio"
class="color-label"
id="red-theme"
name="theme"
onclick="selectTheme('red')"
/>
<label for="red-theme" class="color-label">Red</label>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
class="color-label"
id="green-theme"
name="theme"
onclick="selectTheme('green')"
/>
<label
for="green-theme"
class="color-label"
style="cursor: pointer"
>Green</label
>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
checked
type="radio"
class="color-label"
id="blue-theme"
name="theme"
onclick="selectTheme('blue')"
/>
<label
for="blue-theme"
class="color-label"
style="cursor: pointer"
>Blue</label
>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
class="color-label"
id="purple-theme"
name="theme"
onclick="selectTheme('purple')"
/>
<label
for="purple-theme"
class="color-label"
style="cursor: pointer"
>Purple</label
>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
class="color-label"
id="darkcyan-theme"
name="theme"
onclick="selectTheme('darkCyan')"
/>
<label
for="darkcyan-theme"
class="color-label"
style="cursor: pointer"
>Dark Cyan</label
>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
id="black-theme"
class="color-label"
name="theme"
onclick="selectTheme('black')"
/>
<label
for="black-theme"
class="color-label"
style="cursor: pointer"
>Black & White</label
>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
id="neon-theme"
class="color-label"
name="theme"
onclick="selectTheme('neon')"
/>
<label for="neon-theme" class="color-label">Dark Neon</label>
</div>
</li>
</ul>
<ul>
<li>
<div>
<input
type="radio"
id="cyberpunk-theme"
class="color-label"
name="theme"
onclick="selectTheme('cyberpunk')"
/>
<label for="cyberpunk-theme" class="color-label"
>Cyberpunk</label
>
</div>
</li>
</ul>
<!-- new theme sunset -->
<ul>
<li>
<div>
<input
type="radio"
class="color-label"
id="sunset-theme"
name="theme"
onclick="selectTheme('sunset')"
/>
<label for="sunset-theme" class="color-label"
>Sunset</label
>
</div>
</li>
</ul>
<div>
<button id="custom-theme-btn" class="has-dropdown animate">
Switch to Custom Theme
</button>
<div id="custom-colors-container" style="display: none">
<div class="custom-settings-container animate">
<label for="primary-color">Primary Text:</label>
<input type="color" id="primary-color" value="#0f045a" />
<label for="theme-color1">Secondary Text:</label>
<input type="color" id="theme-color1" value="#7582b2" />
<label for="theme-color2">Text Highlight:</label>
<input type="color" id="theme-color2" value="#036c96" />
<label for="theme-color3">Text Bubble:</label>
<input type="color" id="theme-color3" value="#ebf2ff" />
<label for="shadow-color1">Primary Shadow:</label>
<input type="color" id="shadow-color1" value="#352a7e" />
<label for="border-color1">Navbar Colour:</label>
<input type="color" id="border-color1" value="#080126" />
<label for="shadow-color2">Navbar Highlight:</label>
<input type="color" id="shadow-color2" value="#101536" />
<label for="background-col">Background Color:</label>
<input type="color" id="background-col" value="#c6cede" />
<label for="scrollbar-color">Scrollbar Color:</label>
<input type="color" id="scrollbar-color" value="#77bdec" />
<label for="alive-color">Alive Cell:</label>
<input type="color" id="alive-color" value="#00246B" />
<label for="dead-color">Dead Cell:</label>
<input type="color" id="dead-color" value="#CADCFC" />
</div>
<button id="apply-custom-theme-btn" class="custom-button">
Apply Theme
</button>
<button id="reset-theme-btn" class="custom-button">
Reset to Default
</button>
</div>
</div>
<div>
<button id="gradient-theme-btn" class="has-dropdown animate">
Switch to Gradient Theme
</button>
<div id="gradient-colors-container" style="display: none">
<div class="gradient-settings-container animate">
<label for="Color 1 :">Color 1 :</label>
<input type="color" id="color1" value="#ff7e5f" />
<label for="Color 2 :">Color 2 :</label>
<input type="color" id="color2" value="#feb47b" />
<p>Gradient Direction: <span id="angleValue">180</span>°</p>
<input
type="range"
id="slopeSlider"
min="0"
max="360"
class="range"
value="180"
/>
</div>
<button id="apply-gradient-btn" class="gradient-button">
Apply Gradient
</button>
<button id="remove-gradient-btn" class="gradient-button">
Remove Gradient
</button>
<button id="remove-cell-color-btn" class="gradient-button">
Reset Cell Colors
</button>
</div>
</div>
</div>
<div class="presets has-dropdown animate" style="cursor: pointer">
<i class="fa-solid fa-list"></i> Presets
</div>
<div class="presets-container animate">
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('GliderGun')"
>
<i class="fa-solid fa-gun"></i> Glider Gun
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('smallGlider')"
>
<i class="fa-brands fa-glide"></i>
Small Glider
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('bigGlider')"
>
<i class="fa-brands fa-glide-g"></i>
Big Glider
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('Pulsar')"
>
<i class="fa-solid fa-stairs"></i>
Pulsar
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('CircleOfFire')"
>
<i class="fa-solid fa-circle-plus"></i>
Circle of Fire
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('Quadpole')"
>
<i class="fa-solid fa-bolt"></i>
Quadpole
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('Spider')"
>
<i class="fa-solid fa-spider"></i>
Spider
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('MiddleweightSpaceship')"
>
<i class="fa-solid fa-rocket"></i>
Spaceship
</button>
</li>
</ul>
<ul>
<li>
<button
class="presets-list"
onclick="drawPresetPattern('Boat-Tie')"
>
<i class="fa-solid fa-sailboat"></i>
Boat-Tie
</button>
</li>
</ul>
<!-- adding new presets -->
<ul>
<li>
<button class="presets-list" onclick="drawPresetPattern('Pentadecathlon')">
<i class="fa-solid fa-solar-panel"></i> Pentadecathlon
</button>
</li>
</ul>
</div>
<div class="history has-dropdown animate" style="cursor: pointer">
<i class="fa-solid fa-clock"></i> History
</div>
<!-----game rules-------------------------------------------------------->
<style>
/* Basic styling for the popup */
#popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 800px;
height: auto;
max-height: 90vh;
overflow-y: auto;
color: black;
padding: 20px;
background-color: rgba(255, 255, 255, 0.95); /* Translucent background */
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
z-index: 1000;
border-radius: 10px;
}
/* Dark background behind the popup */
#popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
}
/* Close button style */
.close-btn {
position: absolute;
top: 14px;
right: 17px;
cursor: pointer;
color: black;
font-size: 1.5rem;
}
.button1:hover {
background-color: #0056b3;
}
/* Responsive design */
@media (max-width: 600px) {
#popup {
width: 95%;
padding: 10px;
}
.close-btn {
font-size: 1.2rem;
}
}
/* Ensure a smooth transition */
#popup, #popup-overlay {
transition: all 0.3s ease-in-out;
}
</style>
</head>
<body>
<div class="game-rules has-dropdown animate">
<button
class="game-rules has-dropdown"
style="margin-left: -1.7rem; cursor: pointer"
id="game-rules-btn"
>
<i class="fa-solid fa-chess"></i> Game Rules
</button>
</div>
<!-- Popup Overlay -->
<div id="popup-overlay"></div>
<!-- Popup Content -->
<div id="popup">
<i class="fa-solid fa-times close-btn" id="close-btn"></i>
<h2>Game Rules</h2>
<p>Here are the basic rules of the game...</p>
<h4>How To Play?</h4>
<hr />
<p>Conway's Game of Life, or simply "Life," is a cellular automaton devised by British mathematician John Horton Conway in 1970.
It is a zero-player game, meaning its evolution is determined by its initial state, requiring no further input. Players interact with
the game by creating an initial configuration and observing how it evolves. The game is Turing complete and can simulate a
universal constructor or any other Turing machine.</p>
<hr />
<h4>The Universe</h4>
<p>The universe of the Game of Life is an infinite, two-dimensional orthogonal grid of square cells,
Each cell is in one of two possible states, ALIVE or DEAD.
Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent.</p>
<hr />
<h4>Rules</h4>
<ol>
<li>Any live cell with fewer than two live neighbors dies, as if by underpopulation.</li>
<li>Any live cell with two or three live neighbors lives on to the next generation.</li>
<li>Any live cell with more than three live neighbors dies, as if by overpopulation.</li>
<li>Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.</li>
</ol>
<p>The first generation is created by applying the above rules simultaneously to every cell in the seed, alive or dead; births and
deaths occur simultaneously, and the discrete moment at which this happens is sometimes called a tick. Each generation is a pure function
of the preceding one.</p>
<button class="button1" id="more-btn" style="margin-top: 20px;
padding: 10px 20px;
background-color: #007BFF;
color: white;