From 8f8cecd959863932d857ea5b5a40e8b5e0c7b651 Mon Sep 17 00:00:00 2001 From: codeXsidd Date: Fri, 20 Mar 2026 21:41:17 +0530 Subject: [PATCH 1/2] Fix github URL to point to codeXsidd instead of devvsakib --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 3fba447..53c42df 100644 --- a/script.js +++ b/script.js @@ -2,7 +2,7 @@ const rowEl = document.getElementById("rowEl"); // Function to fetch data from api and send to manageData(). function getData(){ -fetch('https://api.github.com/repos/devvsakib/Frontend-Projects/contents') +fetch('https://api.github.com/repos/codeXsidd/Frontend-Projects/contents') .then(response => response.json() ) .then(data => { @@ -24,7 +24,7 @@ function manageData(data){ rowEl.innerHTML += `
-
+
From 57d8d52a7484a45020b8dafcd5fcf7325a354a40 Mon Sep 17 00:00:00 2001 From: codeXsidd Date: Fri, 20 Mar 2026 21:55:14 +0530 Subject: [PATCH 2/2] Fix: Correct class attribute typo in script.js and resolve lint warnings --- index.html | 2 +- script.js | 35 +++++++++++++++++------------------ style.css | 5 +++-- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/index.html b/index.html index 997c416..033a22e 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ -
+
Frontend-Projects
diff --git a/script.js b/script.js index 53c42df..0950b1a 100644 --- a/script.js +++ b/script.js @@ -1,34 +1,33 @@ -const rowEl = document.getElementById("rowEl"); +const rowEl = document.getElementById("rowEl"); // Function to fetch data from api and send to manageData(). -function getData(){ -fetch('https://api.github.com/repos/codeXsidd/Frontend-Projects/contents') - .then(response => response.json() - ) - .then(data => { - //Data = data; - //console.log(data); // Prints result - manageData(data); - - }) - .catch(error => console.error(error)) +function getData() { + fetch('https://api.github.com/repos/devvsakib/Frontend-Projects/contents') + .then(response => response.json() + ) + .then(data => { + //Data = data; + //console.log(data); // Prints result + manageData(data); + + }) + .catch(error => console.error(error)) } // Function to manage data and set button link for each project. -function manageData(data){ - data.forEach((array , idx) =>{ +function manageData(data) { + data.forEach((array, idx) => { //console.log(data.name); - if(array.name[0]!=".") - { + if (array.name[0] != ".") { //console.log(array.name); rowEl.innerHTML += `
-
+
-
+