From bb180cfddbdd4f7664476033c7fbed82200980db Mon Sep 17 00:00:00 2001 From: meetarora Date: Sat, 3 Aug 2024 20:02:26 +0530 Subject: [PATCH] dice-commit --- Projects/Dice_Game/{dicee.html => index.html} | 1 - assets/js/index.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) rename Projects/Dice_Game/{dicee.html => index.html} (99%) diff --git a/Projects/Dice_Game/dicee.html b/Projects/Dice_Game/index.html similarity index 99% rename from Projects/Dice_Game/dicee.html rename to Projects/Dice_Game/index.html index c9ec6b94..c75073f4 100644 --- a/Projects/Dice_Game/dicee.html +++ b/Projects/Dice_Game/index.html @@ -23,7 +23,6 @@

Refresh Me

- diff --git a/assets/js/index.js b/assets/js/index.js index dbc1f3f1..a62be5b3 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -1,5 +1,5 @@ // Fetch the project data from the JSON file -fetch('./projectData.json') +fetch('../../projectData.json') .then(response => response.json()) .then(projectsData => { const projectListContainer = document.querySelector('.project-list'); @@ -8,11 +8,9 @@ fetch('./projectData.json') getProjectsInPage(); }) - // Generate
  • tags dynamically const generateLiTags = projectsData => { const liTags = []; - for (let tagNumber = 1; tagNumber <= 666; tagNumber++) { const projectData = projectsData[tagNumber.toString()]; @@ -21,7 +19,9 @@ const generateLiTags = projectsData => { const liTag = `
  • - + + +
    ${projectTitle}