Skip to content

Commit

Permalink
Update contributorsSection.js
Browse files Browse the repository at this point in the history
  • Loading branch information
multiverseweb authored Nov 9, 2024
1 parent 31df137 commit e09e430
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions resources/contributorsSection.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@

//for the on scroll progressbar
(function () {
const handleScroll = () => {
const totalHeight =
document.documentElement.scrollHeight - window.innerHeight;
const scrollPosition = window.pageYOffset;
const scrollPercentage = (scrollPosition / totalHeight) * 100;
document.getElementById(
"progress-bar-con"
).style.width = `${scrollPercentage}%`;
};

window.addEventListener("scroll", handleScroll);
return () => {
window.removeEventListener("scroll", handleScroll);
};
})();

// Fetch data from GitHub API
const repoOwner = "multiverseweb"; // Repository owner for CodeIt
const repoName = "CodeIt"; // Repository name for CodeIt

Expand Down Expand Up @@ -98,5 +78,3 @@ function applyMouseEffectToCards() {

// Call the function to fetch and display data
fetchContributorData();


0 comments on commit e09e430

Please sign in to comment.