1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-22 10:12:31 +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,14 +1,16 @@
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) => {
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";
else elem.style.display = "none";
}
});
@ -18,7 +20,7 @@ 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);