From 7443fa382330b67e68f94d38f01575276f4b2cb5 Mon Sep 17 00:00:00 2001 From: Shourya Mishra <150536894+ShouryaMishra2006@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:25:06 +0530 Subject: [PATCH 1/3] Update index.html Added year toggle option --- home/templates/home/index.html | 87 +++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/home/templates/home/index.html b/home/templates/home/index.html index f53be6d..68b601b 100644 --- a/home/templates/home/index.html +++ b/home/templates/home/index.html @@ -66,7 +66,60 @@ background: #1C2331 !important; } } + + @@ -411,8 +464,30 @@
LDK

Past organizers

+
-
+
Card ImageAmit Kumar
-
+
-
+
Card ImageDivyansh Upadhyay
-
+
@@ -611,7 +686,7 @@
Ankit Sangwan
-
+
Card Image - \ No newline at end of file + From 33063f45692a532e2f049e8bdf45d93d00282dd3 Mon Sep 17 00:00:00 2001 From: Shourya Mishra <150536894+ShouryaMishra2006@users.noreply.github.com> Date: Sun, 20 Oct 2024 00:51:56 +0530 Subject: [PATCH 2/3] Update index.html Improved the section to include toggle button --- home/templates/home/index.html | 78 ++++++++++++---------------------- 1 file changed, 26 insertions(+), 52 deletions(-) diff --git a/home/templates/home/index.html b/home/templates/home/index.html index 68b601b..c9387fa 100644 --- a/home/templates/home/index.html +++ b/home/templates/home/index.html @@ -72,40 +72,16 @@ document.addEventListener("DOMContentLoaded", function () { const pastOrganisersSection = document.getElementById("pastorganizers"); if (pastOrganisersSection) { - const yearLinks = pastOrganisersSection.querySelectorAll(".year"); + const yearLinks = pastOrganisersSection.querySelectorAll('[id="year"]'); const organisersSections = pastOrganisersSection.querySelectorAll(".row"); organisersSections.forEach((section) => { section.style.display = "none"; }); - function applyStyles(link) { - link.style.color = '#1D4ED8'; - link.style.fontWeight = 'bold'; - link.style.textDecoration = 'none'; - link.style.transition = 'color 0.3s'; - } yearLinks.forEach((yearLink) => { - applyStyles(yearLink); - yearLink.addEventListener('mouseover', function() { - link.style.color = '#1E3A8A'; - }); - - yearLink.addEventListener('mouseout', function() { - link.style.color = '#1D4ED8'; - }); - yearLink.addEventListener('click', function(event) { - event.preventDefault(); - yearLinks.forEach(btn => { - btn.style.color = '#1D4ED8'; - btn.style.fontWeight = ''; - }); - yearLink.style.color = 'red'; - yearLink.style.fontWeight = 'bold'; - }); yearLink.addEventListener("click", function (e) { e.preventDefault(); const selectedYear = this.getAttribute("data-year"); - organisersSections.forEach((section) => { if (section.getAttribute("data-year") === selectedYear) { section.style.display = "block"; @@ -464,31 +440,14 @@
LDK

Past organizers

-
-
-
+ +
+
Card Image @@ -547,7 +506,12 @@
Amit Kumar
-
+ +
Card ImageDivyansh Upadhyay
-
+ +
@@ -686,7 +655,12 @@
Ankit Sangwan
-
+ +
Card Image Date: Sun, 20 Oct 2024 01:16:40 +0530 Subject: [PATCH 3/3] Update index.html --- home/templates/home/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/templates/home/index.html b/home/templates/home/index.html index c9387fa..eb5ae6a 100644 --- a/home/templates/home/index.html +++ b/home/templates/home/index.html @@ -555,7 +555,7 @@
Lovedeep Singh Kamal
-
+