forked from Suchitra-Sahoo/AgriLearnNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
990 lines (916 loc) · 32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AgriLearnNetwork</title>
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<link rel="icon" href="icon.png" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="./style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
/>
<link rel="stylesheet" href="./cursor/style.css" />
<link rel="stylesheet" href="./testimonials/testimonials.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
/>
<!-- <script src="testimonials.js" defer></script> -->
<!-- <script src="./cursor/script.js"></script> -->
<script
src="https://kit.fontawesome.com/b08b6de27e.js"
crossorigin="anonymous"
></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
/>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7972082263222296"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- <link rel="icon" href="./agriculture-icon-png-2804.png" type="'image/png"> -->
<style>
.legal-page a {
text-decoration: none;
color: white;
}
.legal-page a:hover {
color: rgb(192, 223, 100);
}
</style>
<link rel="stylesheet" href="./Scrollbar/scrollbar.css" />
</head>
<body>
<div id="progressBar"></div>
<script src="./Scrollbar/scrollbar.js"></script>
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<header class="header">
<img
src="icon.png"
alt="logo"
style="height: 50px; width: 50px; margin-right: 10px"
/>
<a href="#" class="logo" style="margin-inline-end: auto"
><h3>AgriLearnNetwork</h3>
</a>
<!-- adding the toggle mode button -->
<a>
<div class="theme-toggle">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
</div>
</a>
<i class="bx bx-menu" id="menu-icon"></i>
<nav class="navbar">
<a href="#home" class="active content"
><i class="fa-solid fa-house"></i> Home</a
>
<a href="./about/about.html"
><i class="fa-solid fa-circle-info"></i> About</a
>
<a href="./blog/blogpage.html" target="_self">
<i class="fa-solid fa-blog"></i> Blogs</a
>
<a href="#Resource Library"
><i class="fa-solid fa-book"></i> Resource Library</a
>
<a href="./FAQS/faqpage.html" target="_self"
><i class="fas fa-question-circle"></i>FAQs</a
>
<a href="#contact" id="nav--contact"
><i class="fa-solid fa-phone"></i> Contact</a
>
<a href="./buyproducts/buy_products.html"
><i class="fa fa-shopping-cart"></i>Buy Products</a
>
<a href="./login/login.html">
<button id="log-in-btn" class="login-btn">Login</button>
</a>
</nav>
</header>
<section class="home" id="home">
<div class="slider">
<div class="home-content content glow">
<h3 class="home--welcome">Welcome to</h3>
<h1 class="home--welcome">AgriLearnNetwork</h1>
<h3 class="home--welcome">
Your Agricultural Knowledge Hub to
<span class="multiple-text un"></span>
</h3>
</div>
<div class="slide_viewer">
<div class="slide_group">
<div
class="slide"
style="background-image: url(./images/carousel-img-2.jpg)"
></div>
<div
class="slide"
style="background-image: url(./images/carousel-img-1.jpg)"
></div>
<div
class="slide"
style="background-image: url(./images/carousel-img-3.jpg)"
></div>
<div
class="slide"
style="background-image: url(./images/carousel-img-4.jpg)"
></div>
<div
class="slide"
style="background-image: url(./images/carousel-img-2.jpg)"
></div>
<!--duplicate of the first image-->
<!-- <div class="slide" style="background-image: url(./images/carousel-img-5.jpg)"></div> -->
</div>
</div>
</div>
</section>
<section class="resource" id="Resource Library">
<h2 class="heading">Resource<span> Library</span></h2>
<br />
<br />
<div class="portfolio-container">
<div class="portfolio-box">
<h4 class="portfolio-heading">Sowing Techniques</h4>
<img
src="images/25803500_1621011873.jpg"
alt="PROJECT-IMG"
border="0"
/>
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/xIe2EjQNols?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Essential tools for sowing</h4>
<img
src="images/Best-Hand-Operated-Seeding-Machines-in-India4.jpg"
alt="PROJECT-IMG"
border="0"
/>
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/UiLixTOSo6Y?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Farm management</h4>
<img src="images/Farm-Management.png" alt="PROJECT-IMG" />
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/L1qZ_-cBdgM?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Seasonal plant guide</h4>
<img src="images/iStock-1179642020-1024x683.jpg" alt="PROJECT-IMG" />
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/exfgg_2WCts?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Crop care & maintenance</h4>
<img src="images/insects-on-a-field.jpg" alt="PROJECT-IMG" />
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/juzHupSvWcw?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Livestock management</h4>
<img src="images/tab-04.jpg" alt="PROJECT-IMG" />
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/uvN8HCs8low?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Irrigation Techniques</h4>
<img src="images/Methods-of-Irrigation.jpg" alt="PROJECT-IMG" />
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/Z9HAy9EYKKs?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Organic farming</h4>
<img
src="images/organic-farming-definition-examples-.jpg"
alt="PROJECT-IMG"
/>
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/iPeBBw5WxZo?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
<div class="portfolio-box">
<h4 class="portfolio-heading">Climate smart Farming</h4>
<img
src="images/Things-You-Should-Know-About-Smart-Agriculture.jpeg"
alt="PROJECT-IMG"
/>
<div class="portfolio-layer">
<iframe
width="407"
height="300"
src="https://www.youtube.com/embed/g0wkT3mf80U?rel=0"
frameborder="0"
allowfullscreen
></iframe>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<h1 id="testi">OUR TESTIMONIALS</h1>
<div class="wrapper">
<script src="./testimonials/testimonials.js" defer></script>
<i id="left" class="fa-solid fa-angle-left"></i>
<ul class="carousel">
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/2379005/pexels-photo-2379005.jpeg?auto=compress&cs=tinysrgb&w=600"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Blanche Pearson</h2>
<span
>AgriLearnNetwork has revolutionized my farming practices with its
easy-to-follow sustainable methods. The community support is
amazing!</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/2169434/pexels-photo-2169434.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Anna Kolson</h2>
<span
>This website is a treasure trove of knowledge for eco-friendly
farming. The guides are detailed and practical. Highly
recommend!</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/733872/pexels-photo-733872.jpeg"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Lariach French</h2>
<span
>I’m thrilled with the results after using AgriLearnNetwork’s
resources. The community is supportive, and the content is
top-notch.</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/1516680/pexels-photo-1516680.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">James Khosravi</h2>
<span
>Thanks to AgriLearnNetwork, I’ve seen a significant improvement in
my crop yields and soil health. A must-visit for every farmer.</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/732425/pexels-photo-732425.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Kristina Zasiadko</h2>
<span
>AgriLearnNetwork’s expert advice has been a game-changer for my
farm. The step-by-step guides make sustainable farming accessible to
all.</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/2287252/pexels-photo-2287252.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Donald Horton</h2>
<span
>Implementing the practices from AgriLearnNetwork has been a breeze.
The positive impact on my farm’s productivity is undeniable.</span
>
</li>
<li class="card">
<div class="img">
<img
src="https://images.pexels.com/photos/1987301/pexels-photo-1987301.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
alt="img"
draggable="false"
/>
</div>
<h2 id="testnames">Kriti Chauhan</h2>
<span
>AgriLearnNetwork offers the best tips and tricks for sustainable
farming. It’s an essential resource for modern farmers looking to go
green.
</span>
</li>
</ul>
<i id="right" class="fa-solid fa-angle-right"></i>
</div>
<!-- Contact Section -->
<section class="contact" id="contact">
<h2 class="heading">Contact <span>Us!</span></h2>
<form id="contact-form">
<div class="input-box">
<input type="text" placeholder="Full Name" id="fullname" required />
<input
type="email"
placeholder="Email Address"
id="emailaddress"
required
/>
</div>
<div class="input-box">
<input
type="number"
placeholder="Mobile Number"
id="mobileNumber"
required
/>
<input
type="text"
placeholder="Email Subject"
id="emailsubject"
required
/>
</div>
<textarea
id="message"
cols="30"
rows="10"
placeholder="Your Message"
required
></textarea>
<input
type="submit"
class="btn"
id="contact-btn"
value="Submit"
/><br />
</form>
<div class="button-container">
<button id="review-btn">Give feedback</button>
</div>
</section>
<!-- Modal -->
<div
id="modal"
class="modal fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center"
style="display: none"
>
<div class="modal-content bg-white p-6 rounded shadow-lg relative">
<h2 class="text-2xl font-bold mb-4">
WE'D LOVE YOUR FEEDBACK!
<span class="close cursor-pointer text-gray-500 absolute text-xl"
>×</span
>
</h2>
<p class="main-para mb-4">
Let us know how we're doing and how we can improve. <br /><strong
>AgriLearn Network</strong
>
</p>
<div class="rating mb-4">
<h3 class="rate-para text-xl font-semibold mb-2">
Rate Your Experience
</h3>
<div class="stars" id="stars">
<span class="star cursor-pointer" data-value="1">★</span>
<span class="star cursor-pointer" data-value="2">★</span>
<span class="star cursor-pointer" data-value="3">★</span>
<span class="star cursor-pointer" data-value="4">★</span>
<span class="star cursor-pointer" data-value="5">★</span>
</div>
<input type="hidden" name="rating" id="rating-value-input" required />
</div>
<form id="feedback-form">
<div class="form-group mb-4">
<label for="name" class="block text-left mb-2">Your Name</label>
<div class="form-group flex items-center mb-4">
<div class="icon mr-2">
<i class="fas fa-user"></i>
</div>
<input
id="name"
class="border p-2 w-full"
type="text"
placeholder="Your Name"
name="name"
required
/>
</div>
</div>
<div class="form-group mb-4">
<label for="email" class="block text-left mb-2">Your Email</label>
<div class="form-group flex items-center mb-4">
<div class="icon mr-2">
<i class="fas fa-envelope"></i>
</div>
<input
id="email"
class="border p-2 w-full"
type="email"
placeholder="Your Email"
name="email"
required
/>
</div>
</div>
<div class="form-group mb-4">
<label for="feedback" class="block text-left mb-2"
>Your Feedback</label
>
<textarea
id="feedback"
class="border p-2 w-full"
cols="30"
rows="5"
placeholder="Your Feedback"
required
></textarea>
</div>
<button
class="bg-blue-500 text-white px-4 py-2 rounded"
type="submit"
>
Submit Feedback
</button>
</form>
</div>
</div>
<div
id="thank-you-popup"
class="popup fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center"
style="display: none"
>
<div class="popup-content bg-white p-6 rounded shadow-lg text-center">
<h2>Thank You for your Feedback!💚</h2>
<div class="popup-icon">
<img
src="./images/feedback-tick.png"
alt="✅"
height="160"
width="180"
/>
</div>
<p class="pop-para">
Your feedback has been received!<br />
We appreciate the input you provide.
</p>
<button
class="popup-button bg-blue-500 text-white px-4 py-2 rounded"
onclick="closePopup()"
>
Back to Home
</button>
</div>
</div>
<div
id="rating-popup"
class="popup fixed inset-0 bg-gray-900 bg-opacity-50 flex items-center justify-center"
style="display: none"
>
<div class="popup-content bg-white p-8 rounded shadow-lg text-center">
<h2>Please Give a Rating!⭐</h2>
<div class="popup-icon">
<img
src="./images/Warning.webp"
alt="⚠️"
height="100"
width="120"
class="my-4"
style="margin-top: 20px; margin-bottom: 20px"
/>
</div>
<p class="pop-para">
Your feedback is important to us.<br />
Please select a rating before submitting.
</p>
<button
class="popup-button bg-blue-500 text-white px-4 py-2 rounded mt-4"
onclick="closeRatingPopup()"
>
OK
</button>
</div>
</div>
<script>
// Function to handle form submission
document
.getElementById("feedback-form")
.addEventListener("submit", function (event) {
event.preventDefault(); // Prevent default form submission
// Retrieve form values
const name = document.getElementById("name").value.trim();
const email = document.getElementById("email").value.trim();
const feedback = document.getElementById("feedback").value.trim();
const rating = document
.getElementById("rating-value-input")
.value.trim();
// Check if all fields are filled
if (name && email && feedback && rating) {
// Show the popup
document.getElementById("popup").style.display = "flex";
// Reset the form
this.reset();
// Clear the rating stars
const stars = document.querySelectorAll(".star");
stars.forEach((star) => star.classList.remove("active"));
}
});
// Function to close the popup
function closePopup() {
document.getElementById("popup").style.display = "none";
}
// Handling star ratings
// Handling star ratings
const stars = document.querySelectorAll(".star");
stars.forEach((star, index) => {
star.addEventListener("mouseover", function () {
// Remove active class from all stars
stars.forEach((s) => s.classList.remove("hover"));
// Add hover class to the hovered star and all previous stars
for (let i = 0; i <= index; i++) {
stars[i].classList.add("hover");
}
});
star.addEventListener("click", function () {
const value = parseInt(this.getAttribute("data-value"));
document.getElementById("rating-value-input").value = value;
// Remove active class from all stars
stars.forEach((s) => s.classList.remove("active"));
// Add active class to clicked star and all previous stars
for (let i = 0; i < value; i++) {
stars[i].classList.add("active");
}
});
});
// Remove hover class when mouse leaves the star container
document
.querySelector(".stars")
.addEventListener("mouseleave", function () {
stars.forEach((star) => star.classList.remove("hover"));
});
// Close modal
document.querySelector(".close").addEventListener("click", () => {
document.getElementById("modal").style.display = "none";
});
//RATING MODAL
document.addEventListener("DOMContentLoaded", function () {
const stars = document.querySelectorAll(".star");
const ratingInput = document.getElementById("rating-value-input");
const modal = document.getElementById("modal");
const closeModal = document.querySelector(".close");
stars.forEach((star) => {
star.addEventListener("click", function () {
const ratingValue = this.getAttribute("data-value");
ratingInput.value = ratingValue;
stars.forEach((star) => {
if (star.getAttribute("data-value") <= ratingValue) {
star.classList.add("text-yellow-500");
} else {
star.classList.remove("text-yellow-500");
}
});
});
});
document
.getElementById("feedback-form")
.addEventListener("submit", function (event) {
event.preventDefault();
if (!ratingInput.value) {
document.getElementById("rating-popup").style.display = "flex";
return;
}
document.getElementById("thank-you-popup").style.display = "flex";
});
closeModal.addEventListener("click", function () {
modal.style.display = "none";
});
});
function closePopup() {
document.getElementById("thank-you-popup").style.display = "none";
}
function closeRatingPopup() {
document.getElementById("rating-popup").style.display = "none";
}
// To open the modal
function openModal() {
document.getElementById("modal").style.display = "flex";
}
</script>
<!-- Contact form Backend -->
<script>
document
.getElementById("contact-form")
.addEventListener("submit", async function (e) {
e.preventDefault(); // Prevent the default form submission
// Gather form data
const fullname = document.getElementById("fullname").value;
const emailaddress = document.getElementById("emailaddress").value;
const mobileNumber = document.getElementById("mobileNumber").value;
const emailsubject = document.getElementById("emailsubject").value;
const message = document.getElementById("message").value;
try {
// Send data to backend
const response = await fetch("http://localhost:3000/contact", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
fullname,
emailaddress,
mobileNumber,
emailsubject,
message,
}),
});
if (response.ok) {
alert(
"Thank you for contacting us! We will get back to you soon."
);
document.getElementById("contact-form").reset(); // Clear form
} else {
alert(
"There was an error submitting your request. Please try again."
);
}
} catch (error) {
console.error("Error:", error);
alert("An unexpected error occurred. Please try again later.");
}
});
</script>
<footer class="footer">
<div class="footer-grid">
<div class="footer-title">
<h2>AgriLearnNetwork</h2>
</div>
<div class="footer-icons">
<p><b>Follow us on our socials:</b></p>
<div class="socialIcons">
<a
id="mail"
href="mailto:[email protected]"
class="email-link"
data-tooltip="[email protected]"
><i class="fas fa-envelope"></i
></a>
<a
id="inst"
href="https://www.instagram.com/your_username_here"
target="_blank"
><i class="fab fa-instagram"></i
></a>
<a
id="twit"
href="https://twitter.com/your_username_here"
target="_blank"
><i class="fa-brands fa-x-twitter"></i
></a>
<a
id="fb"
href="https://www.facebook.com/your_page_or_profile_here"
target="_blank"
><i class="fab fa-facebook"></i
></a>
</div>
</div>
</div>
<div class="quick-links">
<h2>Quick Links</h2>
<ul>
<li>
<a href="#home"><p>Home</p></a>
</li>
<li>
<a href="./about/about.html"><p>About Us</p></a>
</li>
<li>
<a href="./blog/blogpage.html"><p>Blogs</p></a>
</li>
<li>
<a href="./FAQS/faqpage.html"><p>FAQs</p></a>
</li>
<li>
<a href="#Resource Library"><p>Resource Library</p></a>
</li>
<li>
<a href="#contact"><p>Contact Us</p></a>
</li>
<li>
<a href="./buyproducts/buy_products.html"><p>Buy Products</p></a>
</li>
<li>
<a href="./Contributors/contributor.html"><p>Contributor</p></a>
</li>
</ul>
</div>
<div class="footer-text footer-right">
<p style="font-weight: 600; font-size: 15px">
Copyright ©
<script>
document.write(new Date().getFullYear());
</script>
by AgriLearnNetwork | All Rights Reserved
<span class="legal-page"
><a href="./testimonials/termsandconditions.html"
>| Terms and Conditions</a
></span
>
<span class="legal-page"
><a href="./testimonials/privacypolicy.html"
>| Privacy Policy</a
></span
>
</p>
</div>
</footer>
<div id="backtoTop">
<a href="#home"><i class="bx bx-up-arrow-alt"></i></a>
</div>
<div class="cursor"></div>
<div class="cursor2"></div>
<!--Floating Iconbar-->
<div class="icon-bar">
<a href="https://www.instagram.com/" class="instagram" target="_blank"
>Instagram<i class="fab fa-instagram"></i
></a>
<a href="https://www.facebook.com/" class="facebook" target="_blank"
>Facebook<i class="fab fa-facebook"></i
></a>
<a href="https://x.com/" class="twitter" target="_blank"
>Twitter<i class="fab fa-x-twitter"></i
></a>
<a href="https://www.linkedin.com/" class="linkedIn" target="_blank"
>LinkedIn<i class="fab fa-linkedin"></i
></a>
</div>
<script src="https://unpkg.com/scrollreveal"></script>
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script src="script.js"></script>
<!-- <script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script src="https://mediafiles.botpress.cloud/1cfb7415-d4fc-4477-8d00-3717d30c975b/webchat/config.js" defer></script> -->
<script src="https://cdn.botpress.cloud/webchat/v1/inject.js"></script>
<script>
window.addEventListener("scroll", function () {
var scrollPosition = window.scrollY;
var backToTopButton = document.getElementById("backtoTop");
if (scrollPosition > 300) {
// Adjust this value as needed to show the button at the desired scroll position
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
}
});
document.addEventListener("DOMContentLoaded", function () {
const slideGroup = document.querySelector(".slide_group");
let currentSlide = 0;
const images = [
"./images/carousel-img-2.jpg",
"./images/carousel-img-1.jpg",
"./images/carousel-img-3.jpg",
"./images/carousel-img-4.jpg",
];
function showSlide(n) {
slideGroup.style.left = `${-n * 100}%`; // Adjust left property based on current slide
currentSlide = n;
}
function nextSlide() {
currentSlide = (currentSlide + 1) % images.length; // Move to the next slide
showSlide(currentSlide);
}
setInterval(nextSlide, 2000); // Automatically change slide every 2 seconds
// Preload images for smoother transition
images.forEach((src) => {
const img = new Image();
img.src = src;
});
});
// mobile no validation @dhruv8433
const mobileNumberInput = document.getElementById("mobileNumber");
mobileNumberInput.addEventListener("input", () => {
const maxLength = 10;
const value = mobileNumberInput.value;
if (value.length > maxLength) {
mobileNumberInput.value = value.slice(0, maxLength);
}
});
</script>
<!-- <script src="https://mediafiles.botpress.cloud/43c4d3ec-a251-474f-8cce-3d8737805a57/webchat/config.js" defer></script> -->
<script type="text/javascript">
(function (d, t) {
var v = d.createElement(t),
s = d.getElementsByTagName(t)[0];
v.onload = function () {
window.voiceflow.chat.load({
verify: { projectID: "664632efd181ce0921d32ed5" },
url: "https://general-runtime.voiceflow.com",
versionID: "production",
});
};
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs";
v.type = "text/javascript";
s.parentNode.insertBefore(v, s);
})(document, "script");
</script>
<script type="text/javascript">
window.addEventListener("scroll", function () {
var header = document.querySelector("header");
header.classList.toggle("sticky", window.scrollY > 10);
});
</script>
<script>
var cursor = document.querySelector(".cursor");
var cursor2 = document.querySelector(".cursor2");
document.addEventListener("mousemove", function (e) {
cursor.style.cssText = cursor2.style.cssText =
"left: " + e.clientX + "px; top: " + e.clientY + "px;";
});
</script>
</body>
</html>