-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1002 lines (903 loc) · 55.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Legacies of Men | Index</title>
<link rel="icon" type="image/png" href="./Logo_Files/lolfav.png" />
<!-- Meta Tags -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Legacies of Men is a 100% forever-free, non-profit, non-religious, non-political COMPREHENSIVE men's mental wellness MOVEMENT, engineered to be the ONLY support system GOOD men from ALL walks of life will ever need." />
<meta name="keywords" content="Legacies of Men, men's mental wellness, mental health, suicide prevention, non-profit, non-religious, non-political" />
<meta name="author" content="Legacies of Men" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="7 days" />
<meta name="subject" content="Suicide and Long Term Therapy for Male or Individuals who Identify as Male" />
<meta name="copyright" content="Legacies Of Men | Joesph Truax | Abdullah Khan | and Partners" />
<meta name="language" content="EN" />
<meta name="topic" content="Mental Health" />
<meta name="classification" content="Non-Profit Organization" />
<meta name="designer" content="Abdullah Khan,[email protected] " />
<meta name="owner" content="Joesph Truax, [email protected]" />
<meta name="url" content="http://www.websiteaddrress.com" />
<meta name="identifier-URL" content="http://www.legaciesofmen.org" />
<meta name="pagename" content="Legacies Of Men | Index" />
<meta name="coverage" content="Worldwide" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="revisit-after" content="7 days" />
<meta name="target" content="all" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="cache" />
<!-- Open Graph (OG) Tags -->
<meta property="og:title" content="Legacies of Men | Index" />
<meta property="og:description" content="Legacies of Men is a 100% forever-free, non-profit, non-religious, non-political COMPREHENSIVE men's mental wellness MOVEMENT, engineered to be the ONLY support system GOOD men from ALL walks of life will ever need. Legacies of Men is a movement to help men live their best lives through group meetings, online communities, and resources." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://legaciesofmen.org" />
<meta property="og:image" content="https://legaciesofmen.org/Logo_Files/sof.png" />
<meta property="og:site_name" content="Legacies of Men" />
<meta name="fb:page_id" content="123456789" />
<meta name="application-name" content="Legacies of Men" />
<meta name="og:email" content="[email protected]" />
<meta name="og:phone_number" content="555-1234" />
<meta name="og:fax_number" content="+1-555-5678" />
<meta name="og:country-name" content="USA" />
<!-- Apple Meta Tags -->
<meta name="apple-mobile-web-app-title" content="Legacies Of Men Organization" />
<!-- New in iOS6 -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<link href="./Logo_Files/Favicon.png" rel="apple-touch-startup-image" />
<meta http-equiv="Page-Enter" content="RevealTrans(Duration=2.0,Transition=2)" />
<meta http-equiv="Page-Exit" content="RevealTrans(Duration=3.0,Transition=12)" />
<meta name="mssmarttagspreventparsing" content="true" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta name="msapplication-starturl" content="https://legaciesofmen.org/" />
<meta name="msapplication-window" content="width=800;height=600" />
<meta name="msapplication-navbutton-color" content="red" />
<meta name="application-name" content="Legacies of Men" />
<meta name="msapplication-tooltip" content="Legacies of Men - Helping Men Live Their Best Lives" />
<meta name="msapplication-task" content="name=Meetings;action-uri=/meetings/;icon-uri=/images/meetings.ico" />
<meta name="msapplication-task" content="name=Community;action-uri=/r/GuyCry/;icon-uri=/images/community.ico" />
<meta name="msapplication-task" content="name=Articles;action-uri=/articles/;icon-uri=/images/articles.ico" />
<meta name="msapplication-task" content="name=Podcast;action-uri=/podcast/;icon-uri=/images/podcast.ico" />
<meta name="msvalidate.01" content="6E3AD52DC176461A3C81DD6E98003BC9" />
<meta http-equiv="cleartype" content="on" />
<!-- Twitter Card Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Legacies of Men | Index" />
<meta name="twitter:description" content="Legacies of Men is a 100% forever-free, non-profit, non-religious, non-political COMPREHENSIVE men's mental wellness MOVEMENT, engineered to be the ONLY support system GOOD men from ALL walks of life will ever need." />
<meta name="twitter:image" content="https://legaciesofmen.org/Logo_Files/sof.png" />
<meta name="twitter:site" content="@LegaciesOfMen" />
<meta name="twitter:creator" content="@JoeTruax" />
<!-- Schema.org Markup -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Legacies of Men",
"url": "https://legaciesofmen.org",
"logo": "https://legaciesofmen.org/Logo_Files/lolfav.png",
"description": "Legacies of Men is a 100% forever-free, non-profit, non-religious, non-political COMPREHENSIVE men's mental wellness MOVEMENT, engineered to be the ONLY support system GOOD men from ALL walks of life will ever need.",
"publisher": {
"@type": "Organization",
"name": "Legacies Of Men Organization",
"logo": {
"@type": "ImageObject",
"url": "https://legaciesofmen.org/Logo_Files/Favicon.png"
}
},
"mainEntity": [
{
"@type": "WebPage",
"name": "About Us",
"url": "https://www.legaciesofmen.org/about.html"
},
{
"@type": "WebPage",
"name": "Resources",
"url": "https://www.legaciesofmen.org/resources.html"
},
{
"@type": "WebPage",
"name": "Contact Us",
"url": "https://www.legaciesofmen.org/contact.html"
}
],
"sameAs": [
"https://www.reddit.com/r/GuyCry/",
"https://www.cryonceaweek.com/",
"https://open.spotify.com/show/65mhyxnTbmFtKSCJEk00zr",
"https://www.reddit.com/r/GuyCry/?rdt=62026",
"https://opencollective.com/legacies-of-men",
"https://twitter.com/LegaciesOfMen",
"https://www.linkedin.com/company/legacies-of-men-llc?trk=public_profile_volunteering-position_profile-section-card_full-click",
]
}
</script>
<script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool@latest'></script>
<!-- Favicons -->
<link rel="icon" type="image/png" href="./Logo_Files/lolfav.png" />
<!-- Tailwind CSS Convert Code to generated CSS (https://play.tailwindcss.com/) -->
<!-- Keep this on until code is finialized -->
<script src="https://cdn.tailwindcss.com" type="text/javascript" defer></script>
<!-- Font Awesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
<!-- Link Stylesheet -->
<link rel="stylesheet" type="text/css" href="./stylesheets/styles.css" />
</head>
<body>
<div id="accept-terms" class="fixed left-0 top-0 z-50 flex h-full w-full items-center justify-center bg-gray-900" style="display: none;">
<div class="accept-terms-wrapper h-[80%] max-w-[90%] overflow-y-auto rounded-lg bg-white p-8 shadow-lg sm:max-w-[80%] md:h-[70%] md:max-w-[70%] lg:h-[60%] lg:max-w-[60%]">
<div class="accept-terms-content flex flex-col items-center">
<img src="./Logo_Files/sof.png" alt="Desktop Banner Image" class="mb-8 h-auto max-w-[300px] sm:max-w-[350px] md:block md:max-w-[380px]" loading="lazy" />
<h2 class="mb-4 text-2xl font-bold">Terms and Conditions</h2>
<div class="mb-8 text-gray-700">
<p>By pressing the "Load" button below, you agree to our <a href="legal.html" class="text-blue-500 hover:underline">Legal Policies</a>.</p>
<br />
<p>If this is an emergency, please don't wait and call the national suicide helpline at <strong>1-800-273-8255</strong>. Your call will be answered by a trained crisis counselor who can provide free and confidential support 24/7.</p>
<br />
<p>If this is a different type of emergency, please call <strong>911</strong> immediately.</p>
</div>
<button id="loadButton" class="rounded-full bg-orange-500 px-6 py-3 text-white transition-colors duration-300 hover:bg-orange-600">Load</button>
</div>
</div>
</div>
<div class="main-content hidden" id="mainContent">
<nav class="navbar fixed left-0 right-0 top-0 z-50 bg-white shadow-lg dark:bg-gray-800 dark:text-gray-200">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="flex h-16 justify-between">
<div class="flex items-center">
<img src="./Logo_Files/Favicon.png" alt="Brand Logo" class="mr-2 h-8" />
<a href="index.html" class="text-2xl font-bold text-orange-500 dark:text-orange-400">Legacies Of Men</a>
</div>
<div class="hidden items-center space-x-8 sm:flex">
<a href="about.html" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-info-circle mr-2"></i>
<span>About</span>
</a>
<a href="javascript:void(0)" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-balance-scale mr-2"></i>
<span>Tenets</span>
</a>
<a href="javascript:void(0)" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-newspaper mr-2"></i>
<span>News</span>
</a>
<a href="#join" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-user-plus mr-2"></i>
<span>Join</span>
</a>
<a href="sponsor.html" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-hand-holding-usd mr-2"></i>
<span>Sponsor</span>
</a>
<a href="javascript:void(0)" class="desktop-nav-link text-gray-500 transition duration-150 ease-in-out hover:text-orange-600 dark:text-gray-400 dark:hover:text-orange-400">
<i class="fas fa-book mr-2"></i>
<span>Resources</span>
</a>
</div>
<div class="hidden items-center sm:flex">
<a href="http://www.google.com" refl="nofollow" class="rounded bg-red-500 px-4 py-2 font-bold text-white transition duration-150 ease-in-out hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700">
<i class="fas fa-sign-out-alt mr-2"></i>
<span class="escape-span">Escape</span>
</a>
</div>
<div class="-mr-2 flex items-center sm:hidden">
<a href="http://www.google.com" rel="nofollow" class="mr-2 rounded bg-red-500 px-4 py-2 font-bold text-white transition duration-150 ease-in-out hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700">
<i class="fas fa-sign-out-alt"></i>
</a>
<button type="button" class="mobile-menu-button inline-flex items-center justify-center rounded-md p-3 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-orange-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300" aria-expanded="false" id="mobile-menu-button">
<span class="sr-only">Open main menu</span>
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</div>
</div>
<div class="mobile-menu closed sm:hidden" id="mobile-menu">
<div class="space-y-1 pb-3 pt-2">
<a href="about.html" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-info-circle mr-2"></i>
About
</a>
<a href="javascript:void(0)" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-balance-scale mr-2"></i>
Tenets
</a>
<a href="javascript:void(0)" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-newspaper mr-2"></i>
News
</a>
<a href="#join" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-user-plus mr-2"></i>
Join
</a>
<a href="sponsor.html" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-hand-holding-usd mr-2"></i>
Sponsor
</a>
<a href="javascript:void(0)" class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base font-medium text-gray-500 hover:border-orange-500 hover:bg-gray-50 hover:text-orange-600 focus:border-orange-500 focus:bg-gray-50 focus:text-orange-600 focus:outline-none dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-orange-400 dark:focus:bg-gray-700 dark:focus:text-orange-400">
<i class="fas fa-book mr-2"></i>
Resource
</a>
</div>
</div>
</nav>
<div class="btn-plus">
<i class="fas fa-plus"></i>
</div>
<div class="bubble-container">
<div class="bubble">
<i class="fas fa-arrow-up"></i>
</div>
<div class="bubble bg-green-500 hover:bg-green-600">
<i class="fas fa-arrow-down"></i>
</div>
</div>
<section id="top" class="bg-light-orange flex h-screen items-center justify-center">
<div class="relative h-full w-full">
<div class="absolute inset-0 bg-cover bg-center" style="background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20rect%20%7B%20fill%3A%20rgba(0,0,0,0.212)%3B%20%7D%20%3C%2Fstyle%3E%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%20%3Crect%20x%3D%2250%25%22%20y%3D%2250%25%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%3C%2Fsvg%3E')"></div>
<div class="relative z-10 mx-auto flex h-full max-w-7xl items-center justify-center px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-3xl font-bold text-orange-500 sm:text-4xl lg:text-5xl">
<span class="animated-word">In</span>
<span class="animated-word">these</span>
<span class="animated-word">seats,</span>
<span class="animated-word">at</span>
<span class="animated-word">these</span>
<span class="animated-word">FOREVER-FREE</span>
<span class="animated-word">meetings,</span>
<span class="animated-word">men's</span>
<span class="animated-word">lives</span>
<span class="animated-word">GREATLY</span>
<span class="animated-word">improve.</span>
</h2>
</div>
</div>
</div>
</section>
<!-- New Section -->
<section id="introduction" class="relative overflow-hidden">
<div class="container mx-auto flex flex-col px-4 py-20 sm:py-32 md:flex-row md:items-center">
<div class="md:w-1/2 md:pr-12">
<h2 class="mb-6 text-3xl font-bold text-gray-800 sm:text-4xl">Introducing the Creator</h2>
<p class="mb-8 text-gray-600">The suicide rate of men is currently 3.9 times higher than women. In the following 2-minute video, meet Joe Truax; and learn how he and his team are working to GREATLY reduce that number.</p>
<div class="relative inline-block">
<button class="rounded-full border-2 border-orange-500 bg-white px-6 py-2 font-semibold text-gray-800 transition duration-300 ease-in-out hover:text-orange-500" id="transcript-button"><i class="fas fa-closed-captioning mr-2"></i> Show Transcript</button>
</div>
</div>
<div class="mt-8 md:mt-0 md:w-1/2">
<div class="relative">
<div class="absolute inset-0 overflow-hidden rounded-xl shadow-lg">
<div class="absolute inset-0 bg-gradient-to-r from-orange-500 to-orange-600 opacity-20 blur-lg"></div>
</div>
<div class="relative overflow-hidden rounded-xl">
<iframe class="aspect-video w-full" width="560" height="315" src="https://www.youtube.com/embed/CEZ_TaWelRE?si=ULwZhTIRdOYKDAXa" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</section>
<!-- Transcript Modal -->
<div class="fixed inset-0 z-50 hidden overflow-y-auto" id="transcript-modal" aria-labelledby="transcript-modal-title" role="dialog" aria-modal="true">
<div class="flex min-h-screen items-end justify-center px-4 pb-20 pt-4 text-center sm:block sm:p-0">
<div class="fixed inset-0 bg-black bg-opacity-75 transition-opacity" aria-hidden="true"></div>
<span class="hidden sm:inline-block sm:h-screen sm:align-middle" aria-hidden="true">​</span>
<div class="inline-block transform overflow-hidden rounded-lg bg-white text-left align-bottom shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:align-middle">
<div class="bg-white px-6 pb-4 pt-5 sm:p-8 sm:pb-6">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
<h3 class="text-2xl font-bold leading-6 text-gray-800" id="transcript-modal-title">Legacies of Men: A Movement for Men's Mental Wellness</h3>
<div class="mt-4">
<p class="text-base font-medium text-gray-700"><span class="font-bold text-orange-600">Joe Truax,</span> the founder of Legacies of Men, is a kind, socially awkward 40-year-old man fighting to keep men alive during this mental health crisis. Legacies of Men is a 100% forever-free, non-profit, non-religious, non-political <span class="font-bold text-orange-600">COMPREHENSIVE men's mental wellness MOVEMENT</span>, engineered to be the <span class="font-bold text-orange-600">ONLY support system GOOD men from ALL walks of life will ever need</span>.</p>
<div class="mt-4">
<h4 class="text-lg font-bold text-gray-800">Our Goals:</h4>
<ul class="ml-6 list-disc text-gray-700">
<li>Prevent male suicide</li>
<li>Help men - and women by proxy - find and maintain non-toxic relationships</li>
<li>Unite communities worldwide</li>
</ul>
</div>
<div class="mt-4">
<h4 class="text-lg font-bold text-gray-800">Our Meetings:</h4>
<p class="text-base text-gray-700">There are <span class="font-bold text-orange-600">AT LEAST two meetings each week</span>. One is called Legacies of Men: Unburdened, which helps you become aware of and dispose of things in your life that don't benefit you. The other is called Legacies of Men: Growth, which helps you become the kind of man the world will <span class="font-bold text-orange-600">NEVER want to lose</span>.</p>
</div>
<div class="mt-4">
<h4 class="text-lg font-bold text-gray-800">Our Slogan:</h4>
<p class="text-base text-gray-700"><span class="font-bold text-orange-600">"Remembered For Good"</span> means two things: remembered for the good you've done, and remembered permanently.</p>
</div>
<div class="mt-4">
<h4 class="text-lg font-bold text-gray-800">What We Offer:</h4>
<p class="text-base text-gray-700">Legacies of Men is an <span class="font-bold text-orange-600">unrivaled support system</span> that will make your shoulders a little less burdened, or <span class="font-bold text-orange-600">hopefully a LOT less burdened</span>. The meetings are easy to follow along with, <span class="font-bold text-orange-600">free, lifesaving, life-changing</span>, and it's all being done because we care.</p>
</div>
<div class="mt-4">
<p class="text-base text-gray-700"><span class="font-bold text-orange-600">Come to a meeting and meet others like yourselves</span>. You come to one, you're probably gonna be at all the rest.</p>
</div>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-3 sm:flex sm:flex-row-reverse sm:px-8">
<button type="button" class="inline-flex w-full justify-center rounded-md border border-transparent bg-orange-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-orange-700 focus:outline-none focus:ring-2 focus:ring-orange-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm" id="close-transcript-modal">Close</button>
</div>
</div>
</div>
</div>
<!-- New Section for "As seen from" -->
<section id="As-seen-from" class="bg-white py-20">
<div class="container mx-auto px-4 text-center">
<h2 class="mb-6 text-3xl font-bold text-gray-800 sm:text-4xl">As seen from</h2>
<hr class="mx-auto mb-12 w-32 border-t-2 border-orange-500" />
<div class="grid grid-cols-1 gap-8 md:grid-cols-3">
<div class="image-container">
<a href="https://bit.ly/NewBirb" rel="nofollow" target="_blank" class="block">
<img src="./Logo_Files/NW.png" alt="Channel 1" class="rounded-lg" />
</a>
</div>
<div class="image-container">
<a href="https://bit.ly/SIHJ" rel="nofollow" target="_blank" class="block">
<img src="./Logo_Files/AM.png" alt="Channel 2" class="rounded-lg" />
</a>
</div>
<div class="image-container">
<a href="https://bit.ly/RTVMech" rel="nofollow" target="_blank" class="block">
<img src="./Logo_Files/rtv.jpg" alt="Channel 3" class="rounded-lg" />
</a>
</div>
</div>
</div>
</section>
<section id="numbers" class="bg-gray-100 py-20">
<div class="container mx-auto px-4 text-center">
<h2 class="mb-6 text-3xl font-bold text-gray-800 sm:text-4xl">By the Numbers</h2>
<hr class="mx-auto mb-12 w-32 border-t-2 border-orange-500" />
<div class="grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-4">
<div class="counter-container rounded-lg bg-white p-6 shadow-lg">
<div class="counter mb-2 text-4xl font-bold text-orange-500 sm:text-6xl" data-target="1.7"></div>
<p class="text-sm text-gray-600">In 2021, <span class="font-bold text-gray-800">1.7 million suicide attempts</span> occurred</p>
<!-- <button class="learn-more-btn mt-4 rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Learn More</button>
<div class="modal fixed inset-0 z-10 hidden overflow-y-auto">
<div class="flex min-h-screen items-center justify-center">
<div class="w-full max-w-md rounded-lg bg-white p-6 shadow-lg">
<h3 class="mb-4 text-2xl font-bold text-gray-800">1.7 Million Suicide Attempts</h3>
<p class="mb-4 text-gray-600">In 2021 alone, there were an estimated 1.7 million suicide attempts.</p>
<button class="close-modal rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Close</button>
</div>
</div>
</div> -->
</div>
<div class="counter-container rounded-lg bg-white p-6 shadow-lg">
<div class="counter mb-2 text-4xl font-bold text-orange-500 sm:text-6xl" data-target="48183"></div>
<p class="text-sm text-gray-600">Of those <span class="font-bold text-gray-800">attempts</span>, 48,183 died</p>
<!-- <button class="learn-more-btn mt-4 rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Learn More</button>
<div class="modal fixed inset-0 z-10 hidden overflow-y-auto">
<div class="flex min-h-screen items-center justify-center">
<div class="w-full max-w-md rounded-lg bg-white p-6 shadow-lg">
<h3 class="mb-4 text-2xl font-bold text-gray-800">48,183 Deaths by Suicide</h3>
<p class="mb-4 text-gray-600">In the same year, the Centers for Disease Control and Prevention (CDC) reported that 48,183 individuals in the United States died by suicide. This tragic statistic underscores the urgent need for improved mental health resources and support systems to prevent these devastating losses.</p>
<button class="close-modal rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Close</button>
</div>
</div>
</div> -->
</div>
<div class="counter-container rounded-lg bg-white p-6 shadow-lg">
<div class="counter mb-2 text-4xl font-bold text-orange-500 sm:text-6xl" data-target="39000"></div>
<p class="text-sm text-gray-600">And about <span class="font-bold text-gray-800">39,000 were men</span></p>
<!-- <button class="learn-more-btn mt-4 rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Learn More</button>
<div class="modal fixed inset-0 z-10 hidden overflow-y-auto">
<div class="flex min-h-screen items-center justify-center">
<div class="w-full max-w-md rounded-lg bg-white p-6 shadow-lg">
<h3 class="mb-4 text-2xl font-bold text-gray-800">39,000 Male Suicide Deaths</h3>
<p class="mb-4 text-gray-600">The CDC data shows that approximately 39,000 of the 48,183 suicide deaths in 2021 were among men. This highlights the disproportionate impact of suicide on the male population and the need for targeted mental health support and education programs for men.</p>
<button class="close-modal rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Close</button>
</div>
</div>
</div> -->
</div>
<div class="counter-container rounded-lg bg-white p-6 shadow-lg">
<div class="counter mb-2 text-4xl font-bold text-orange-500 sm:text-6xl" data-target="94"></div>
<p class="text-sm text-gray-600"><span class="font-bold text-gray-800">94% of People believe Suicide is Preventable</span>, and they're right</p>
<button class="learn-more-btn mt-4 rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Learn More</button>
<div class="modal fixed inset-0 z-10 hidden overflow-y-auto">
<div class="flex min-h-screen items-center justify-center">
<div class="w-full max-w-md rounded-lg bg-white p-6 shadow-lg">
<h3 class="mb-4 text-2xl font-bold text-gray-800">94% Believe Suicide is Preventable</h3>
<p class="mb-4 text-gray-600">This MOVEMENT is so much more than just suicide prevention. This is a lifeline and support network that men around the globe need. Come to a meeting. What you take away just might change your future. Click anywhere on our site to learn more about us!</p>
<button class="close-modal rounded-lg bg-orange-500 px-4 py-2 font-bold text-white hover:bg-orange-600">Close</button>
</div>
</div>
</div>
</div>
</div>
<p class="mt-6 text-sm text-gray-600">Source: <a href="https://afsp.org/suicide-statistics/" rel="nofollow" class="text-orange-500 hover:text-orange-700" target="_blank">American Foundation for Suicide Prevention</a></p>
</div>
</section>
<section id="join" class="bg-white py-20">
<div class="container mx-auto px-4 text-center">
<h2 class="mb-6 text-3xl font-bold text-gray-800 sm:text-4xl">Join Joe in Charleston, Illinois</h2>
<hr class="mx-auto mb-12 w-32 border-t-2 border-orange-500" />
<p class="mb-8 text-lg text-gray-600">Our first two pilot meetings are exclusive, with only 25 seats available. Don't worry if you miss out on the pilot—public sessions will start soon after. Use the first link to get updates for when your city starts meetings and the second to apply for the pilot. We promise, no spam, only essential updates.</p>
<div class="mb-12 flex flex-col justify-center space-x-4 space-y-4 sm:flex-row sm:space-y-0">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfZ67L-hH8AeekPyfYuqN93KP9KWsm7J2X87vPER4BZSh4vlQ/viewform" class="flex scale-100 transform items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md transition-transform duration-300 hover:scale-105 hover:bg-orange-600">
<i class="fas fa-plane mr-2"></i>
Get Updates
</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLScza4X4cM2KHk4XthfCnd7hmLwGeoIwgN_JkAU9n6Hpgq2d_w/viewform" class="flex scale-100 transform items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md transition-transform duration-300 hover:scale-105 hover:bg-orange-600">
<i class="fas fa-edit mr-2"></i>
Apply for Pilot
</a>
</div>
</div>
</section>
<section id="poster" class="bg-gray-100 py-20">
<div class="container mx-auto grid grid-cols-1 gap-10 px-4 md:grid-cols-2">
<div class="flex items-center">
<img src="./Logo_Files/CTW.jpg" alt="Cry Once a Week Poster" class="h-auto w-full rounded-lg shadow-lg" />
</div>
<div>
<h2 class="mb-6 text-3xl font-bold text-gray-800">Cry Once a Week</h2>
<p class="mb-8 text-lg text-gray-600">Science shows crying can relieve stress for a week. Click the button above to watch a tear-inducing video and take a moment to let yourself feel something. Refresh the page for a new video. Visit once a week for a stress-free life.</p>
<div class="flex flex-col justify-center space-x-4 space-y-4 sm:flex-row sm:space-y-0">
<a href="javascript:void(0)" class="flex items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md hover:bg-orange-600" id="watchVideoButton">
<i class="fas fa-video mr-2"></i>
Watch Video
</a>
<a rel="nofollow" target="_blank" href="https://u40648928.ct.sendgrid.net/ls/click?upn=u001.lgwUeCKp5pfYt-2B93lAss89L6mU5Nhtljtmm4f-2Bc6-2F4Ngmn1MSy-2Bu0o10B94N55qIJYjzLi0sqs2N1QoKnNU93wUvD977GyqubteORvtQdy3tosn8bu-2Bl9Xteysz11Y0W85fS_47wRSIFzKSJnlIbY0W7I14fY5Jd65qfFQ4sIaOD6WqR27DZyKYqxbZi4av6VQC88OXtugJt7hezGpzxxKaGS4L-2FSKeeGgS3zjCpCcHIgYXlSGxWMvwXoi87tLMihOWSMRRdatHrNH3Ng-2F-2BlPJN1VddIO5adBc6uTr6O9d8z4FB-2FewFdpQIRk0clwY07nuKA2Pq9yXopa8sSq9yF-2BepQcMg-3D-3D" class="flex items-center rounded-full bg-gray-500 px-6 py-3 font-bold text-white shadow-md hover:bg-gray-600">
<i class="fas fa-envelope mr-2"></i>
Get eBook
</a>
</div>
</div>
</div>
</section>
<section id="other" class="bg-white py-20">
<div class="container mx-auto px-4">
<div class="mb-8 flex items-center justify-between">
<h2 class="text-3xl font-bold text-gray-800">Join the Community</h2>
<a href="community.html" class="flex hidden items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md hover:bg-orange-600 sm:flex">
<i class="fab fa-reddit mr-2"></i>
Learn More about r/GuyCry
</a>
</div>
<p class="mb-12 text-lg text-gray-600">Check out both our 40,000 person online group, as well as our partner website:</p>
<div class="grid grid-cols-1 gap-8 md:grid-cols-2">
<div class="rounded-lg bg-gray-100 p-8 shadow-md">
<h3 class="mb-4 text-2xl font-bold text-gray-800">r/GuyCry on Reddit</h3>
<p class="mb-6 text-lg text-gray-600">Our thriving online community where men can openly discuss their emotions and support each other through the power of tears.</p>
<a href="https://www.reddit.com/r/GuyCry/" rel="nofollow" class="flex items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md hover:bg-orange-600">
<i class="fab fa-reddit mr-2"></i>
Join r/GuyCry
</a>
</div>
<div class="rounded-lg bg-gray-100 p-8 shadow-md">
<h3 class="mb-4 text-2xl font-bold text-gray-800">Cry Once a Week</h3>
<p class="mb-6 text-lg text-gray-600">Our partner website with more resources, articles, and tools to help you embrace the power of crying for a healthier, stress-free life.</p>
<a href="https://www.cryonceaweek.com/" rel="nofollow" class="flex items-center rounded-full bg-orange-500 px-6 py-3 font-bold text-white shadow-md hover:bg-orange-600">
<i class="fas fa-globe mr-2"></i>
Visit Website
</a>
</div>
</div>
</div>
</section>
<footer id="bottom" class="bg-gray-900 px-4 py-12 text-white sm:px-0">
<div class="container mx-auto">
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3">
<div>
<h3 class="mb-4 text-2xl font-bold">Useful Links</h3>
<ul class="space-y-2" id="main-menu">
<li><a href="legal.html" class="hover:text-orange-500">Legal Documentation</a></li>
<li><a href="volunteers.html" class="hover:text-orange-500">Volunteer</a></li>
<li><a href="contact.html" class="hover:text-orange-500">Press and Contact</a></li>
<li><a href="javascript:void(0)" class="hover:text-orange-500">Other</a></li>
</ul>
</div>
<div>
<h3 class="mb-4 text-2xl font-bold">Community</h3>
<p class="mb-4 text-gray-400" id="community-text">*Our meetings are open to all men and male-identified people, regardless of race, ethnicity, sexual orientation, and age.</p>
<div class="flex flex-col items-center space-y-4 sm:flex-row sm:space-x-4 sm:space-y-0">
<a href="https://www.reddit.com/r/GuyCry/" rel="nofollow" class="flex items-center rounded-full bg-orange-500 px-4 py-2 font-bold text-white shadow-md hover:bg-orange-600">
<i class="fab fa-reddit mr-2"></i>
r/GuyCry
</a>
<a href="contact.html" rel="nofollow" class="flex items-center rounded-full bg-gray-500 px-4 py-2 font-bold text-white shadow-md hover:bg-gray-600">
<i class="fas fa-envelope mr-2"></i>
Contact
</a>
</div>
</div>
<div>
<h3 class="mb-4 text-2xl font-bold">Search</h3>
<div class="flex items-center space-x-4">
<div class="relative w-full">
<input type="text" placeholder="Search..." class="w-full rounded-full bg-gray-800 pl-10 pr-4 py-2 text-white focus:outline-none focus:ring focus:ring-orange-500" id="search-input" />
<i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
</div>
<button class="rounded-full bg-orange-500 px-4 py-2 font-bold text-white shadow-md hover:bg-orange-600" id="clear-search">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div id="search-modal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
<div class="absolute inset-0 bg-gray-900 bg-opacity-75 backdrop-blur-sm"></div>
<div class="relative w-full max-w-2xl mx-4 bg-gray-900 rounded-lg shadow-xl p-6 border border-orange-500">
<h2 class="text-2xl font-bold mb-4 text-white">Search Results</h2>
<input type="text" id="modal-search-input" class="w-full rounded-full bg-gray-800 pl-4 py-2 text-white focus:outline-none focus:ring focus:ring-orange-500 mb-4" placeholder="Search...">
<div id="modal-search-results" class="mt-4 max-h-96 overflow-y-auto custom-scrollbar">
<ul id="modal-search-result-list"></ul>
</div>
<button id="close-modal" class="mt-4 bg-orange-500 hover:bg-orange-600 text-white font-bold py-2 px-4 rounded-full shadow-md transition-colors duration-200">Close</button>
<button id="modal-clear-search" class="mt-4 bg-orange-500 hover:bg-orange-600 text-white font-bold py-2 px-4 rounded-full shadow-md transition-colors duration-200">Clear Search</button>
</div>
</div>
</div>
<div class="mt-8 text-center text-gray-400">
<p>Legacies Of Men and Partners © 2023-Present</p>
<p class="sm:inline">
<span class="font-bold text-orange-500">Owned and Maintained by <a class="font-normal" href="https://www.linkedin.com/in/josephtruax" rel="nofollow">Joesph Traux</a></span>
</p>
<p class="sm:inline"><span class="font-normal text-gray-400"> and <a href="mailto:[email protected]" rel="nofollow">Abdullah Khan</a></span><span class="ml-2 rounded-full bg-gray-800 px-2 py-1 text-xs font-bold text-gray-400">Dev</span></p>
</div>
<div class="mt-8 flex justify-center space-x-4">
<button id="theme-toggler" class="rounded-full border-2 border-orange-500 px-4 py-2 text-2xl text-gray-400 transition duration-300 ease-in-out hover:text-orange-500 focus:outline-none">
<i class="fas fa-moon"></i>
</button>
<a href="/status" rel="nofollow" class="rounded-full border-2 border-orange-500 px-4 py-2 text-2xl text-gray-400 transition duration-300 ease-in-out hover:text-orange-500 focus:outline-none">
<i class="fas fa-chart-line"></i>
</a>
</div>
</div>
</footer>
</div>
<script type="text/javascript">
const mainContent = document.querySelector('.main-content');
const searchInput = document.getElementById('search-input');
const modalSearchInput = document.getElementById('modal-search-input');
const searchModal = document.getElementById('search-modal');
const modalSearchResultList = document.getElementById('modal-search-result-list');
const closeModalButton = document.getElementById('close-modal');
const clearSearchButton = document.getElementById('clear-search');
const modalClearSearchButton = document.getElementById('modal-clear-search');
function openSearchModal() {
searchModal.classList.remove('hidden');
modalSearchInput.value = searchInput.value;
modalSearchInput.focus();
document.body.style.overflow = 'hidden';
}
function closeSearchModal() {
searchModal.classList.add('hidden');
document.body.style.overflow = '';
}
function clearSearch() {
searchInput.value = '';
modalSearchInput.value = '';
modalSearchResultList.innerHTML = '';
}
searchInput.addEventListener('input', () => {
if (searchInput.value.trim().length > 0) {
openSearchModal();
performSearch(searchInput.value);
}
});
modalSearchInput.addEventListener('input', () => {
performSearch(modalSearchInput.value);
});
closeModalButton.addEventListener('click', closeSearchModal);
clearSearchButton.addEventListener('click', () => {
clearSearch();
closeSearchModal();
});
modalClearSearchButton.addEventListener('click', () => {
clearSearch();
modalSearchInput.focus();
});
function performSearch(searchTerm) {
searchTerm = searchTerm.trim().toLowerCase();
if (searchTerm.length > 0) {
const pageText = mainContent.innerText.toLowerCase();
const matches = findMatches(pageText, searchTerm);
displaySearchResults(matches);
} else {
modalSearchResultList.innerHTML = '';
}
}
function findMatches(text, searchTerm) {
const regex = new RegExp(searchTerm, 'gi');
const matches = text.matchAll(regex);
return Array.from(matches);
}
function displaySearchResults(matches) {
modalSearchResultList.innerHTML = '';
if (matches.length > 0) {
const usedExcerpts = new Set();
for (const match of matches) {
const start = Math.max(0, match.index - 50);
const end = Math.min(match.input.length, match.index + match[0].length + 50);
const excerpt = match.input.slice(start, end);
if (!usedExcerpts.has(excerpt)) {
usedExcerpts.add(excerpt);
const resultItem = document.createElement('li');
resultItem.classList.add('mb-4', 'bg-orange-600', 'rounded-lg', 'p-4', 'cursor-pointer', 'hover:bg-orange-700', 'transition-colors', 'duration-200');
const highlightedExcerpt = excerpt.replace(new RegExp(match[0], 'gi'), (matched) => `<span class="bg-white text-orange-600 font-semibold">${matched}</span>`);
resultItem.innerHTML = highlightedExcerpt;
resultItem.addEventListener('click', () => {
displayPopup(match, highlightedExcerpt);
});
modalSearchResultList.appendChild(resultItem);
}
}
} else {
modalSearchResultList.innerHTML = '<li class="text-white">No results found</li>';
}
}
function displayPopup(match, excerpt) {
const popup = document.createElement('div');
popup.classList.add('fixed', 'inset-0', 'z-50', 'flex', 'items-center', 'justify-center', 'bg-gray-900', 'bg-opacity-75', 'backdrop-blur-sm');
const popupContent = document.createElement('div');
popupContent.classList.add('bg-gray-900', 'p-8', 'rounded-lg', 'w-full', 'max-w-2xl', 'max-h-[80vh]', 'overflow-y-auto', 'custom-scrollbar', 'border', 'border-orange-500');
const popupText = document.createElement('div');
popupText.classList.add('text-white', 'whitespace-pre-wrap');
const matchStart = Math.max(0, match.index - 100);
const matchEnd = Math.min(match.input.length, match.index + match[0].length + 125);
const contextText = match.input.slice(matchStart, matchEnd);
const highlightedText = contextText.replace(new RegExp(match[0], 'gi'), (matched) => `<span class="bg-white text-orange-600 font-semibold">${matched}</span>`);
popupText.innerHTML = highlightedText;
const closeButton = document.createElement('button');
closeButton.classList.add('bg-orange-500', 'hover:bg-orange-600', 'text-white', 'font-bold', 'py-2', 'px-4', 'rounded-full', 'shadow-md', 'mt-4', 'transition-colors', 'duration-200');
closeButton.textContent = 'Close'
closeButton.addEventListener('click', () => {
popup.remove();
});
popupContent.appendChild(popupText);
popupContent.appendChild(closeButton);
popup.appendChild(popupContent);
document.body.appendChild(popup);
}
// Close modal when clicking outside
searchModal.addEventListener('click', (e) => {
if (e.target === searchModal) {
closeSearchModal();
}
});
// Close modal with Escape key
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape') {
closeSearchModal();
}
});
</script>
<!-- JavaScript for counter animation -->
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
const counterContainers = document.querySelectorAll('.counter-container');
const learnMoreButtons = document.querySelectorAll('.learn-more-btn');
const modals = document.querySelectorAll('.modal');
const closeModalButtons = document.querySelectorAll('.close-modal');
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
const counters = entry.target.querySelectorAll('.counter');
counters.forEach((counter, index) => {
const target = parseFloat(counter.getAttribute('data-target'));
let count = 0;
const increment = target / 200;
function updateCounter() {
count += increment;
if (count >= target) {
count = target;
clearInterval(intervalId);
}
counter.textContent = count.toLocaleString('en-US', {
minimumFractionDigits: 0,
maximumFractionDigits: 2,
}) + (index === 3 ? '%' : '');
}
const intervalId = setInterval(updateCounter, 5);
});
observer.unobserve(entry.target);
}
});
},
{
rootMargin: '0px',
threshold: 0.5,
}
);
counterContainers.forEach((container) => {
observer.observe(container);
});
learnMoreButtons.forEach((button, index) => {
button.addEventListener('click', () => {
modals[index].classList.remove('hidden');
});
});
closeModalButtons.forEach((button, index) => {
button.addEventListener('click', () => {
modals[index].classList.add('hidden');
});
});
});
</script>
<!-- JavaScript for mobile menu toggling and sticky navbar -->
<script type="text/javascript">
const button = document.getElementById('mobile-menu-button');
const menu = document.getElementById('mobile-menu');
const navbar = document.querySelector('.navbar');
let lastScrollY = 0;
window.addEventListener('scroll', () => {
const currentScrollY = window.pageYOffset;
if (currentScrollY > lastScrollY) {
// Scroll down
navbar.classList.remove('show');
} else {
// Scroll up
navbar.classList.add('show');
}
lastScrollY = currentScrollY;
});
button.addEventListener('click', () => {
menu.classList.toggle('open');
menu.classList.toggle('closed');
});
// Transcript Modal
const transcriptButton = document.getElementById('transcript-button');
const transcriptModal = document.getElementById('transcript-modal');
const closeTranscriptModal = document.getElementById('close-transcript-modal');
transcriptButton.addEventListener('click', () => {
transcriptModal.classList.remove('hidden');
document.body.classList.add('overflow-hidden');
});
closeTranscriptModal.addEventListener('click', () => {
transcriptModal.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
});
window.addEventListener('click', (event) => {
if (event.target === transcriptModal) {
transcriptModal.classList.add('hidden');
document.body.classList.remove('overflow-hidden');
}
});
// Get the theme toggler button and the body element
const themeToggler = document.getElementById('theme-toggler');
const body = document.body;
// Check for the user's preferred theme on page load
let prefersDarkMode = window.localStorage.getItem('prefersDarkMode') === 'true';
body.classList.toggle('dark', prefersDarkMode);
themeToggler.innerHTML = `<i class="${prefersDarkMode ? 'fas fa-sun' : 'fas fa-moon'}"></i>`;
// Add event listener to the theme toggler button
themeToggler.addEventListener('click', () => {
body.classList.toggle('dark');
prefersDarkMode = body.classList.contains('dark');
window.localStorage.setItem('prefersDarkMode', prefersDarkMode);
themeToggler.innerHTML = `<i class="${prefersDarkMode ? 'fas fa-sun' : 'fas fa-moon'}"></i>`;
});
const sections = document.querySelectorAll('section');
function handleScroll() {
const scrollPosition = window.pageYOffset || document.documentElement.scrollTop;
sections.forEach((section, index) => {
const sectionTop = section.offsetTop;
const sectionHeight = section.offsetHeight;
if (scrollPosition >= sectionTop - sectionHeight / 2 && scrollPosition < sectionTop + sectionHeight / 2) {
circles.forEach(circle => circle.classList.remove('active'));
circles[index].classList.add('active');
}
});
}
window.addEventListener('scroll', handleScroll);
document.getElementById('watchVideoButton').addEventListener('click', function(event) {
event.preventDefault(); // Prevent the default link behavior
// Fetch the local JSON file
fetch('./COW.json')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok ' + response.statusText);
}
return response.json();
})
.then(data => {
// Get the total number of videos in the data
const totalVideos = data.data.length;
// Generate a random index
const randomIndex = Math.floor(Math.random() * totalVideos);
// Get the video link at the random index
const randomVideoLink = data.data[randomIndex].link;
// Create a temporary anchor element
const tempLink = document.createElement('a');
tempLink.href = randomVideoLink;
tempLink.target = '_blank';
tempLink.rel = 'noopener noreferrer nofollow'; // Add rel="nofollow"
tempLink.click(); // Simulate a click to open the link
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
});
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
const acceptTermsDiv = document.getElementById('accept-terms');
const loadButton = document.getElementById('loadButton');
const mainContent = document.getElementById('mainContent');
function showMainContent() {
acceptTermsDiv.style.display = 'none';
mainContent.classList.remove('hidden');
mainContent.classList.add('visible');
}
// Check if the user has already accepted the terms
if (localStorage.getItem('termsAccepted') === 'true') {
showMainContent();
} else {
acceptTermsDiv.style.display = 'flex';
}
loadButton.addEventListener('click', function() {
// Store the user's acceptance of the terms in local storage
localStorage.setItem('termsAccepted', 'true');
showMainContent();
});
// Check for terms acceptance on page load
if (localStorage.getItem('termsAccepted') === 'true') {
showMainContent();
}
});
</script>
<script type="text/javascript">
let internetConnectionAlertShown = false;
window.addEventListener('load', () => {
// Check if the browser can reach an external resource, like Google's DNS server
const img = new Image();
img.onerror = function() {
// Internet connection is likely unstable
if (!internetConnectionAlertShown) {
alert("Your internet connection is unstable. Some elements may take a long time to load or may not load at all.");
internetConnectionAlertShown = true;
}
};
img.src = 'https://www.google.com/images/phd/px.gif?_=' + Date.now();
// Check screen size on page load
checkScreenSize();
});
function checkScreenSize() {
if (window.innerWidth < 325) {
alert("Please note that some elements may look off due to the small screen size.");
}
}
</script>
<script>
const escapeButton = document.querySelector('.bg-red-500');
escapeButton.addEventListener('click', () => {
window.location.href = 'http://www.google.com';
});
</script>
<script type="text/javascript">
const btnPlus = document.querySelector('.btn-plus');
const bubbleContainer = document.querySelector('.bubble-container');
const returnToTopBtn = document.querySelectorAll('.bubble');
btnPlus.addEventListener('click', () => {
bubbleContainer.classList.toggle('show');
btnPlus.classList.toggle('dark');
});
returnToTopBtn.forEach((btn) => {
btn.addEventListener('click', () => {
if (btn.querySelector('.fas').classList.contains('fa-arrow-down')) {
scrollToSection('bottom');
} else {
scrollToSection('top');
}
});
});
function scrollToSection(direction) {
const topSection = document.getElementById('top');
const bottomSection = document.getElementById('bottom');
if (direction === 'top') {
topSection.scrollIntoView({ behavior: 'smooth' });
} else if (direction === 'bottom') {
bottomSection.scrollIntoView({ behavior: 'smooth' });
}
}
</script>