diff --git a/Cargo.toml b/Cargo.toml index e1d02ba..62fde75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "khguide" -version = "0.1.0" +version = "1.0.1" edition = "2021" [dependencies] diff --git a/index.html b/index.html index 0e608e5..ed33a35 100644 --- a/index.html +++ b/index.html @@ -8,10 +8,16 @@ color: #fff; } + footer { + text-align: center; + } + table { + width: 100%; text-align: center; vertical-align: middle; border-collapse: collapse; + margin-top: 10px; thead th { background-color: #252525; @@ -55,6 +61,7 @@ const searchFilter = document.getElementById("filter"); let filterHandler = debounce(() => filter()); searchFilter.addEventListener("keyup", filterHandler); + searchFilter.placeholder = "Search commands..."; const searchInputs = document.querySelectorAll( 'input[type="radio"][name="search"]', @@ -63,6 +70,7 @@ searchInputs.forEach(function (item, index) { item.addEventListener("input", function () { searchType = this.checked ? this.value : ""; + searchFilter.placeholder = "Search " + this.value + "..."; filter(); }); }); @@ -111,7 +119,7 @@ resetStyle(child, tds); if (search.length > 0) { - if (searchType === "result") { + if (searchType === "commands") { // Check for command name if (!tds[1].innerText.toLowerCase().includes(search)) { child.style.display = "none"; @@ -183,7 +191,7 @@ id="searchResult" name="search" autocomplete="off" - value="result" + value="commands" checked /> @@ -4133,5 +4141,8 @@