mirror of
https://github.com/spacebarchat/docs.git
synced 2024-11-22 10:12:31 +01:00
prettier
This commit is contained in:
parent
fb1240251f
commit
291e6f2d07
@ -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,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user