From 13e36a5b30e59ea4ce719f5b243f4f96f784459c Mon Sep 17 00:00:00 2001 From: gitella404 Date: Tue, 29 Oct 2024 05:17:27 +0000 Subject: [PATCH 1/3] Fetch and display the total number of contributors on page load. --- contributors/contributorsList.js | 8 ++++++++ css/contributors.css | 13 ++++++++++++- index.html | 2 ++ scripts/main.js | 10 ++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) diff --git a/contributors/contributorsList.js b/contributors/contributorsList.js index c024e73af0..a086250a13 100644 --- a/contributors/contributorsList.js +++ b/contributors/contributorsList.js @@ -2090,4 +2090,12 @@ contributors = [ username: "https://github.com/Parth-Panjwani", }, + { + id: 442, + fullname: "Daniella E.", + username: "https://github.com/GitElla404", + }, + ]; + + diff --git a/css/contributors.css b/css/contributors.css index 029d0365a8..f8cba739ae 100644 --- a/css/contributors.css +++ b/css/contributors.css @@ -634,4 +634,15 @@ body { color: black; font-weight: 600; box-shadow: inset 120px 0 0 0 #fe0c43; -} \ No newline at end of file +} + + +.contributor { + padding: 10px; + border-bottom: 1px solid #ccc; + font-size: 1.1rem; +} +#contributor-count { + font-weight: bold; + margin-top: 10px; +} diff --git a/index.html b/index.html index 48ba48ced1..4ae37a8faa 100644 --- a/index.html +++ b/index.html @@ -74,6 +74,8 @@
CONTRIBUTORS +

+
diff --git a/scripts/main.js b/scripts/main.js index f4e53650d6..4bfed24c86 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -216,3 +216,13 @@ $(".tdnn").click(function () { document.getElementById( "stats" ).innerHTML = `You guys are awesome, we have again passed the GitHub rate limit this hour. Here is a link to check out our repo's live stats.`; + + + + +function updateTotalContributors() { + const total = Contributors.length; + document.getElementById('contributor-count').innerText = `Total Contributors: ${total}.`; +} + +window.onload = updateTotalContributors; From edb506ffbf596bcfc84af4677b2b9199631a7842 Mon Sep 17 00:00:00 2001 From: gitella404 Date: Tue, 29 Oct 2024 05:44:31 +0000 Subject: [PATCH 2/3] --- contributors/contributorsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/contributorsList.js b/contributors/contributorsList.js index a086250a13..a2b1188160 100644 --- a/contributors/contributorsList.js +++ b/contributors/contributorsList.js @@ -2092,7 +2092,7 @@ contributors = [ { id: 442, - fullname: "Daniella E.", + fullname: "Daniella E", username: "https://github.com/GitElla404", }, From 8c8216105fac770c48b60d445a5600aa821f6b70 Mon Sep 17 00:00:00 2001 From: gitella404 Date: Tue, 29 Oct 2024 05:49:43 +0000 Subject: [PATCH 3/3] --- contributors/contributorsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors/contributorsList.js b/contributors/contributorsList.js index a2b1188160..a086250a13 100644 --- a/contributors/contributorsList.js +++ b/contributors/contributorsList.js @@ -2092,7 +2092,7 @@ contributors = [ { id: 442, - fullname: "Daniella E", + fullname: "Daniella E.", username: "https://github.com/GitElla404", },