-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'faq' of https://github.com/hars-21/Dot-Box into faq
- Loading branch information
Showing
19 changed files
with
1,090 additions
and
1,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const contributorsContainer = document.getElementById("contributors"); | ||
|
||
async function fetchContributors() { | ||
try { | ||
const response = await fetch( | ||
"https://api.github.com/repos/ChromeGaming/Dot-Box/contributors" | ||
); | ||
const contributors = await response.json(); | ||
|
||
contributors.forEach((contributor) => { | ||
const contributorCard = document.createElement("a"); | ||
contributorCard.href = contributor.html_url; | ||
contributorCard.target = "_blank"; | ||
contributorCard.className = "contributor-card"; | ||
contributorCard.innerHTML = ` | ||
<img src="${contributor.avatar_url}" alt="${contributor.login}"> | ||
<h2 class="text-lg font-medium text-gray-900 dark:text-gray-100 mb-2">${contributor.login}</h2> | ||
<p class="text-gray-700 dark:text-gray-400">Contributions: ${contributor.contributions}</p> | ||
`; | ||
contributorsContainer.appendChild(contributorCard); | ||
}); | ||
} catch (error) { | ||
console.error("Error fetching contributors:", error); | ||
} | ||
} | ||
|
||
fetchContributors(); | ||
}); |
Oops, something went wrong.