Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contributors/contributorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1901,4 +1901,9 @@ contributors = [
fullname: "JaviDB",
username: "https://github.com/JavierTLoina",
},
{
id: 375,
fullname: "Amna Mubarak",
username: "https://github.com/AmnaMubarak",
},
];
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ <h1 class="heading"><b>CONTRIBUTORS</b></h1>

<div class="d-flex justify-content-between align-items-center flex-wrap">
<p class="rubberBand delay-4s">Add yourself to the list if you contribute.</p>
<p class="contributor-count-text">Total Contributors: <span id="contributor-count">375</span></p>
<div class="inputs mr-3">
<label for="search" class="sr-only">Search contributors</label>
<i class="fa fa-search" aria-hidden="true"></i>
Expand Down
8 changes: 8 additions & 0 deletions scripts/contributors-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@
loadMoreBtn.hidden = visibleCount >= total;
}

function updateContributorCount(count) {
const countElement = document.getElementById('contributor-count');
if (countElement) {
countElement.textContent = count;
}
}

updateContributorCount(contributors.length);
render(contributors, visibleCount);
updateLoadMoreState(contributors.length);

Expand Down
Loading