forked from ankit071105/Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_sell.html
1185 lines (991 loc) · 36.1 KB
/
train_sell.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>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sell Train Ticket</title>
<link rel="shortcut icon" href="images/4.jpeg" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="faq.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="why-us.css">
<link rel="stylesheet" href="navbar.css">
<!-- this is for twitter icons -->
<script src="https://kit.fontawesome.com/3d20c433e1.js" crossorigin="anonymous"></script>
<style>
/* cursor */
.circle {
height: 24px;
width: 24px;
border-radius: 24px;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
/* so that it stays on top of all other elements */
}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sell Train Ticket</title>
<link rel="shortcut icon" href="images/4.jpeg" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="navbar.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="index.css">
<!-- this is for twitter icons -->
<script src="https://kit.fontawesome.com/3d20c433e1.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="footer.css">
<!-- this is for twitter icons -->
<script src="https://kit.fontawesome.com/3d20c433e1.js" crossorigin="anonymous"></script>
<style>
.circle {
height: 24px;
width: 24px;
border-radius: 24px;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999; /* so that it stays on top of all other elements */
}
/* code for bottom to top nav */
#myBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color: #1fb899;
color: white;
cursor: pointer;
padding: 10px 6px;
border-radius: 4px;
width: 40px !important;
height: 40px !important;
}
/* cursor */
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.988);
z-index: 1000;
}
/* Wrapper for the logo and loader */
.loader-wrapper {
position: relative;
width: 180px;
height: 180px;
display: flex;
justify-content: center;
align-items: center;
}
/* Logo Styling */
#logo {
width: 140px;
position: relative;
z-index: 10;
/* Ensures logo stays above the loader */
animation: pulse 2s infinite ease-in-out;
}
/* Circular Loader surrounding the logo */
.loader-globe {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 8px solid transparent;
border-left-color: rgb(248, 172, 21);
border-right-color: rgb(8, 82, 230);
animation: spin 2s linear infinite;
}
/* Loading Text */
#loading-text {
margin-top: 20px;
font-size: 20px;
color: white;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
letter-spacing: 1px;
animation: textGlow 2s ease-in-out infinite;
}
/* Keyframes Animations */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes textGlow {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
/* cursor ends */
/* our Review section internal css */
.slider {
position: relative;
margin-top: 100px;
width: 100%;
height: 550px;
/* Increased height */
overflow: hidden;
}
@media (prefers-color-scheme: dark) {
.slider p,
.slider h2,
.slider .job-title,
.slider .location {
color: #000000;
/* Ensure all text is light */
}
.slider .stars {
color: #ffd700;
/* Bright gold color for stars */
}
}
.item {
position: absolute;
width: 350px;
/* Increased width */
height: 400px;
/* Increased height */
text-align: justify;
background-color: #fff;
border-radius: 10px;
padding: 20px;
transition: 0.5s;
left: calc(50% - 175px);
/* Adjusted for new width */
top: 0;
margin-bottom: 100px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
#next,
#prev {
position: absolute;
top: 26%;
color: #000;
background: none;
border: none;
font-size: xxx-large;
font-family: monospace;
font-weight: bold;
opacity: 0.5;
transition: opacity 0.5s;
z-index: 10;
/* Ensure buttons are above slides */
box-shadow: none;
}
#next {
right: 230px;
}
#prev {
left: 230px;
}
#prev:hover,
#next:hover {
opacity: 8;
}
/* css for mouse cursor trail effect */
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(70, 130, 180, 0.3), skyblue, rgba(0, 0, 50, 0.3), white);
transition: transform 0.1s, left 0.1s, top 0.1s;
}
.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
/* removed the non-breaking space ( ) */
}
.item img {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 20px;
cursor: pointer;
transition: transform 0.3s ease;
}
.item img:hover {
transform: scale(1.1);
}
.item h2 {
margin: 0 0 10px 0;
font-size: 1.2em;
}
.item p {
text-align: justify;
font-size: 0.9em;
margin-bottom: 20px;
}
.stars {
color: #ffd700;
font-size: 1.6em;
margin-top: auto;
}
.item .job-title {
color: #007BFF;
font-weight: bold;
margin: 0 0 5px 0;
}
.item .location {
color: #000408;
font-style: italic;
margin: 0 0 15px 0;
}
.fa-telegram{
margin-top: 5px;
scale: 1.5;
}
</style>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* chatbot css end */
.sell-ticket {
width: 100%;
max-width: 800px;
margin: 2rem auto;
padding: 2rem;
background: linear-gradient(135deg, #ead6ee, #a0f1ea);
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.sell-ticket h1 {
text-align: center;
font-size: 2.5rem;
/* Bigger typography */
font-weight: bold;
margin-bottom: 30px;
color: #ff4d4d;
cursor: default;
}
/* Two-Column Layout for Form */
form {
display: flex;
width: 100%;
height: auto;
}
.form-cont {
display: flex;
width: 100%;
align-items: center;
text-align: left;
}
form label {
font-weight: 600;
color: #333;
width: 100%;
}
form input,
form select {
width: 100%;
align-self: center;
border: 1px solid #ccc;
border-radius: 0px;
border: none;
border-bottom: 2px solid #ccc;
font-size: 1rem;
background-color: transparent;
transition: all 0.3s ease-in-out;
}
form input[type="text"]:focus,
form input[type="date"]:focus,
form input[type="time"]:focus,
form input[type="email"]:focus,
form select:focus {
outline: none;
background-color: transparent;
border-bottom: 2px solid #ff4d4d;
/* White bottom border on focus */
}
form .btn {
background-color: #ff4d4d;
border: 2px solid #ff4d4d;
color: white;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
padding: 25px;
width: 100%;
border-radius: 4px;
cursor: pointer;
font-size: 1.25rem;
margin-top: 30px;
}
form .btn:hover {
background-color: transparent;
color: #ff4d4d;
}
#sellerMessage {
text-align: center;
color: #4c4c4c;
margin-top: 1rem;
}
@media screen and (max-width: 768px) {
form {
grid-template-columns: 1fr;
/* Stack items on smaller screens */
}
}
/* Default light mode styles */
.sell-ticket label {
color: #000;
}
.sell-ticket input,
.sell-ticket select {
background-color: #fff;
color: #000;
border: 1px solid #ccc;
}
/* Dark mode styles */
body.dark-mode .sell-ticket label {
color: #fff; /* Makes labels visible in dark mode */
}
body.dark-mode .sell-ticket input,
body.dark-mode .sell-ticket select {
background-color: #333; /* Darker background for inputs */
color: #fff; /* Light text color */
border: 1px solid #555;
}
body.dark-mode .sell-ticket input::placeholder {
color: #aaa; /* Lighter placeholder text */
}
/* If you want to style the form section background in dark mode */
body.dark-mode .sell-ticket {
background-color: #1a1a1a; /* Dark background */
color: #fff; /* Light text */
}
/* Style for the form heading in dark mode */
body.dark-mode .sell-ticket h1 {
color: #fff;
}
/* Focus states for better visibility in dark mode */
body.dark-mode .sell-ticket input:focus,
body.dark-mode .sell-ticket select:focus {
border-color: #00ffd5; /* Matches your theme color */
outline: none;
box-shadow: 0 0 5px rgba(0, 255, 213, 0.3);
}
</style>
</head>
<body>
<div class="Wrapper">
<div class="loader"></div>
</div>
<!-- cursor -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<!-- cursor ends -->
<div id="scrollProgressBar" class="progress-bar"></div>
<!-- Your existing content goes here -->
<nav class="navbar">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<div class="logo" style="font-size: 20px;">Ticket Marketplace</div>
<!-- Toggle Button (Visible on Small Screens) -->
<button id="navToggle">☰</button>
<!-- Navbar Links -->
<div id="navLinks">
<a href="index.html"><i class="fas fa-home"></i> Home</a>
<a href="about.html"><i class="fas fa-info-circle"></i> About</a>
<a href="buy.html"><i class="fas fa-ticket-alt"></i> Buy Ticket</a>
<a href="sell.html"><i class="fas fa-tags"></i> Sell</a>
<a href="contactus.html"><i class="fas fa-envelope"></i> Contact</a>
<a href="contributor.html"><i class="fas fa-users"></i> Contributors</a>
<a href="client/login.html"><i class="fas fa-sign-in-alt"></i> Login</a>
</div>
<!-- Dark Mode Button -->
<button onclick="topFunction()" width="40px" height="40px" id="myBtn" title="Go to top"><i class="fa fa-arrow-up"
aria-hidden="true"></i></button>
<!--chat bot-->
<button onclick="toggleChatbot()" id="chatbotBtn" title="chat bot"></button>
<div class="chatbot-container" id="chatbot-container">
<div class="chatbot-title">Ticket Bot</div>
<div class="chatbot-chat" id="chatbot-chat"></div>
<input type="text" class="chatbot-input" id="chatbot-input" placeholder="Type your message here...." />
<button class="chatbot-button" id="chatbot-button"><i class="fa-brands fa-telegram"></i></button>
</div>
<!-- cursor -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<nav class="navbar">
<div class="navbarr11">
<nav class="navbar12">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<a href="index.html" style="text-decoration: none;">
<div class="logo" style="margin-right: 200px; font-size: 20px;">Ticket Marketplace</div>
</a>
<!-- Toggle Button (Visible on Small Screens) -->
<button id="navToggle">☰</button>
<div id="navLinks">
<a href="index.html"><i class="fas fa-home"></i> Home</a>
<a href="about.html"><i class="fas fa-info-circle"></i> About</a>
<a href="buy.html"><i class="fas fa-ticket-alt"></i> Buy Ticket</a>
<a href="sell.html"><i class="fas fa-tags"></i> Sell</a>
<a href="contactus.html"><i class="fas fa-envelope"></i> Contact</a>
<a href="contributor.html"><i class="fas fa-users"></i> Contributors</a>
<a href="client/login.html"><i class="fas fa-sign-in-alt"></i> Login</a>
</div>
<button id="darkModeToggle" style="width: 40px; height: 40px;">🌙</button>
</nav>
<!-- Sell Train Ticket Form -->
<section class="sell-ticket">
<h1>Sell Train Ticket</h1>
<form id="trainTicketForm">
<div class="form-cont">
<label for="name">Your Name:</label>
<input type="text" id="name" placeholder="Enter your full name" required>
</div>
<div class="form-cont">
<label for="phone">Phone Number:</label>
<input type="text" id="phone" placeholder="Enter your phone number" required>
</div>
<div class="form-cont">
<label for="email">Email:</label>
<input type="email" id="email" placeholder="Enter your email address" required>
</div>
<div class="form-cont">
<label for="ticketNumber">Ticket Number:</label>
<input type="text" id="ticketNumber" placeholder="Enter ticket number" required>
</div>
<div class="form-cont">
<label for="trainNumber">Train Number:</label>
<input type="text" id="trainNumber" placeholder="Enter train number" required>
</div>
<div class="form-cont">
<label for="departureLocation">Departure Location:</label>
<input type="text" id="departureLocation" placeholder="Enter departure location" required>
</div>
<div class="form-cont">
<label for="arrivalLocation">Arrival Location:</label>
<input type="text" id="arrivalLocation" placeholder="Enter arrival location" required>
</div>
<div class="form-cont">
<label for="departureTime">Departure Time:</label>
<input type="time" id="departureTime" placeholder="Enter departure time" required>
</div>
<div class="form-cont">
<label for="date">Date:</label>
<input type="date" id="date" required>
</div>
<div class="form-cont">
<label for="coachType">Coach Type:</label>
<select id="coachType" required>
<option value="">Select coach type</option>
<option value="Sleeper">Sleeper</option>
<option value="Non-AC">Non-AC</option>
<option value="AC">AC</option>
</select>
</div>
<div class="form-cont">
<label for="acClass">AC Class (If applicable):</label>
<select id="acClass">
<option value="">--Select AC Class--</option>
<option value="First">First</option>
<option value="Second">Second</option>
<option value="Third">Third</option>
<option value="Economy">Economy</option>
</select>
</div>
<div class="form-cont">
<label for="seatNumber">Seat Number:</label>
<input type="text" id="seatNumber" placeholder="Enter seat number" required>
</div>
<div class="form-cont">
<label for="price">Original Price:</label>
<input type="number" id="price" placeholder="Enter ticket price" required>
</div>
<button type="submit" class="btn">Submit Ticket</button>
</form>
<p id="sellerMessage"></p>
</section>
<footer class="footer-container">
<div class="footer-top">
<div class="footer-logo-section">
<a href="#"> <img src="./images/3.jpeg" alt="easyJet holidays logo" class="footer-logo"></a>
<p style="color: #b5fdf4;">Affordable adventures, unforgettable memories—explore with ease.</p>
<p style="color: #dcfffa;" class="follow-us">FOLLOW US ON HERE:</p>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fa-brands fa-x-twitter"></i></a>
<a href="#"><i class="fab fa-linkedin"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div class="footer-links">
<div class="footer-column">
<h4>HELPFUL LINKS</h4>
<ul>
<li><a href="#">Help Centre</a></li>
<li><a href="#">Special Assistance</a></li>
<li><a href="#">Download The App</a></li>
<li><a href="#">Booking Conditions</a></li>
</ul>
</div>
<div class="footer-column">
<h4>ABOUT US</h4>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Investors</a></li>
<li><a href="ModernSlaveryAct.html">Modern Slavery Act</a></li>
<li><a href="terms.html">Terms Of Use</a></li>
</ul>
</div>
<div class="footer-column">
<h4>KEEPING SAFE</h4>
<ul>
<li><a href="#">ATOL Protected</a></li>
<li><a href="./travelawares.html">Travel Aware</a></li>
<li><a href="fcdoTravel.html">FCDO Travel Advice</a></li>
<li><a href="#">ABTA</a></li>
</ul>
</div>
<div class="footer-column">
<h4>FIND US</h4>
<ul>
<li><a href="contactus.html">Contact
<li><a href="GroupCookieNotice.html">Group Cookie Notice</a></li>
<li><a href="privacy.html">Privacy And Policy</a></li>
<li><a href="sitemap.html">Sitemap</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="footer-bottom">
<ul>
<li><a href="#">Holiday Type</a></li>
<li><a href="#">Holiday Deals</a></li>
<li><a href="#">Popular Counters</a></li>
<!-- <li><a href="#">Flight Only</a></li> -->
<li><a href="#">Top Hotels</a></li>
</ul>
</div>
</footer>
<script>
// cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const colors = [
"#BCE954",
"#98FF98",
"#9CB071",
"#90C209",
"#B2C248",
"#85BB65",
"#99C68E",
"#6CBB3C",
"#3ea055",
"#41a317",
"#4AA02C",
"#6AA121",
"#347C2C",
"#387C44",
"#437C17",
"#306754",
"#254117",
"#667C26",
"#728C00",
"#008000"
];
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.6;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
// cursor ends
// </script>
<script>
function toggleFAQ(element) {
const content = element.nextElementSibling; // Get the FAQ content
const toggleSymbol = element.querySelector('.expandToggle'); // Get the toggle symbol
// Check if content is visible
if (content.style.display === "block") {
content.style.display = "none"; // Hide content
toggleSymbol.textContent = "+"; // Change toggle symbol to "+"
} else {
content.style.display = "block"; // Show content
toggleSymbol.textContent = "-"; // Change toggle symbol to "-"
}
}
let items = document.querySelectorAll('.slider .item');
let active = 3;
function loadShow() {
items[active].style.transform = `none`;
items[active].style.zIndex = 1;
items[active].style.filter = 'none';
items[active].style.opacity = 1;
// show after
let stt = 0;
for (var i = active + 1; i < items.length; i++) {
stt++;
items[i].style.transform = `translateX(${120 * stt}px) scale(${1 - 0.2 * stt}) perspective(16px) rotateY(-1deg)`;
items[i].style.zIndex = -stt;
items[i].style.filter = 'blur(5px)';
items[i].style.opacity = stt > 2 ? 0 : 0.6;
}
stt = 0;
for (var i = (active - 1); i >= 0; i--) {
stt++;
items[i].style.transform = `translateX(${-120 * stt}px) scale(${1 - 0.2 * stt}) perspective(16px) rotateY(1deg)`;
items[i].style.zIndex = -stt;
items[i].style.filter = 'blur(5px)';
items[i].style.opacity = stt > 2 ? 0 : 0.6;
}
}
setInterval(() => {
active = (active + 1) % items.length;
loadShow();
}, 3000);
let next = document.getElementById('next');
let prev = document.getElementById('prev');
next.style.display = 'block';
prev.style.display = 'block';
next.onclick = function () {
active = (active + 1) % items.length;
loadShow();
}
animateCircles();
// cursor ends
</script>
<script>
// Toggle Navbar Links
const navToggle = document.getElementById('navToggle');
const navlinks = document.getElementById('navLinks');
navToggle.addEventListener('click', () => {
navlinks.style.display = navlinks.style.display === 'flex' ? 'none' : 'flex';
});
// Ensure navbar links are visible on large screens
window.addEventListener('resize', () => {
if (window.innerWidth > 768) {
navlinks.style.display = 'flex'; // Show links on large screens
} else {
navlinks.style.display = 'none'; // Hide links on small screens
}
});
// Set initial state based on the current window size
if (window.innerWidth > 768) {
navlinks.style.display = 'flex'; // Show links if starting on a large screen
} else {
navlinks.style.display = 'none'; // Hide links if starting on a small screen
}
</script>
<script src="app.js"> </script>
<script>
const darkModeToggle = document.getElementById('darkModeToggle');
const body = document.querySelector('body');
if (darkModeToggle) {
darkModeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
if (body.classList.contains('dark-mode')) {
darkModeToggle.innerHTML = "🔆";
}
else {
darkModeToggle.innerHTML = "🌙";
}
});
}
// change icon of the dark/light mode
prev.onclick = function () {
active = (active - 1 + items.length) % items.length;
loadShow();
}
</script>
<script src="about.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<script src="main.js"></script>
<script src="about.js"></script>
<script>
// Toggle Navbar Links
const navToggle = document.getElementById('navToggle');
const navlinks = document.getElementById('navLinks');
navToggle.addEventListener('click', () => {
navlinks.style.display = navlinks.style.display === 'flex' ? 'none' : 'flex';
});
// Ensure navbar links are visible on large screens
window.addEventListener('resize', () => {
if (window.innerWidth > 768) {
navlinks.style.display = 'flex'; // Show links on large screens
} else {
navlinks.style.display = 'none'; // Hide links on small screens
}
});
// Set initial state based on the current window size
if (window.innerWidth > 768) {
navlinks.style.display = 'flex'; // Show links if starting on a large screen
} else {
navlinks.style.display = 'none'; // Hide links if starting on a small screen
}
</script>
<script>
// Function to hide preloader and show content once the page has fully loaded
window.addEventListener('load', function () {
const preloader = document.getElementById('preloader');
const content = document.getElementById('content');
// Set a small timeout for better user experience
setTimeout(function () {
// Hide preloader
preloader.style.opacity = '0';
preloader.style.transition = 'opacity 1s ease-in-out';
// Show content after preloader fades out
setTimeout(function () {
preloader.style.display = 'none';
content.style.display = 'block';