Skip to content

Commit

Permalink
improve search
Browse files Browse the repository at this point in the history
1. Update stats wording after the search.
2. Search box only searches for the license key or license name.
3. Showing search box on all pages

Reference: #58
Signed-off-by: Alok Kumar <[email protected]>
  • Loading branch information
alok1304 committed Jan 2, 2025
1 parent e92d03e commit 81655f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56618,8 +56618,10 @@

// https://datatables.net/reference/api/search()
let searchbox = $("#searchbox");
searchbox.on("keyup", function() {
table.search(this.value).draw();
searchbox.on("keyup", function () {
table.columns([0, 1]) // Specify the indices of the columns to search (0 and 1 are for the first two columns)
.search(this.value)
.draw();

// Inject the search value in the browser href
if (history.replaceState) {
Expand Down
2 changes: 1 addition & 1 deletion docs/static/datatables/jquery.dataTables-1.10.22.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/static/spectre-0.5.9.min.css

Large diffs are not rendered by default.

0 comments on commit 81655f3

Please sign in to comment.