summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2025-03-05 20:40:30 +0100
committerFrancesco <tomaselli.fr@gmail.com>2025-03-05 20:40:30 +0100
commit17d4cf4916091e6d5a61cc2576f2513e41f57404 (patch)
tree2edfccded2065dc04d68f518be63a2cf43e9b7bf
parent4f061ae0a610bbc265927719477c19f4e58726be (diff)
Update
-rw-r--r--wiki/contributors.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/wiki/contributors.md b/wiki/contributors.md
index 3443c07..14b129e 100644
--- a/wiki/contributors.md
+++ b/wiki/contributors.md
@@ -12,10 +12,14 @@ hidePagination: true
hideBackToTop: false
---
-The theme has accumulated <span id="star-count">over 300</span> stars on Github, and
-currently counts <span id="contributors-count">over 20</span> contributors:
+<div id="loading-message">Fetching GitHub data, hang tight!</div>
-<ul id="contributors-list" style="list-style-type: none; padding: 0; margin-top: 2rem"></ul>
+<div id="content" style="display: none;">
+ The theme has accumulated <span id="star-count">over 300</span> stars on Github, and
+ currently counts <span id="contributors-count">over 20</span> contributors:
+
+ <ul id="contributors-list" style="list-style-type: none; padding: 0; margin-top: 2rem"></ul>
+</div>
<script>
async function fetchGitHubData() {
@@ -58,6 +62,9 @@ currently counts <span id="contributors-count">over 20</span> contributors:
}
function updateUI(starCount, contributors) {
+ document.getElementById("loading-message").style.display = "none";
+ document.getElementById("content").style.display = "block";
+
document.getElementById("star-count").textContent = `${starCount}`;
document.getElementById("contributors-count").textContent = `${contributors.length}`;