1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-09 20:02:32 +01:00
This commit is contained in:
Madeline 2023-02-03 13:24:11 +11:00
parent fb1240251f
commit 291e6f2d07
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 15 additions and 13 deletions

View File

@ -1,16 +1,18 @@
const MISSING_ROUTES_LIST = "https://raw.githubusercontent.com/fosscord/fosscord-missing-routes/main/missing.json";
const MISSING_ROUTES_LIST =
"https://raw.githubusercontent.com/fosscord/fosscord-missing-routes/main/missing.json";
const listMount = document.getElementById("missing-routes-list");
document.getElementById("missing-routes-search").addEventListener("input", (e) => {
const content = e.target.value.toLowerCase();
document
.getElementById("missing-routes-search")
.addEventListener("input", (e) => {
const content = e.target.value.toLowerCase();
for (let elem of listMount.children) {
if (elem.innerText.toLowerCase().indexOf(content) !== -1)
elem.style.display = "list-item";
else
elem.style.display = "none";
}
});
for (let elem of listMount.children) {
if (elem.innerText.toLowerCase().indexOf(content) !== -1)
elem.style.display = "list-item";
else elem.style.display = "none";
}
});
(async () => {
const res = await fetch(MISSING_ROUTES_LIST);
@ -18,10 +20,10 @@ document.getElementById("missing-routes-search").addEventListener("input", (e) =
for (let route of missingRoutes) {
const elem = document.createElement("li");
const inner = document.createElement("code")
const inner = document.createElement("code");
inner.innerText = route;
elem.appendChild(inner);
listMount.appendChild(elem);
}
})();
})();

View File

@ -2,4 +2,4 @@
## [Migrations](migrations.md)
## [Missing routes](missingroute.md)
## [Missing routes](missingroute.md)