Html docs with redirecting index.html

This commit is contained in:
bluefireoly
2020-10-16 16:06:52 +02:00
parent 0ab3e0b531
commit 3764794196
951 changed files with 68480 additions and 10603 deletions

7
docs/scripts/search.js Normal file
View File

@@ -0,0 +1,7 @@
let query = new URLSearchParams(window.location.search).get("query");
document.getElementById("searchTitle").innerHTML += '"' + query + '":';
document.getElementById("searchTable").innerHTML = pages
.filter(el => el.name.toLowerCase().startsWith(query.toLowerCase()))
.reduce((acc, element) => {
return acc + '<tr><td><a href="' + element.location + '">' + element.name + '</a></td></tr>'
}, "");