PageSourceSearch

https://moore.org/content/js/widgets/grid-filter-sort-controls/filter-popup.js

js moore.org collected 2026-09-24 08:41:40 UTC 1,007 bytes, 32 lines download raw bytes

1(function($) {
2    "use strict";
3
4    var $filtersPopUp = $(".filtersPopUp");
5    var $arrow = $(".filtersPopUpArrow");
6
7    $(".filterButton").on("click", function (e) {
8        e.preventDefault();
9        var currentDisplay = $filtersPopUp.css("display");
10        if (currentDisplay === "none") {
11            $filtersPopUp.css("display", "inline-block");
12            $arrow.show();
13        } else {
14            $filtersPopUp.css("display", "none");
15            $arrow.hide();
16        }
17    });
18
19    $(".searchFunctionSelector").on("change", function() {
20        switch($(this).val()) {
21            case "StartsWith":
22                window.setAutocompleteFilterToStartsWith();
23                break;
24            case "ContainsAny":
25                window.setAutocompleteFilterToContains();
26                break;
27            case "ExactMatch":
28                window.setAutocompleteFilterToExactMatch();
29                break;
30        }
31    }).trigger("change");
32})(jQuery);

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.