Skip to content

Commit

Permalink
Add Mart to counter
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Dec 20, 2023
1 parent 3448c2a commit d330ae6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,16 @@ <h2 class="mb-8 flex items-start justify-between text-2xl font-bold">
),
fetch("https://api.github.com/repos/SkyblockClient/Skyclient-installer-Java/releases").then(
(r) => r.json(),
fetch("https://api.github.com/repos/KTibow/Mart/releases").then(
(r) => r.json(),
),
]).then(async (responses) => {
const getCount = (json) => {
const artifact = json[0].assets[0];
if (!artifact) return 0;
return artifact.download_count;
};
const count = getCount(responses[0]) + getCount(responses[1]);
const count = getCount(responses[0]) + getCount(responses[1]) + getCount(responses[2]);
document.getElementById("template-versions").innerText = count;
});
</script>
Expand Down

0 comments on commit d330ae6

Please sign in to comment.