-
-
Notifications
You must be signed in to change notification settings - Fork 431
/
pie.html
2374 lines (1969 loc) · 83.1 KB
/
pie.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pie-Chart-FinVeda</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description"
content="FinVeda provides comprehensive resources and tools for financial education, investment strategies, and personal finance management. Discover your path to financial wellness today!">
<meta name="keywords"
content="finance, financial education, personal finance, investment strategies, financial wellness, budgeting, money management">
<meta name="author" content="Ayush That">
<meta property="og:title" content="FinVeda - Your Guide to Financial Wellness">
<meta property="og:description"
content="FinVeda offers expert resources and tools for improving your financial knowledge and managing your investments effectively.">
<meta property="og:url" content="https://github.com/ayush-that/FinVeda">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="FinVeda - Your Guide to Financial Wellness">
<meta name="twitter:description"
content="Explore a wealth of financial resources at FinVeda to enhance your financial literacy and investment skills.">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link rel="manifest" href="/manifest.json">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "FinVeda",
"url": "https://github.com/ayush-that/FinVeda",
"description": "FinVeda provides comprehensive resources and tools for financial education, investment strategies, and personal finance management.",
"publisher": {
"@type": "Organization",
"name": "FinVeda",
"logo": {
"@type": "ImageObject",
"url": "/assets/images/favicon2.webp" // Replace with your logo URL
}
}
}
</script>
<link rel="shortcut icon" href="/assets/images/favicon2.webp" type="image/png" />
<link rel="stylesheet" href="./assets/css/animate.css" />
<link rel="stylesheet" href="./assets/css/magnific-popup.css" />
<link rel="stylesheet" href="./assets/css/slick.css" />
<link rel="stylesheet" href="./assets/css/LineIcons.css" />
<link rel="stylesheet" href="./assets/css/font-awesome.min.css" />
<link rel="stylesheet" href="./assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="./assets/css/default.css" />
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./assets/css/quiz.css" />
<link rel="stylesheet" href="./assets/css/popup.css" />
<link rel="stylesheet" href="./assets/css/cookiepopup.css">
<link rel="stylesheet" href="./assets\css\preloader.css" />
<link rel="stylesheet" href="./assets/css/faq.css">
<link rel="stylesheet" href="./assets/css/index.css">
<link rel="stylesheet" type="text/css" href="sipcalculatorCss.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.13/lottie.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Added the navbar.css file here so that the navbar looks nice and uniform in all pages -->
<link rel="stylesheet" href="navbar.css">
<style>
#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #f76b45;
z-index: 9999;
}
* {
cursor: url('/assets/images/ads_click_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg'), auto;
}
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(73, 232, 247, 0.466), rgba(141, 38, 172, 0.5));
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;
}
@media (max-width: 720px) {
.circle-container {
display: none;
}
}
.scroll-btn {
position: fixed;
top: 100px;
right: 4px;
background-color: #635adc;
color: white;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
font-size: 24px;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s;
display: flex;
z-index: 1000;
justify-content: center;
align-items: center;
}
.scroll-btn:hover {
background-color: #555;
/* Darker blue on hover */
}
.dropdown-menu li a {
color: #ff5722;
/* Change this color code to any color you like */
}
.dropdown-menu li a:hover {
color: #0a69ed;
/* Optional: change the color on hover */
}
body.dark-mode .theme-toggle,
body.dark-mode .theme-toggle:hover {
background-color: #112a2b;
padding: 0.25rem 2.3rem;
}
</style>
<body>
<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>
<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>
<div id="progressBar"></div>
<script>
window.onscroll = function () {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("progressBar").style.width = scrolled + "%";
};
</script>
<button id="scrollBtn" class="scroll-btn" onclick="scrollToNextSection()">
<i class="lni-chevron-down"></i>
</button>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Scroll button functionality
const scrollToNextSection = () => {
window.scrollBy({
top: window.innerHeight,
behavior: 'smooth',
});
};
// Attach the function to the button
document.getElementById('scrollBtn').onclick = scrollToNextSection;
});
</script>
<div id="preloader">
<div id="lottie-loader"></div>
</div>
<div class="content-wrapper">
<header class="header-area">
<div style="display: flex; justify-content: center;" class="navbar-area">
<div style="display: flex; justify-content: center;" class="container">
<div class="row">
<div style="display: flex; justify-content: center;" class="">
<nav class="navbar navbar-expand-lg " style="display: flex;">
<!-- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
<span class="toggler-icon"></span>
</button> -->
<div class="collapse navbar-collapse sub-menu-bar" id="navbarSupportedContent">
<div class="icon1">
<a href="./index.html">
<img src="./assets/images/FinvedaLogo.png" alt="icon.png" style="width: 13rem;">
</a>
</div>
<i class="fa-brands fa-searchengin glass" style="font-size: 35px; left: 150px;"></i>
<div class="search-container">
<input type="text" class="search-input" id="file-search" placeholder="Search for a file..."
oninput="showSuggestions()" onkeydown="navigateSuggestions(event)" />
<div class="suggestions" id="suggestions-list"></div>
</div>
<style>
</style>
<ul id="nav" class="navbar-nav ml-auto" style="margin: auto;">
<li class="nav-item">
<a class="page-scroll active-link" href="./index.html">
<i class="fas fa-home icon-hover" style="margin: 5px;"></i> Home
</a>
</li>
<li class="nav-item">
<a class="page-scroll" href="./about.html">
<i class="fas fa-info-circle icon-hover" style="margin: 5px;"></i> About Us
</a>
</li>
<li class="nav-item">
<a class="page-scroll" href="./contributors.html">
<i class="fas fa-solid fa-people-group icon-hover" style="margin: 5px;"></i> Contributors
</a>
</li>
<li class="nav-item">
<a class="page-scroll" href="./contact.html">
<i class="fas fa-envelope icon-hover" style="margin: 5px;"></i> Contact
</a>
</li>
<li class="nav-item">
<a class="page-scroll" href="./faq.html">
<i class="fas fa-question-circle icon-hover" style="margin: 5px;"></i> Help
</a>
</li>
<!-- Dropdown for Explore -->
<li class="nav-item dropdown" onmouseover="toggleDropdown(true)" onmouseout="toggleDropdown(false)">
<a class="page-scroll dropdown-toggle" href="#">
<i class="fas fa-chevron-down icon-hover" style="margin: 5px;"></i> Explore More
</a>
<ul class="dropdown-menu">
<li>
<a href="./finance.html">
<i class="fas fa-graduation-cap icon-hover" style="margin: 5px;"></i> Courses
</a>
</li>
<li><a href="./trends.html"><i class="fas fa-chart-line icon-hover" style="margin: 5px;"></i>
Trends</a></li>
<li><a href="./tools/sip.html"><i class="fas fa-tools icon-hover" style="margin: 5px;"></i>
Tools</a></li>
<li><a href="./blog.html"><i class="fas fa-blog icon-hover" style="margin: 5px;"></i> Blogs</a>
</li>
<li><a href="./quiz.html"><i class="fas fa-question icon-hover" style="margin: 5px;"></i> Quiz</a>
</li>
<li><a href="./Games/Games.html"><i class="fas fa-gamepad icon-hover" style="margin: 5px;"></i> Games</a>
</li>
<li><a href="./maps.html"><i class="fas fa-map icon-hover" style="margin: 5px;"></i> MAPS</a></li>
</ul>
</li>
<!-- Navigation item placeholder for Login/Register or Logout button -->
<li class="nav-item no-underline" id="auth-btn-container">
<a class="main-btn navbar-btn" style="padding: 2px 20px;" data-scroll-nav="0"
href="./loginPage.html">
<i class="fas fa-user-circle icon-hover" style="margin: 5px;"></i> Login/Register
</a>
</li>
<li class="nav-item no-underline align-self-center">
<button id="theme-toggle" class="theme-toggle">
<span>🌞</span>
</button>
</li>
</ul>
</div>
<script>
const files = [
{ name: "Home", path: "index.html" },
{ name: "Blogs", path: "blog.html" },
{ name: "Login", path: "login.html" },
{ name: "Auth", path: "auth.html" },
{ name: "Maps", path: "maps.html" },
{ name: "Reviews", path: "reviews.html" }
];
let selectedSuggestionIndex = -1;
// Function to show suggestions based on input
function showSuggestions() {
const input = document.getElementById("file-search").value.toLowerCase();
const suggestionsList = document.getElementById("suggestions-list");
suggestionsList.innerHTML = '';
selectedSuggestionIndex = -1; // Reset selection index
const filteredFiles = files.filter(file => file.name.toLowerCase().includes(input));
if (input && filteredFiles.length > 0) {
suggestionsList.style.display = 'block'; // Show suggestions
filteredFiles.forEach((file, index) => {
const suggestionItem = document.createElement("div");
suggestionItem.textContent = file.name;
suggestionItem.dataset.index = index;
suggestionItem.onclick = () => window.location.href = file.path; // Navigate on click
suggestionsList.appendChild(suggestionItem);
});
} else {
suggestionsList.style.display = 'none'; // Hide suggestions if no match
}
}
// Function to navigate suggestions with keyboard
function navigateSuggestions(event) {
const suggestionsList = document.getElementById("suggestions-list");
const suggestionItems = suggestionsList.querySelectorAll("div");
if (event.key === "ArrowDown") {
selectedSuggestionIndex = (selectedSuggestionIndex + 1) % suggestionItems.length; // Move down
updateActiveSuggestion(suggestionItems);
} else if (event.key === "ArrowUp") {
selectedSuggestionIndex = (selectedSuggestionIndex - 1 + suggestionItems.length) % suggestionItems.length; // Move up
updateActiveSuggestion(suggestionItems);
} else if (event.key === "Enter") {
if (selectedSuggestionIndex > -1 && suggestionItems[selectedSuggestionIndex]) {
suggestionItems[selectedSuggestionIndex].click(); // Click active suggestion
}
}
}
// Function to update the active suggestion's appearance
function updateActiveSuggestion(suggestionItems) {
suggestionItems.forEach(item => item.classList.remove("active"));
if (suggestionItems[selectedSuggestionIndex]) {
suggestionItems[selectedSuggestionIndex].classList.add("active");
suggestionItems[selectedSuggestionIndex].scrollIntoView({ block: "nearest" }); // Scroll to active suggestion
}
}
// Close suggestions when clicking outside the search container
document.addEventListener("click", function (event) {
if (!event.target.closest(".search-container")) {
document.getElementById("suggestions-list").style.display = 'none';
}
});
</script>
<script>
// Function to update the authentication button based on login status
function updateAuthButton() {
const authBtnContainer = document.getElementById("auth-btn-container");
const isLoggedIn = localStorage.getItem("isLoggedIn");
if (isLoggedIn) {
// Replace with Logout button if user is logged in
authBtnContainer.innerHTML = `<a class="main-btn navbar-btn" style="padding: 2px 20px; color: rgb(237, 242, 244); animation-duration: 0.4s; animation-name: ease;" id="logout-btn">Logout 🚪</a>`;
// Attach click event to Logout button
document.getElementById("logout-btn").addEventListener("click", function () {
// Clear login data from local storage and reload page
localStorage.removeItem("isLoggedIn");
localStorage.removeItem("currentUser");
window.location.reload();
});
} else {
// Show Login/Register button if user is not logged in
authBtnContainer.innerHTML = `<a class="main-btn navbar-btn" style="padding: 2px 20px; color: rgb(237, 242, 244); animation-duration: 0.4s; animation-name: ease;" data-scroll-nav="0" href="./loginPage.html">Login/Register 💻</a>`;
}
}
// Call updateAuthButton on page load to set the correct button
document.addEventListener("DOMContentLoaded", updateAuthButton);
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const toggleButton = document.getElementById('theme-toggle');
const body = document.body;
// Load theme from localStorage
const currentTheme = localStorage.getItem('theme');
if (currentTheme === 'dark') {
body.classList.add('dark-mode');
toggleButton.classList.add('dark');
toggleButton.textContent = '🌙'; // Update icon to match dark mode
}
// Toggle theme on button click
toggleButton.addEventListener('click', () => {
body.classList.toggle('dark-mode');
toggleButton.classList.toggle('dark');
// Update button icon and localStorage based on mode
if (body.classList.contains('dark-mode')) {
toggleButton.textContent = '🌙'; // Dark mode icon
localStorage.setItem('theme', 'dark');
} else {
toggleButton.textContent = '🌞'; // Light mode icon
localStorage.setItem('theme', 'light');
}
});
});
</script>
<div class="">
<!-- Login Modal -->
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close" style="display: flex; justify-content: right;">×</span>
<div class="mt-3">
<h3 class="join"><i class="fa-solid fa-right-to-bracket"></i> Login to join us....</h3>
<form class="px-3 py-4" id="loginForm">
<div class="form-group">
<label class="d-flex">Username</label>
<input type="text" placeholder="Username" class="form-control" required="">
</div>
<div class="form-group">
<label class="d-flex">Password</label>
<input type="password" placeholder="Password" class="form-control" required="">
<button type="button" class="toggle-password-btn"><i class="fa-solid fa-eye"></i></button>
</div>
<div class="form-check d-flex">
<input type="checkbox" class="form-check-input me-1" style="margin-top: 0;">
<label class="form-check-label" style="margin-bottom: 0;">Remember me</label>
<a href="#" id="forgot-password" style="margin-left: 120px;">Forget Password?</a>
</div>
<div style="height: 20px;"></div>
<button class="main-btn w-100 mb-3" onclick="submitForm('loginForm')">Sign in</button>
<p class="text-center">Don't have an account? <a href="#" id="registerLink">Register</a></p>
<div class="or-sign-in-with text-center">
<p>Or sign in with</p>
</div>
<div class="social-icons mt-3">
<ul class="list-inline">
<li><a href="#" class="google" id="google-login"><i class="fa-brands fa-google"></i></a>
</li>
<li><a href="#" class="facebook" id="facebook-login"><i
class="fa-brands fa-facebook-f"></i></a></li>
<li><a href="#" class="twitter" id="twitter-login"><i
class="fa-brands fa-x-twitter"></i></a>
</li>
</ul>
</div>
</form>
</div>
</div>
</div>
<style>
.search-container {
position: relative;
width: 300px;
margin: 20px auto;
border-radius: 25px;
}
.search-input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 25px;
box-sizing: border-box;
}
.suggestions {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 4px;
max-height: 150px;
overflow-y: auto;
display: none;
z-index: 1000;
}
.suggestions div {
padding: 10px;
cursor: pointer;
}
.suggestions div:hover,
.suggestions .active {
background-color: #f0f0f0;
}
</style>
<style>
/* Existing styles */
.search-input {
width: 100%;
padding: 10px;
padding-left: 40px;
/* Adjust left padding to accommodate the icon */
font-size: 16px;
border: 1px solid #ccc;
border-radius: 25px;
box-sizing: border-box;
margin-top: -80px;
}
</style>
<script>
// Add event listeners to the social media icons
document.getElementById('google-login').addEventListener('click', function () {
window.location.href = 'https://accounts.google.com/o/oauth2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=profile email';
});
document.getElementById('facebook-login').addEventListener('click', function () {
window.location.href = 'https://www.facebook.com/v13.0/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=public_profile email';
});
document.getElementById('twitter-login').addEventListener('click', function () {
window.location.href = 'https://twitter.com/i/oauth2/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=users.read';
});
</script>
<!-- Register Modal -->
<div id="registerModal" class="modal">
<div class="modal-content">
<span class="close" style="display: flex; justify-content: right;">×</span>
<div class="mt-3">
<h3 class="join"><i class="fa-solid fa-user"></i> Register to join us....</h3>
<div class="form-group">
<label class="d-flex">Email</label>
<input type="email" placeholder="Email" class="form-control" required="">
</div>
<div class="form-group">
<label class="d-flex">Username</label>
<input type="text" placeholder="Username" class="form-control" required="">
</div>
<div class="form-group">
<label class="d-flex">Password</label>
<input type="password" placeholder="Password" class="form-control" id="register-password"
required="" oninput="checkPasswordStrength()">
<button type="button" class="toggle-password-btn"
onclick="togglePasswordVisibility('register-password')">
<i class="fa-solid fa-eye"></i>
<i class="fa-solid fa-eye-slash" style="display: none;"></i>
</button>
</div>
<div id="password-meter" style="display: none; margin-top: 5px;">
<div id="meter"
style="height: 10px; background-color: #ccc; border-radius: 5px; transition: width 0.3s;">
</div>
<div id="strength-text" style="margin-top: 5px; font-weight: bold;"></div>
</div>
<!-- Import zxcvbn library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/zxcvbn/4.4.2/zxcvbn.js"></script>
<script>
function checkPasswordStrength() {
const password = document.getElementById('register-password').value;
const meter = document.getElementById('meter');
const meterContainer = document.getElementById('password-meter');
const strengthText = document.getElementById('strength-text');
if (password) {
meterContainer.style.display = 'block'; // Show the meter when typing
const result = zxcvbn(password);
const score = result.score; // Score ranges from 0 to 4
// Set meter width and color based on score
meter.style.width = (score + 1) * 20 + '%'; // Convert score to percentage
meter.style.backgroundColor = getMeterColor(score);
strengthText.innerText = getStrengthText(score); // Update strength text
} else {
meterContainer.style.display = 'none'; // Hide the meter if no password
strengthText.innerText = ''; // Clear strength text
}
}
function getMeterColor(score) {
switch (score) {
case 0: return 'red'; // Weak
case 1: return 'orange'; // Fair
case 2: return 'yellow'; // Good
case 3: return 'blue'; // Strong
case 4: return 'green'; // Very Strong
default: return 'gray';
}
}
function getStrengthText(score) {
switch (score) {
case 0: return 'Very Weak';
case 1: return 'Weak';
case 2: return 'Fair';
case 3: return 'Strong';
case 4: return 'Very Strong';
default: return '';
}
}
function togglePasswordVisibility(id) {
const passwordInput = document.getElementById(id);
const eyeIcon = passwordInput.nextElementSibling;
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
eyeIcon.children[0].style.display = 'none';
eyeIcon.children[1].style.display = 'inline';
} else {
passwordInput.type = 'password';
eyeIcon.children[0].style.display = 'inline';
eyeIcon.children[1].style.display = 'none';
}
}
</script>
<button class="main-btn mt-2 w-100 mb-3" onclick="submitForm('registerForm')">Register</button>
<p class="text-center">Already have an account? <a href="#" id="loginLink">Login</a></p>
<div class="or-sign-in-with text-center">
<p>Or sign up with</p>
</div>
<div class="social-icons mt-3">
<ul class="list-inline">
<li><a href="#" class="google" id="google-signup"><i class="fa-brands fa-google"></i></a>
</li>
<li><a href="#" class="facebook" id="facebook-signup"><i
class="fa-brands fa-facebook-f"></i></a></li>
<li><a href="#" class="twitter" id="twitter-signup"><i class="fa-brands fa-twitter"></i></a>
</li>
</ul>
</div>
</div>
</div>
</div>
<script>
// Add event listeners to the social media icons
document.getElementById('google-signup').addEventListener('click', function () {
window.location.href = 'https://accounts.google.com/o/oauth2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=profile email';
});
document.getElementById('facebook-signup').addEventListener('click', function () {
window.location.href = 'https://www.facebook.com/v13.0/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=public_profile email';
});
document.getElementById('twitter-signup').addEventListener('click', function () {
window.location.href = 'https://twitter.com/i/oauth2/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=users.read';
});
// Add event listener to the "Register" button in the login modal
document.getElementById('registerLink').addEventListener('click', function () {
// Close the login modal
document.getElementById('myModal').style.display = 'none';
// Open the registration modal
document.getElementById('registerModal').style.display = 'block';
});
// Add event listener to the "Login" button in the registration modal
document.getElementById('loginLink').addEventListener('click', function () {
// Close the registration modal
document.getElementById('registerModal').style.display = 'none';
// Open the login modal
document.getElementById('myModal').style.display = 'block';
});
// Function to close the modal window
var loginCloseButton = document.querySelector("#myModal .close");
loginCloseButton.addEventListener("click", function () {
var modal = document.getElementById("myModal");
modal.style.display = "none";
});
</script>
</script>
</div>
</nav>
<link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">
<nav class="mobile-menu ">
<a class="page-scroll" href="./index.html">Home 🏡</a>
<a class="page-scroll" href="./about.html">About Us 📖</a>
<a class="page-scroll" href="./trends.html">Trends 📈</a>
<a class="page-scroll" href="./tools/sip.html">Tools 🔧</a>
<a class="page-scroll" href="./blog.html">Blogs 📰</a>
<a class="page-scroll" href="./quiz.html">Quiz 🤔</a>
<a class="page-scroll main-btn" href="#" onclick="openModal()"
onmouseout="this.style.color='white'">Login/Register 💻</a>
<li class="nav-item no-underline">
<button id="theme-toggle2" class="theme-toggle2" style="margin-right: 2px;">
🌙
</button>
</li>
<div class="mobile-menu__trigger" onclick="toggleMobileMenu()">
<span></span>
</div>
</nav>
<script>
const toggleBtn = document.getElementById('theme-toggle2');
var body = document.body;
var currentTheme = localStorage.getItem('theme');
if (currentTheme === 'dark') {
body.classList.add('dark-mode');
toggleBtn.classList.add('dark');
toggleBtn.textContent = '🌞';
}
toggleBtn.addEventListener('click', function () {
body.classList.toggle('dark-mode');
toggleBtn.classList.toggle('dark');
// Update button icon based on mode
if (body.classList.contains('dark-mode')) {
toggleBtn.textContent = '🌞'; // Light mode icon
localStorage.setItem('theme', 'dark');
} else {
toggleBtn.textContent = '🌙'; // Dark mode icon
localStorage.setItem('theme', 'light');
}
});
</script>
</div>
<link href="./navbar.css" rel="stylesheet">
<script type="text/javascript" src="./navbar.js"></script>
</div>
</div>
</div>
</div>
<div id="home" class="header-hero bg_cover" style="background-image: url(./assets/images/banner-bg.svg)">
<div class="container">
<h2 class="head-animate"
style="font-size: 90px;">
WELCOME TO Veda-Pie
</h2>
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="header-hero-content text-center">
<style>
.head-animate {
text-align: center;
position: relative;
top: 200px;
color: transparent;
-webkit-text-stroke: 2px white;
-moz-text-stroke: 2px white;
-ms-text-stroke: 2px white;
font-weight: bold;
background: url(./assets/images/back.png);
-webkit-background-clip: text;
-moz-background-clip: text;
background-clip: text;
background-position: 0 0;
animation: back 20s linear infinite, hovering 1.5s ease-in-out infinite;
}
@keyframes back {
100% {
background-position: 2000px 0;
}
}
@keyframes hovering {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
100% {
transform: translateY(0);
}
}
.header-hero-content h2 {
font-size: 200px;
}
/* Styled button */
.styled-btn {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
margin-top: 20px;
margin-left: 280px;
}
.styled-btn:hover {
background-color: #45a049;
transform: scale(1.05);
}
.styled-btn:active {
transform: scale(0.98);
}
/* Mobile Responsive Styles */
@media (max-width: 1024px) {
.head-animate {
font-size: 90px; /* Adjust font size for tablets */
top: 100px; /* Adjust positioning */
}
.header-hero-content h2 {
font-size: 150px; /* Adjust heading size for medium screens */
}
.styled-btn {
margin-left: 0;
width: 100%;
padding: 14px 0;
font-size: 18px;
margin-top: 10px;
}
.header-hero-image img {
width: 80%; /* Adjust image size for smaller screens */
height: auto;
}
}
@media (max-width: 768px) {
.head-animate {
font-size: 70px; /* Adjust font size for smaller tablets and larger phones */
top: 50px;
}
.header-hero-content h2 {
font-size: 120px; /* Adjust heading size */
}
.styled-btn {
margin-left: 0;
width: 100%;
padding: 14px 0;
font-size: 18px;
}
.header-hero-image img {
width: 100%; /* Make the image fully responsive */
height: auto;
}
.header-hero-content p {
font-size: 16px; /* Reduce paragraph font size */
}
}
@media (max-width: 480px) {
.head-animate {
font-size: 50px; /* Further reduce font size for very small screens */
top: 20px;
}
.header-hero-content h2 {
font-size: 80px;
}
.header-hero-content p {
font-size: 14px; /* Make text smaller on very small screens */
padding: 0 10px;
}
.styled-btn {
padding: 16px 0;
font-size: 18px;
width: 100%;
margin-left: 0;
}
.header-hero-image img {
width: 100%;
height: auto;
}
}
</style>
<br><br>
<a href="#" class="main-btn wow fadeInUp" data-wow-duration="1.3s" data-wow-delay="1.1s"
onclick="window.botpressWebChat.sendEvent({ type: 'show' }); return false;"
style="visibility: visible; animation-duration: 1.3s; animation-delay: 1.1s; color:white">
Chat with ArthaSathi 💬
</a>
</div>
<button class="styled-btn" onclick="window.location.href='reviews.html'">Share Experience</button>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="header-hero-image text-center wow fadeIn" data-wow-duration="1.3s" data-wow-delay="1.4s"
style="visibility: visible; animation-duration: 1.3s; animation-delay: 1.4s;">
<div class="anim" data-tilt="">
<img src="assets/images/header-hero.webp" style="animation: float 1.5s ease-in-out infinite;" data-tilt=""/>
</div>
</div>
</div>
</div>
</div>