-
Notifications
You must be signed in to change notification settings - Fork 209
/
index.html
822 lines (727 loc) · 24.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<head>
<link rel="icon" />
<link rel="icon" href="image/ml fusion lab log.jpg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ML Fusion Lab</title>
<!-- Linking Css -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./style/style.css" />
<link rel="stylesheet" href="./style/popup.css" />
<style>
header {
height: 200px;
}
nav ul{
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
}
nav ul li {
display: inline-block;
margin: 0 4px; /* Reduce margin between items */
font-size: 2pc; /* Smaller font size */
}
nav ul li a {
text-decoration: none;
padding: 6px 6px; /* Reduce padding for a more compact look */
color: #333;
transition: color 0.3s ease;
}
.logo {
margin: 30px 0 0 0;
}
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
margin-top: auto;
}
.footer-container {
max-width: 800px;
margin: auto;
padding: 0 20px;
}
.footer-links,
.footer-socials,
.footer-contact {
margin: 10px 0;
}
.footer-links a,
.footer-socials a {
color: white;
text-decoration: none;
margin: 0 10px;
transition: color 0.3s;
}
.footer-links a:hover,
.footer-socials a:hover {
color: #007bff;
}
.footer-socials a {
font-size: 24px;
margin: 0 15px;
}
.footer-contact a {
color: white;
}
.newsletter .input-group .input {
color: black;
/* height: 50px; */
width: 450px;
}
#scrollTopBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
background-color: #00BFFF;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
}
#scrollTopBtn:hover {
background-color: #555;
}
#cookie-consent {
position: fixed;
bottom: 10px;
left: 10px;
background-color: #f0f2f5;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 300px;
height: fit-content;
z-index: 10000;
border-radius: 10px;
margin-bottom: 5px;
margin: 20px;
border-right: 5px solid transparent;
border-bottom: 5px solid transparent;
transition: border-color 0.6s;
border: 3px solid #020172;
}
#cookie-consent:hover {
border-right-color: #020172;
border-bottom-color: #020172;
}
#cookie-consent p {
margin-bottom: 10px;
color: black; /* Make the text black for better visibility */
text-align: center; /* Center align the text */
}
.accept-cookies,
.reject-cookies {
width: 260px; /* Decrease the button width */
height: 35px; /* Decrease the button height */
color: white;
background-color: #011856;
border: none;
border-radius: 5px; /* Add rounded corners */
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s,
color 0.3s; /* Smooth transition for effects */
}
.reject-cookies {
margin-top: 10px;
}
.accept-cookies:hover,
.reject-cookies:hover {
transform: scale(0.95);
box-shadow: 0 0 15px rgb(164, 232, 240); /* Reduce the shadow size */
}
.accept-cookies:hover {
background-color: rgb(174, 233, 255);
color: #120141;
border: 2px solid blue;
}
.reject-cookies:hover {
background-color: rgb(174, 233, 255);
color: #0b025c;
border: 2px solid blue;
}
#learn-more-link,
#show-less-link {
color: #021667;
text-decoration: none;
cursor: pointer;
font-size: 20px;
}
#cookie-content {
display: none;
margin-top: 10px;
}
.dark-mode #cookie-consent {
background-color: #828281;
margin-left: 8px;
}
.dark-mode #cookie-consent p {
color: white;
margin-left: 8px;
}
</style>
</head>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style/scroll.css">
</head>
<body>
<!-- html for mouse cursor trail effect -->
<div class="circle-container">
<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>
<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>
<header>
<div id="progress-container">
<div id="progress-bar"></div>
</div>
<div class="logo">
<a href="index.html">
<h1>
<img
src="./image/ml fusion lab log.jpg"
alt="logo"
width="100"
height="100"
/>
</h1>
</a>
</div>
<nav>
<div class="hamburger" id="hamburger">☰</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="pages/courses.html">Courses</a></li>
<li><a href="pages/projects.html">Projects</a></li>
<li><a href="pages/about.html">About Us</a></li>
<li><a href="pages/contact.html">Contact</a></li>
<li><a href="pages/community_suport.html">Community Support</a></li>
<li><a href="pages/feedback.html">Feedback</a></li>
<li><a href="pages/login.html">Login</a></li>
<li><div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = {"default_language":"en","detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper","flag_size":16}</script>
<script src="https://cdn.gtranslate.net/widgets/latest/popup.js" defer></script></li>
<div class="theme-switch" id="theme-switch"></div>
</ul>
</nav>
</header>
<section class="hero">
<div class="hero-content">
<h2>Learn Machine Learning with Us</h2>
<p>
We provide top-notch resources to help you master machine learning,
from basics to advanced levels.
</p>
<a href="pages/courses.html" class="btn">Explore Courses</a>
</div>
</section>
<!-- about section starts -->
<section class="about" id="about">
<div class="row">
<div class="img-container">
<img
src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
alt="ML Fusion Lab"
/>
<h3>ML FUSION LAB</h3>
</div>
<div class="content">
<h3 class="content-heading">About Us</h3>
<!-- Added a heading for bold text -->
<p>
We are a community-driven platform that aims to provide free,
accessible, and high-quality machine learning tutorials, projects,
and resources for all. Whether you are a beginner or an experienced
professional, ML Fusion Labs has something to offer for everyone.
</p>
<a href="#" class="btn">Learn more</a>
</div>
</div>
</section>
<!-- Direct Course Jump-In -->
<div class="direct-course">
<h3 class="head-h3">Jump To Courses</h3>
<p class="crcPara">
Our platform is perfect for those eager to dive into Python programming
and explore the fascinating world of AI and ML. With comprehensive
tutorials and hands-on projects, you'll gain the skills needed to excel
in these cutting-edge fields.
</p>
<div class="en-course">
<a class="cr-box" href="https://roadmap.sh/python">Know The Roadmap</a>
<a class="cr-box" href="https://www.learnpython.org/">Learn Basics</a>
<a
class="cr-box"
href="https://www.w3schools.com/python/python_ml_getting_started.asp"
>Learn AI & ML</a
>
</div>
</div>
<!-- about section ends -->
<section class="features">
<div class="container">
<h2>Our Features</h2>
<div class="feature-grid">
<div class="feature-item">
<h3>Structured Learning</h3>
<p>
Our courses are designed for clarity and progress, from
fundamentals to expert-level topics.
</p>
</div>
<div class="feature-item">
<a href="pages/projects.html" style="text-decoration: none">
<h3>Practical Projects</h3>
<p>
Work on real-world ML projects to apply the concepts you learn.
</p>
</a>
</div>
<div class="feature-item">
<h3>Community Support</h3>
<p>
Collaborate with other learners and contribute to open-source ML
projects.
</p>
</div>
</div>
</div>
</section>
<div class="newsletter">
<div class="newsletter-left">
<h1>Sign Up for Newsletters</h1>
<p>
Get updates in your E-mail about
<span>latest deals and products</span>
</p>
</div>
<div class="newsletter-right">
<div class="input-group">
<input type="email" id="email" placeholder="Enter your email" class="input" required />
<button type="submit" class="submit-button" id="submit-button">
Subscribe
</button>
</div>
<div id="error-message" style="display: none; color: red; width: 242px">
Please enter a valid email address.
</div>
<!-- Confirmation message container -->
<div
id="confirmation-message"
style="display: none"
class="confirmation-message"
>
Thank you for subscribing to our newsletter!
</div>
</div>
</div>
<style>
.input-group {
display: flex;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.input {
transition: all 0.3s ease;
border: 2px solid #ccc;
padding: 10px;
border-radius: 4px 0 0 4px;
outline: none;
}
.input:focus {
border-color: #0056b3;
box-shadow: 0 0 10px rgba(0, 86, 179, 0.2);
}
.input::placeholder {
color: #999;
transition: all 0.3s ease;
}
.input:focus::placeholder {
opacity: 0;
transform: translateX(10px);
}
.submit-button {
transition: all 0.3s ease;
background-color: #0056b3;
color: white;
border: none;
padding: 20px;
border-radius: 0 4px 4px 0;
cursor: pointer;
position: relative;
height: 55px;
top: -10px;
overflow: hidden;
font-size: 16px;
text-align: center;
margin-top: 5px;
}
.submit-button:hover {
background-color: #003d82;
}
.submit-button::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transition: width 0.6s ease, height 0.6s ease;
transform: translate(-50%, -50%);
}
.submit-button:hover::before {
width: 350px;
height: 350px;
}
.submit-button:active {
transform: scale(0.95);
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(5px);
}
75% {
transform: translateX(-5px);
}
}
.input:invalid:not(:placeholder-shown) {
animation: shake 0.3s;
border-color: #ff3860;
}
.confirmation-message {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #4caf50;
color: white;
padding: 15px;
border-radius: 5px;
font-size: 16px;
z-index: 1000;
text-align: center;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
@media only screen and (max-width: 600px) {
.confirmation-message {
font-size: 14px;
padding: 10px;
width: 80%;
}
}
/* css for mouse cursor trail effect */
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(
circle,
rgba(102, 120, 134, 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 ( ) */
}
</style>
<footer>
<div class="container">
<div class="footer-socials">
Follow us on:
<a href="https://facebook.com" target="_blank"
><i class="fab fa-facebook-f"></i
></a>
<a href="https://twitter.com" target="_blank"
><i class="fa-brands fa-x-twitter"></i
></a>
<a href="https://linkedin.com" target="_blank"
><i class="fab fa-linkedin-in"></i
></a>
</div>
<div class="footer-contact">
<p>
Contact us:
<a href="mailto:[email protected]" style="color: white"
>
| Phone: +1 (555) 123-4567
</p>
</div>
<div class="footer-links">
<a href="pages/privacy.html">Privacy Policy</a> |
<a href="pages/terms.html">Terms of Service</a> |
<a href="pages/about.html">About Us</a> |
<a href="pages/contact.html">Contact</a> |
<a href="pages/contributor.html">Contributor</a>
</div>
<p>© 2024 ML Fusion Labs | All Rights Reserved</p>
</div>
<button id="scrollTopBtn" onclick="scrollToTop()"><i class="fas fa-arrow-up"></i></button>
</footer>
<script src="script/scroll.js"></script>
<!-- POP-UP HTML CODE GOES HERE -->
<!-- Pop-up for email sign-up -->
<div id="popup" class="popup">
<div class="popup-content">
<div class="popup-left">
<img src="image/popup.jpg" alt="ML Learning Image" >
</div>
<!-- <a href='#' class="popuplogo"><img src="ml fusion lab logo.jpeg" width="50" height="50"></a> -->
<div class="popup-right">
<h1>Join ML Fusion Lab!</h1>
<h2>Get Free Machine Learning Resources</h2>
<p>Sign up to avail upto <strong>75% off</strong> on your first purchase and boost your ML journey.</p>
<form id="emailForm">
<input type="email" id="email" placeholder="Enter your email" required>
<button type="submit" class="signup-btn">Sign Up Now</button>
</form>
<a href="#" class="no-thanks close-btn">No thanks</a>
<p class="terms">By signing up, you agree to our <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>.</p>
</div>
</div>
</div>
<div id="cookie-consent">
<p>
We use cookies to improve your experience. By using our website, you
consent to all cookies in accordance with our Cookie Policy.
<a href="#" id="learn-more-link">Learn More</a>
</p>
<div id="learn-more-content" style="display: none">
<p>
Cookies are small text files that can be used by websites to make a
user's experience more efficient. The law states that we can store
cookies on your device if they are strictly necessary for the
operation of this site. For all other types of cookies we need your
permission.
</p>
<p>
This site uses different types of cookies. Some cookies are placed by
third party services that appear on our pages.
</p>
</div>
<a href="#" id="show-less-link" style="display: none">Show Less</a>
<button class="accept-cookies">Accept</button>
<button class="reject-cookies">Reject</button>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const cookieConsent = document.getElementById('cookie-consent');
const acceptButton = document.querySelector('.accept-cookies');
const rejectButton = document.querySelector('.reject-cookies');
const learnMoreLink = document.getElementById('learn-more-link');
const learnMoreContent = document.getElementById('learn-more-content');
// Hide preloader after page load
window.addEventListener('load', function() {
const preloader = document.getElementById('preloader');
if (preloader) {
preloader.style.display = 'none';
}
cookieConsent.style.display = 'block';
});
// Check if localStorage is available
function localStorageAvailable() {
try {
const test = '__localStorage_test__';
localStorage.setItem(test, test);
localStorage.removeItem(test);
return true;
} catch (e) {
return false;
}
}
if (localStorageAvailable()) {
// Check if the user has already made a choice
if (localStorage.getItem('cookieConsent')) {
cookieConsent.style.display = 'none';
}
// Function to handle cookie consent choice
function handleConsent(choice) {
localStorage.setItem('cookieConsent', choice);
cookieConsent.style.display = 'none';
}
// Add event listeners to buttons
acceptButton.addEventListener('click', function() {
handleConsent('accepted');
});
rejectButton.addEventListener('click', function() {
handleConsent('rejected');
});
} else {
// Hide consent if localStorage is not available
cookieConsent.style.display = 'none';
}
// Add event listener to "Learn More" link
learnMoreLink.addEventListener('click', function(event) {
event.preventDefault();
learnMoreContent.style.display = 'block';
learnMoreLink.style.display = 'none';
});
});
</script>
<script src="script/scroll.js"></script>
<script src="script/script.js"></script>
<script>
const hamburger = document.getElementById('hamburger');
const navMenu = document.querySelector('header nav ul');
hamburger.addEventListener('click', () => {
navMenu.classList.toggle('show');
});
let isSubmitting = false; // Debouncing flag
// Function to show confirmation message
function showConfirmationMessage() {
var messageElement = document.getElementById("confirmation-message");
messageElement.style.display = "block";
messageElement.style.opacity = "1";
// Hide the message after 3 seconds
setTimeout(function () {
messageElement.style.opacity = "0";
setTimeout(function () {
messageElement.style.display = "none";
}, 500); // wait for the opacity transition to finish
}, 3000);
}
// Email validation function
function validateEmail(email) {
var re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return re.test(String(email).toLowerCase());
}
// Debounced form submission function
function debouncedSubmit(event) {
event.preventDefault(); // Prevent default form submission
var email = document.getElementById("email").value;
var errorMessage = document.getElementById("error-message");
// Check if already submitting (debouncing) and if email is valid
if (isSubmitting) {
return; // Prevent multiple submissions
}
if (!validateEmail(email)) {
errorMessage.style.display = "block"; // Show error message
return;
}
errorMessage.style.display = "none"; // Hide error message if valid
console.log("Form submitted");
// Simulate form submission with a delay (debounce)
isSubmitting = true;
showConfirmationMessage();
// Simulate form submission here if needed (AJAX or similar)
setTimeout(() => {
isSubmitting = false; // Reset debouncing after 5 seconds
}, 5000);
}
// Attach the function to the submit button
document
.getElementById("submit-button")
.addEventListener("click", debouncedSubmit);
</script>
<!-- js for mouse cursor trail effect -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});
window.addEventListener("mousemove", function (e) {
coords.x = e.pageX;
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position
});
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.transform = `scale(${
(circles.length - index) / circles.length
})`;
const nextCircle = circles[index + 1] || circles[0];
circle.x = x;
circle.y = y;
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
});
</script>
<!-- Botpress Chat Scripts -->
<script src="https://cdn.botpress.cloud/webchat/v2.2/inject.js"></script>
<script src="./script/popup.js"></script>
<script src="https://files.bpcontent.cloud/2024/10/06/10/20241006104845-C8MQIMON.js"></script>
</body>
</html>