From dd5541b5b25de02d43a73f0bc45777094c35d1a4 Mon Sep 17 00:00:00 2001 From: Abdullah Qureshi <62462707+abdullahq3102@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:21:11 -0400 Subject: [PATCH] Update index.html --- index.html | 162 ++++++++++++++++++++++++++++------------------------- 1 file changed, 85 insertions(+), 77 deletions(-) diff --git a/index.html b/index.html index 595e2d9..edfa99a 100644 --- a/index.html +++ b/index.html @@ -542,85 +542,93 @@

Projects

- +
+ ${project.title} +

${project.description}

+

Date: ${project.date.toDateString()}

+
+
+ ${project.title} + ${project.extraInfo} +
+ + + `; + recentProjectsDiv.innerHTML += projectHTML; + } + } + + // Load more function for the button + document.getElementById('load-more-btn').addEventListener('click', function() { + displayedProjects = projects.length; // After clicking, display all projects + displayProjects(displayedProjects); // Re-render with all projects + this.style.display = 'none'; // Hide the button after clicking once + }); + + // Initially display the first project + displayProjects(displayedProjects); + +