Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Total Contributors to the index.html #8101

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
8 changes: 8 additions & 0 deletions contributors/contributorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2090,4 +2090,12 @@ contributors = [
username: "https://github.com/Parth-Panjwani",
},

{
id: 442,
fullname: "Daniella E.",
username: "https://github.com/GitElla404",
},

];


13 changes: 12 additions & 1 deletion css/contributors.css
Original file line number Diff line number Diff line change
Expand Up @@ -634,4 +634,15 @@ body {
color: black;
font-weight: 600;
box-shadow: inset 120px 0 0 0 #fe0c43;
}
}


.contributor {
padding: 10px;
border-bottom: 1px solid #ccc;
font-size: 1.1rem;
}
#contributor-count {
font-weight: bold;
margin-top: 10px;
}
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
<div class="content">
<div class="container">
<span class="heading"><b>CONTRIBUTORS</b> </span>
<p id="contributor-count" class="text-muted"></p>

<div class="heart"></div>
<div class="tdnn">
<div class="moon"></div>
Expand Down
10 changes: 10 additions & 0 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href="https://github.com/fineanmol/Hacktoberfest${currentYear}" target="_blank">Here</a> 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;