1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-22 10:12:31 +01:00

Add route counter

This commit is contained in:
Madeline 2023-04-22 18:18:34 +10:00
parent 91250e3061
commit 78c376c30f
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 15 additions and 10 deletions

View File

@ -16,7 +16,11 @@ document
(async () => {
const res = await fetch(MISSING_ROUTES_LIST);
const missingRoutes = await res.json();
const json = await res.json();
const missingRoutes = json.routes;
document.getElementById("counter").innerHTML = `We implement ${json.missing}/${json.discord} endpoints from Discord.com ` +
`as well as ${(json.spacebar + json.missing) - json.discord} additional endpoints.`;
for (let route of missingRoutes) {
const elem = document.createElement("li");

View File

@ -16,6 +16,7 @@ by scraping the latest Discord.com client.
placeholder="Search missing routes"
/>
</div>
<p id="counter"></p>
<ul id="missing-routes-list">
</ul>
</div>