-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2761 lines (2379 loc) · 137 KB
/
Copy pathindex.html
File metadata and controls
2761 lines (2379 loc) · 137 KB
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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-Content-Type-Options" content="nosniff">
<meta http-equiv="X-Frame-Options" content="SAMEORIGIN">
<meta http-equiv="X-XSS-Protection" content="1; mode=block">
<meta name="referrer" content="strict-origin-when-cross-origin">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://unpkg.com https://www.gstatic.com https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://apis.google.com https://*.googleusercontent.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: https: https://*.googleusercontent.com https://*.googleapis.com; connect-src 'self' https://*.googleapis.com https://*.firebaseio.com https://ipapi.co https://accounts.google.com https://oauth2.googleapis.com https://www.googleapis.com https://securetoken.googleapis.com https://identitytoolkit.googleapis.com; font-src 'self' https://cdn.jsdelivr.net; frame-src 'self' https://accounts.google.com https://*.firebaseapp.com; child-src 'self' https://accounts.google.com;">
<title>Cyscom Recuitments 2025</title>
<link rel="shortcut icon" href="Images/logo.png" type="image/x-icon">
<link rel="icon" href="Images/logo.png" type="image/png">
<link rel="apple-touch-icon" href="Images/logo.png">
<link rel="preload" href="style.css" as="style">
<link rel="preload" href="Particles.css" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.css" as="style">
<link rel="preload" href="./Futura-Bold.ttf" as="font" type="font/ttf" crossorigin>
<link rel="preload" href="./HelveticaNowText-Regular.ttf" as="font" type="font/ttf" crossorigin>
<link rel="preload" href="Images/Background.png" as="image">
<link rel="preload" href="Images/logo.png" as="image">
<link rel="preload" href="./video.webm" as="video" type="video/webm">
<link rel="preload" href="Images/Tech.png" as="image">
<link rel="preload" href="Images/Design.png" as="image">
<link rel="preload" href="Images/dEV.png" as="image">
<link rel="preload" href="Images/SM.png" as="image">
<link rel="preload" href="Images/Content.png" as="image">
<link rel="preload" href="Images/EM.png" as="image">
<link rel="preload" href="Images/Eve1.png" as="image">
<link rel="preload" href="Images/Eve2.png" as="image">
<link rel="preload" href="Images/Eve3.png" as="image">
<link rel="preload" href="Images/Eve4.png" as="image">
<!-- 8. Preload Critical JavaScript Libraries -->
<link rel="preload" href="https://unpkg.com/react@18/umd/react.production.min.js" as="script">
<link rel="preload" href="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js" as="script">
<link rel="preload" href="https://unpkg.com/@babel/standalone/babel.min.js" as="script">
<!-- 9. Preload Particles Script for Faster Loading -->
<link rel="preload" href="SimpleParticles.js" as="script">
<!-- 9. Preload Critical Local Scripts -->
<link rel="preload" href="firebase-env.js" as="script">
<link rel="preload" href="firebase-config.js" as="script">
<link rel="preload" href="security-utils.js" as="script">
<link rel="preload" href="app.js" as="script">
<!-- 10. Preload Animation Libraries -->
<link rel="preload" href="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.js" as="script">
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js" as="script">
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js" as="script">
<!-- 11. Preload Additional Components -->
<link rel="preload" href="glitch-text-component.js" as="script">
<link rel="preload" href="tilted-card.js" as="script">
<!-- Load Stylesheets (after preloading) -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="Particles.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.css">
<!-- DNS Prefetch for External Domains (Performance Optimization) -->
<link rel="dns-prefetch" href="//unpkg.com">
<link rel="dns-prefetch" href="//cdn.jsdelivr.net">
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
<link rel="dns-prefetch" href="//www.gstatic.com">
<link rel="dns-prefetch" href="//apis.google.com">
<link rel="dns-prefetch" href="//accounts.google.com">
<!-- Preconnect to Critical External Services -->
<link rel="preconnect" href="https://www.gstatic.com" crossorigin>
<link rel="preconnect" href="https://apis.google.com" crossorigin>
<!-- React and Babel CDN -->
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- IMMEDIATE PARTICLES SCRIPT LOADING - Load particles ASAP after React -->
<script>
// Start particles initialization checks immediately
if (window.React && window.ReactDOM) {
console.log('Loading');
}
</script>
<!-- Firebase Configuration (load environment first, then config) -->
<script src="firebase-env.js"></script>
<script src="firebase-config.js"></script>
<!-- Security Utilities -->
<script src="security-utils.js"></script>
<!-- Maintenance mode styles: hide public form and sign-in on front page -->
<style id="maintenance-hide-form">
/* Hide the recruitment form and authentication prompts while keeping DOM present */
#recruitment-form-container,
#recruitment-form,
#auth-overlay,
#form-restriction-notice,
#direct-google-sign-in-btn,
#shortlist-notice,
#user-info-bar,
#google-sign-in-btn,
.direct-google-auth-btn,
.auth-container,
.auth-card,
#user-info-bar {
display: none !important;
visibility: hidden !important;
pointer-events: none !important;
opacity: 0 !important;
}
/* Keep the recruitment header visible (optional) - comment out to hide header too */
#recruitment-header { display: block !important; visibility: visible !important; opacity: 1 !important; }
</style>
</head>
<body>
<div id="nav">
<div id="nav-part1">
<img src="Images/logo.png" alt="Logo" style="height: 80px;">
</div>
<div id="nav-part2">
<div id="links">
<a href="#page1" id="home-link">HOME</a>
<a href="#moto" id="about-link">ABOUT</a>
<a href="#page2" id="register-link">DEPARTMENTS</a>
<a href="#page4" id="recruitment-link">RESULTS</a>
</div>
</div>
</div>
<div id="cursor"></div>
<div id="main">
<div id="page1">
<!-- Particles Background -->
<div id="particles-background" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;"></div>
<div class="top-spacer"></div>
<h1 class="main-title">CYSCOM</h1>
<h1 class="main-title">RECRUITMENTS</h1>
<h1 class="main-title">2025</h1>
<div class="bottom-spacer"></div>
<div id="video-container">
<div id="play">PLAY</div>
<video autoplay playsinline muted loop preload="auto" poster="Images/poster.png" src="./video.webm" style="display:block; margin:auto;"></video>
</div>
</div>
<div id="page2">
<div id="slider-container">
<div id="slider-wrapper">
<!-- Original slides -->
<div id="elem1" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Tech.png"
alt="" style="width:280px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #013066;">
<i class="ri-circle-fill"></i>
<p><b>TECHNICAL</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #06b1bd;">
<div class="listing">
<div class="list-elem">
<p>Dive into cybersecurity challenges, build tools, and sharpen your hacking skills while working on real-world security projects.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem2" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Design.png"
alt="" style="width:420px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #0484ac;">
<i class="ri-circle-fill"></i>
<p><b>DESIGN</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #06b1bd;">
<div class="listing">
<div class="list-elem">
<p>Transform ideas into impactful visuals logos, posters, and graphics that define our brand identity.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem3" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\dEV.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #040277;">
<i class="ri-circle-fill"></i>
<p><b>DEV</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Craft and maintain sleek, secure, and functional web experiences for Cyscom’s events and platforms.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem4" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\SM.png"
alt="" style="width:320px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #2c4cb8;">
<i class="ri-circle-fill"></i>
<p><b>SOCIAL MEDIA</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Shape Cyscom’s online presence with creative posts, trending content, and engaging campaigns.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem5" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Content.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #37288a;">
<i class="ri-circle-fill"></i>
<p><b>CONTENT</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Research, write, and create compelling articles, blogs, and resources that spread cybersecurity awareness.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem6" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\EM.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #3e0699;">
<i class="ri-circle-fill"></i>
<p><b>EVENT MANAGEMENT</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Plan, coordinate, and execute engaging cybersecurity events, from CTFs to workshops, making each one unforgettable.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Complete duplicate set for seamless looping -->
<div id="elem1" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Tech.png"
alt="" style="width:280px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #013066;">
<i class="ri-circle-fill"></i>
<p><b>TECHNICAL</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #06b1bd;">
<div class="listing">
<div class="list-elem">
<p>Dive into cybersecurity challenges, build tools, and sharpen your hacking skills while working on real-world security projects.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem2" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Design.png"
alt="" style="width:420px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #0484ac;">
<i class="ri-circle-fill"></i>
<p><b>DESIGN</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #06b1bd;">
<div class="listing">
<div class="list-elem">
<p>Transform ideas into impactful visuals logos, posters, and graphics that define our brand identity</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem3" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\dEV.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #040277;">
<i class="ri-circle-fill"></i>
<p><b>DEV</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Craft and maintain sleek, secure, and functional web experiences for Cyscom’s events and platforms.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem4" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\SM.png"
alt="" style="width:320px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #2c4cb8;">
<i class="ri-circle-fill"></i>
<p><b>SOCIAL MEDIA</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Shape Cyscom’s online presence with creative posts, trending content, and engaging campaigns</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem5" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\Content.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #37288a;">
<i class="ri-circle-fill"></i>
<p><b>CONTENT</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Research, write, and create compelling articles, blogs, and resources that spread cybersecurity awareness.</p>
</div>
</div>
</div>
</div>
</div>
<div id="elem6" class="elem">
<img data-scroll data-scroll-speed="1"
src="Images\EM.png"
alt="" style="width:250px; height:auto;">
<div data-scroll data-scroll-speed="-2" class="dets">
<div class="dets-info" style="background-color: #3e0699;">
<i class="ri-circle-fill"></i>
<p><b>EVENT MANAGEMENT</b></p>
<i class="ri-arrow-right-s-line"></i>
</div>
<div class="container" style="background-color: #0484ac;">
<div class="listing">
<div class="list-elem">
<p>Plan, coordinate, and execute engaging cybersecurity events, from CTFs to workshops, making each one unforgettable.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="moto">
<h2>THE BEST CYBERSECUIRTY CLUB IN VIT CHENNAI.</h2>
<div class="para">
<p>The Cybersecurity Student Community (CYSCOM) was formed in 2022 and ever since it has had one aim only, spreading awareness about cyber security and malware as well as ransomware threats in society and circles of students and teaching them how to deploy counter measures through various events and undertakings</p>
</div>
</div>
<div id="page3">
<div class="child" id="child1" data-color="#D4D0D3">
<img src="Images/Eve1.png"
alt="">
<div class="childInfo">
<p>Hack Overflow</p>
<p>2022</p>
</div>
</div>
<div class="child" id="child2" data-color="#E6DFD7">
<img src="Images/Eve2.png"
alt="">
<div class="childInfo">
<p>Code & Conquer</p>
<p>2024</p>
</div>
</div>
<div class="child" id="child3" data-color="#E6DFD7">
<img src="Images/Eve3.png"
alt="">
<div class="childInfo">
<p>V-Medithon</p>
<p>2024</p>
</div>
</div>
<div class="child" id="child4" data-color="#B4D5B6">
<img src="Images/Eve4.png"
alt="">
<div class="childInfo">
<p>Zypher CTF</p>
<p>2023</p>
</div>
</div>
</div>
<div id="page4">
<!-- Authentication Overlay -->
<div id="auth-overlay" style="display: none;">
<div class="auth-container">
<div class="auth-card">
<div class="auth-header">
<i class="ri-shield-check-line"></i>
<h2>Sign In Required</h2>
<p>Please sign in with your Google account to access the application form</p>
</div>
<div class="auth-content">
<button id="google-sign-in-btn" class="google-auth-btn">
<i class="ri-google-line"></i>
<span>Continue with Google</span>
</button>
<div class="auth-info">
<p><i class="ri-information-line"></i> We use Google Sign-In to verify your identity and prevent spam applications.</p>
<p><i class="ri-lock-line"></i> Your information is secure and will only be used for the application process.</p>
</div>
</div>
<button id="close-auth-overlay" class="close-auth-btn">
<i class="ri-close-line"></i>
</button>
</div>
</div>
</div>
<!-- User Info Bar (shown when authenticated) -->
<div id="user-info-bar" style="display: none;">
<div class="user-info-content">
<div class="user-details">
<img id="user-avatar" class="user-avatar-img" src="" alt="User Avatar">
<span>Signed in as <strong id="user-name"></strong></span>
</div>
<button id="sign-out-btn" class="sign-out-button">
<i class="ri-logout-box-line"></i>
Sign Out
</button>
</div>
</div>
<div id="recruitment-section">
<div id="recruitment-header">
<h2>RESULTS WILL BE ANNOUNCED SOON</h2>
<h3>Stay tuned!</h3>
<!-- <h4>PLEASE SELECT YOUR SLOT BEFORE 12TH SEPTEMBER 20:00 HRS</h4> -->
<p>Follow our socials to know when the results are announced.</p>
</div>
<!-- Recruitment Form -->
<div id="recruitment-form-container">
<form id="recruitment-form" method="post" action="#" onsubmit="return false;" novalidate>
<!-- Interview Slot Selection (shortlisted candidates only) -->
<div class="form-section">
<h4>Select an Interview Time Slot</h4>
<p id="slot-instructions" style="color: #666; font-size: 0.95rem; margin-bottom: 12px;">As a shortlisted candidate, please choose one time slot for your interview. Submitting will update your entry in the shortlisted list.</p>
<p id="slot-summary" style="color: #ddd; font-size: 0.9rem; margin-bottom: 16px;">Loading slot availability...</p>
<div class="form-group">
<label for="timeSlot">Available Time Slots <span class="required">*</span></label>
<select style="color: white; background-color: #013066;" id="timeSlot" name="timeSlot" required>
<option value="">-- Select a preferred slot --</option>
<option value="2025-09-12_21:00-23:00">Sept 12, 2025 — 21:00–23:00</option>
<option value="2025-09-13_10:00-12:30">Sept 13, 2025 — 10:00–12:30</option>
<option value="2025-09-13_21:00-23:30">Sept 13, 2025 — 21:00-23:30</option>
<option value="2025-09-14_10:00-12:30">Sept 14, 2025 — 10:00-12:30</option>
<option value="2025-09-14_21:00-22:30">Sept 14, 2025 — 21:00-22:30</option>
</select>
</div>
<div class="form-group">
<label for="slotNote">Optional note (e.g., unavailability)</label>
<input type="text" style="color: white; background-color: #013066;" id="slotNote" name="slotNote" placeholder="Short note (optional)">
</div>
</div>
<!-- Honeypot for bots -->
<div style="position: absolute; left: -9999px; visibility: hidden;">
<input type="text" name="website" tabindex="-1" autocomplete="off" />
</div>
<div class="form-actions">
<button type="submit" id="submit-btn" class="submit-button">
<span class="btn-text">Submit Slot</span>
<span class="loading-spinner" style="display: none;">
<i class="ri-loader-4-line"></i>
</span>
</button>
</div>
</form>
</div>
<!-- Success/Error Messages -->
<div id="form-messages" style="display: none;">
<div id="success-message" class="message success-msg" style="display: none;">
<p>Thank you for your interest in CYSCOM. We'll review your application and get back to you soon. Join the below WhatsApp group for updates.</p>
</div>
<div id="error-message" class="message error-msg" style="display: none;">
<h4>Submission Failed</h4>
<p>There was an error submitting your application. Please try again.</p>
</div>
</div>
</div>
<hr>
</div>
<div id="page5">
<div id="footer">
<div id="connect">
<p>CONNECT WITH US</p>
<a href="https://www.instagram.com/cyscomvit" title="Follow us on Instagram">
<i class="ri-instagram-line"></i>
</a>
<a href="https://x.com/CyscomVit" title="Follow us on X (Twitter)">
<i class="ri-twitter-x-line"></i>
</a>
<a href="https://www.linkedin.com/company/cyscomvit/" title="Connect with us on LinkedIn">
<i class="ri-linkedin-line"></i>
</a>
</div>
<div id="logo">
<img src="./logo.png" alt="">
<div id="copyright">
<a href="https://cyscomvit.com/">© CYSCOM</a>
<a href="https://www.aicte.gov.in/">RECOGNIZED BY AICTE, Govt. Of INDIA</a>
<a href="https://chennai.vit.ac.in/">VIT CHENNAI</a>
</div>
</div>
<div id="nitty">
<p> </p>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/locomotive-scroll@3.5.4/dist/locomotive-scroll.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"
integrity="sha512-16esztaSRplJROstbIIdwX3N97V1+pZvV33ABoG1H2OyTttBxEGkTsoIVsiP1iaTtM8b3+hu2kB6pQ4Clr5yug=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"
integrity="sha512-Ic9xkERjyZ1xgJ5svx3y0u3xrvfT/uPkV99LBwe68xjy/mGtO+4eURHZBW2xW4SZbFrF1Tf090XqB+EVgXnVjw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="app.js"></script>
<script type="text/babel" src="react-components.js"></script>
<script type="text/babel" src="react-enhanced.js"></script>
<script type="text/babel" src="animated-department-selector.js"></script>
<script src="glitch-text-component.js"></script>
<script type="text/babel" src="SimpleParticles.js"></script>
<script>
// Start trying to initialize particles as soon as DOM is ready
let particlesInitialized = false;
function initializeParticlesBackground() {
if (particlesInitialized) return;
const particlesContainer = document.getElementById('particles-background');
if (!particlesContainer) {
setTimeout(initializeParticlesBackground, 100);
return;
}
if (!window.React || !window.ReactDOM) {
setTimeout(initializeParticlesBackground, 100);
return;
}
if (!window.Particles) {
setTimeout(initializeParticlesBackground, 100);
return;
}
try {
// Create React element using createElement
const particlesElement = React.createElement(window.Particles, {
particleCount: 50,
speed: 0.4,
particleColors: ['#ffffff', '#e0e6ff', '#b8c5ff', '#d4d9ff', '#00BFFF'],
size: 3,
className: 'page1-particles'
});
// Render to the particles container
ReactDOM.render(particlesElement, particlesContainer);
particlesInitialized = true;
} catch (error) {
console.error('Error initializing particles:', error);
showParticlesFallback(particlesContainer);
}
}
// Enhanced fallback with immediate animation
function showParticlesFallback(container) {
container.style.background = `
radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(224,230,255,0.1) 0%, transparent 50%),
radial-gradient(circle at 60% 80%, rgba(184,197,255,0.08) 0%, transparent 50%),
radial-gradient(circle at 30% 70%, rgba(212,217,255,0.12) 0%, transparent 50%)
`;
container.style.animation = 'particlesFallback 6s ease-in-out infinite alternate';
}
// Multiple initialization attempts for fastest possible loading
document.addEventListener('DOMContentLoaded', function() {
initializeParticlesBackground();
});
// Force page to top on refresh/load
window.addEventListener('beforeunload', function() {
window.scrollTo(0, 0);
});
// Also ensure we're at top when page loads and retry particles if needed
window.addEventListener('load', function() {
setTimeout(function() {
window.scrollTo(0, 0);
}, 100);
// Final attempt after full page load
if (!particlesInitialized) {
initializeParticlesBackground();
}
});
// AGGRESSIVE RETRY: Try particles initialization every 200ms until successful
const maxRetries = 25; // 5 seconds maximum
let retryCount = 0;
const aggressiveRetry = setInterval(() => {
if (particlesInitialized || retryCount >= maxRetries) {
clearInterval(aggressiveRetry);
if (retryCount >= maxRetries) {
const container = document.getElementById('particles-background');
if (container) showParticlesFallback(container);
}
return;
}
retryCount++;
initializeParticlesBackground();
}, 200);
// Initialize Particles Background Function
function initializeParticlesBackground() {
const particlesContainer = document.getElementById('particles-background');
// Check if all required dependencies are loaded
if (!particlesContainer) {
return;
}
if (!window.React || !window.ReactDOM) {
setTimeout(initializeParticlesBackground, 500);
return;
}
if (!window.Particles) {
setTimeout(initializeParticlesBackground, 500);
return;
}
try {
// Create React element using createElement
const particlesElement = React.createElement(window.Particles, {
particleCount: 80,
speed: 0.3,
particleColors: ['#ffffff', '#e0e6ff', '#b8c5ff', '#d4d9ff', '#00BFFF'],
size: 3,
className: 'page1-particles'
});
// Render to the particles container
ReactDOM.render(particlesElement, particlesContainer);
} catch (error) {
console.error('Error initializing particles:', error);
// Fallback: show a simple animated overlay
particlesContainer.style.background = 'radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%)';
particlesContainer.style.animation = 'pulse 4s ease-in-out infinite alternate';
}
}
// Smooth scrolling for navigation links
document.addEventListener('DOMContentLoaded', function() {
// Force scroll to top immediately
window.scrollTo(0, 0);
// Initialize automatic glitch effect cycle for childInfo p tags
function startGlitchCycle() {
const children = [
{ selector: '#child1 .childInfo p', delay: 0 }, // Start immediately
{ selector: '#child2 .childInfo p', delay: 2000 }, // Start after 2 seconds
{ selector: '#child3 .childInfo p', delay: 4000 }, // Start after 4 seconds
{ selector: '#child4 .childInfo p', delay: 6000 } // Start after 6 seconds
];
children.forEach(child => {
setTimeout(() => {
const elements = document.querySelectorAll(child.selector);
function glitchCycle() {
elements.forEach(el => el.classList.add('glitch-active'));
// Remove glitch after 1 second
setTimeout(() => {
elements.forEach(el => el.classList.remove('glitch-active'));
}, 1000);
}
// Start the glitch immediately
glitchCycle();
// Repeat every 8 seconds (8s total cycle time)
setInterval(glitchCycle, 8000);
}, child.delay);
});
}
// Start the glitch cycle after a short delay to ensure DOM is ready
setTimeout(startGlitchCycle, 500);
// Get all navigation links
const homeLink = document.getElementById('home-link');
const aboutLink = document.getElementById('about-link');
const registerLink = document.getElementById('register-link');
const recruitmentLink = document.getElementById('recruitment-link');
const resultsLink = document.getElementById('results-link');
// Add smooth scroll behavior
function smoothScrollTo(targetId) {
const target = document.getElementById(targetId);
console.debug('[smoothScrollTo] called for', targetId, 'userAgent=', navigator.userAgent, 'hasLocomotive=', !!window.locoScroll);
if (target) {
// Check if it's a mobile device
if (/Mobi|Android/i.test(navigator.userAgent)) {
// On mobile, try a few methods to reliably scroll the page.
// 1) Prefer element.scrollIntoView which is often more reliable on mobile
// 2) Fall back to window.scrollTo using the element offsetTop adjusted for nav
// 3) Finally assign document.documentElement / body scrollTop if needed
console.debug('[smoothScrollTo] mobile path: attempting scrollIntoView for', targetId);
try {
target.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'nearest' });
} catch (err) {
console.warn('[smoothScrollTo] scrollIntoView failed', err);
}
// Also attempt window.scrollTo with nav height compensation after a short delay
setTimeout(() => {
const nav = document.getElementById('nav');
const navHeight = nav ? nav.offsetHeight : 0;
const offset = Math.max(0, target.getBoundingClientRect().top + window.pageYOffset - navHeight - 8);
console.debug('[smoothScrollTo] mobile fallback: window.scrollTo to', offset, 'navHeight=', navHeight);
window.scrollTo({ top: offset, behavior: 'smooth' });
// No hard post-check or forced assignment — allow native smooth scroll to proceed
}, 60);
// Close mobile menu if it's open
const menu = document.querySelector('.nav-links');
if (menu && menu.classList.contains('active')) {
menu.classList.remove('active');
}
} else if (window.locoScroll) {
// On desktop, use Locomotive Scroll
console.debug('[smoothScrollTo] using locomotive scroll');
window.locoScroll.scrollTo(target);
} else {
// Fallback
console.debug('[smoothScrollTo] fallback: scrollIntoView');
target.scrollIntoView({
behavior: 'smooth',
inline: 'nearest'
});
}
} else {
console.warn('[smoothScrollTo] target not found for', targetId);
}
}
// Multiple methods for scrolling to top (for better compatibility)
function scrollToTop() {
// Method 1: window.scrollTo
window.scrollTo({
top: 0,
left: 0,
behavior: 'smooth'
});
// Method 2: Fallback for older browsers
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
// Add event listeners with null checks
if (homeLink) {
homeLink.addEventListener('click', function(e) {
console.debug('[nav] click on home-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
scrollToTop();
});
// Touch fallback
homeLink.addEventListener('touchstart', function(e) {
console.debug('[nav] touchstart on home-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
scrollToTop();
}, { passive: false });
}
if (aboutLink) {
aboutLink.addEventListener('click', function(e) {
console.debug('[nav] click on about-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('moto');
});
// Touch fallback
aboutLink.addEventListener('touchstart', function(e) {
console.debug('[nav] touchstart on about-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('moto');
}, { passive: false });
}
if (registerLink) {
registerLink.addEventListener('click', function(e) {
console.debug('[nav] click on register-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('page2');
});
// Touch fallback
registerLink.addEventListener('touchstart', function(e) {
console.debug('[nav] touchstart on register-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('page2');
}, { passive: false });
}
if (recruitmentLink) {
recruitmentLink.addEventListener('click', function(e) {
console.debug('[nav] click on recruitment-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('page4');
});
// Touch fallback
recruitmentLink.addEventListener('touchstart', function(e) {
console.debug('[nav] touchstart on recruitment-link', e.type, 'userAgent=', navigator.userAgent);
e.preventDefault();
smoothScrollTo('page4');
}, { passive: false });
}
// Diagnostic helper: log pageYOffset for a short period after nav taps to detect if something else later moves it
function logYOffsetFor(durationMs = 1000) {
const start = Date.now();
const id = setInterval(() => {
console.debug('[diagnostic] pageYOffset=', window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop);
if (Date.now() - start > durationMs) clearInterval(id);
}, 150);
}
// Attach diagnostic logger to nav clicks/touches to help debugging
[homeLink, aboutLink, registerLink, recruitmentLink].forEach(link => {
if (!link) return;
link.addEventListener('click', () => logYOffsetFor(1200));
link.addEventListener('touchstart', () => logYOffsetFor(1200), { passive: true });
});
if (resultsLink) {
resultsLink.addEventListener('click', function(e) {
e.preventDefault();
smoothScrollTo('impact');
});
}
// Navbar scroll behavior - integrated with Locomotive Scroll
let lastScrollTop = 0;
let scrollDirection = 'up';
const nav = document.getElementById('nav');
// Initialize nav as visible
if (nav) {
nav.classList.add('nav-visible');
}
// Wait for Locomotive Scroll to be initialized, then hook into it
setTimeout(() => {
if (window.locoScroll) {
// Hook into locomotive scroll events
window.locoScroll.on('scroll', (obj) => {
const currentScroll = obj.scroll.y;
// Determine scroll direction
if (currentScroll > lastScrollTop && currentScroll > 50) {
// Scrolling down and past 50px threshold
scrollDirection = 'down';
if (nav) {
nav.classList.add('nav-hidden');
nav.classList.remove('nav-visible');
}
} else if (currentScroll < lastScrollTop) {
// Scrolling up - always show navbar
scrollDirection = 'up';
if (nav) {
nav.classList.add('nav-visible');
nav.classList.remove('nav-hidden');
}
}
// Always show nav at the very top
if (currentScroll <= 20) {
if (nav) {
nav.classList.add('nav-visible');
nav.classList.remove('nav-hidden');
}
}
lastScrollTop = currentScroll <= 0 ? 0 : currentScroll;
});
} else {
// Fallback to regular scroll if locomotive scroll is not available
console.warn('Locomotive Scroll not found, using fallback scroll behavior');
window.addEventListener('scroll', function() {
const currentScroll = window.pageYOffset || document.documentElement.scrollTop;
if (currentScroll > lastScrollTop && currentScroll > 50) {
scrollDirection = 'down';
if (nav) {
nav.classList.add('nav-hidden');
nav.classList.remove('nav-visible');
}
} else if (currentScroll < lastScrollTop) {
scrollDirection = 'up';
if (nav) {
nav.classList.add('nav-visible');
nav.classList.remove('nav-hidden');
}
}
if (currentScroll <= 20) {
if (nav) {
nav.classList.add('nav-visible');
nav.classList.remove('nav-hidden');
}
}