PageSourceSearch

https://hypackel.github.io/fork/0/g/search.js

js hypackel.github.io collected 2026-10-03 09:19:19 UTC 635 bytes, 18 lines download raw bytes

1function search() {
2    var input = document.getElementById("search-bar").value.toLowerCase();
3    if (input === "") {
4        location.reload(); // Reload the page when the search bar is empty
5    } else {
6        var cards = document.getElementsByClassName("game-card");
7        for (var i = 0; i < cards.length; i++) {
8            var title = cards[i]
9                .getElementsByTagName("h3")[0]
10                .innerText.toLowerCase();
11            if (title.indexOf(input) > -1) {
12                cards[i].style.display = "";
13            } else {
14                cards[i].style.display = "none";
15            }
16        }
17    }
18}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.