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:
parent
91250e3061
commit
78c376c30f
@ -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");
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user