PageSourceSearch

https://www.readynez.com/build/js/frontPage.js?v=_aTaQ52iGgdr7oJ5iyA0bpg4CaOIqOSjL-sNVPmHPAg

js readynez.com collected 2026-10-02 17:18:02 UTC 3,577 bytes, 124 lines download raw bytes

1var pageSize = 9;
2// Single Category Selection
3function showMoreWithSingleFilter() {
4    filterSingleCategoryData();
5}
6function filterSingleCategory() {
7    $(".postitem").addClass("d-none");
8    filterSingleCategoryData();
9}
10
11$('#productLineSearchSingle').keyup(function () {
12    $(".postitem").addClass("d-none");
13    filterSingleCategoryData();
14});
15
16function filterSingleCategoryData() {
17    var selectedVal = $('input[name="singleCataegory"]:checked').val();
18    var searchVal = $('#productLineSearchSingle').val();
19    var regex = new RegExp(searchVal, "i");
20    var items = document.querySelectorAll('.postitem');
21    var _items = [];
22    items.forEach(function (item) {
23        if (selectedVal != undefined && searchVal != "") {
24            if ($(item).data("category").includes(selectedVal) && regex.test($(item).text())) {
25                _items.push(item);
26            }
27        }
28        else if (selectedVal != undefined) {
29            if ($(item).data("category").includes(selectedVal)) {
30                _items.push(item);
31            }
32        }
33        else if (searchVal != "") {
34            if (regex.test($(item).text())) {
35                _items.push(item);
36            }
37        }
38        else {
39            _items.push(item);
40        }
41    });
42
43    var counter = 0;
44    var t = $.grep(_items, function (n, i) {
45        return ($(n).hasClass('d-none'));
46    });
47    if (_items.length > 9 && t.length > 9) {
48        $("#btnFilter").show();
49    }
50    else {
51        $("#btnFilter").hide();
52    }
53    _items.forEach(function (item) {
54        if ($(item).hasClass('d-none') && counter < 9) {
55            counter++;
56            $(item).removeClass('d-none');
57            $(item).show();
58        }
59    });
60}
61
62// Multi Category Selection
63function showMoreWithMultiFilter() {
64    filterMultiCategoryData();
65}
66function filterMultiCategory() {
67    $(".postitem").addClass("d-none");
68    filterMultiCategoryData();
69}
70
71$('#productLineSearchMulti').keyup(function () {
72    $(".postitem").addClass("d-none");
73    filterMultiCategoryData();
74});
75
76function filterMultiCategoryData() {
77    var checkedVals = $('input[name="multiCategories"]:checked').map(function () {
78        return this.value;
79    }).get();
80    var searchVal = $('#productLineSearchMulti').val();
81    var regex = new RegExp(searchVal, "i");
82    var items = document.querySelectorAll('.postitem');
83    var _items = [];
84    items.forEach(function (item) {
85        var categories = $(item).data("category").split(",");
86        var matchCategory = categories.filter(element => checkedVals.includes(element));
87        if (checkedVals.length > 0 && searchVal != "") {
88            if (matchCategory.length > 0 && regex.test($(item).text())) {
89                _items.push(item);
90            }
91        }
92        else if (checkedVals.length > 0) {
93            if (matchCategory.length > 0) {
94                _items.push(item);
95            }
96        }
97        else if (searchVal != "") {
98            if (regex.test($(item).text())) {
99                _items.push(item);
100            }
101        }
102        else {
103            _items.push(item);
104        }
105    });
106
107    var counter = 0;
108    var t = $.grep(_items, function (n, i) {
109        return ($(n).hasClass('d-none'));
110    });
111    if (_items.length > 9 && t.length > 9) {
112        $("#btnFilter").show();
113    }
114    else {
115        $("#btnFilter").hide();
116    }
117    _items.forEach(function (item) {
118        if ($(item).hasClass('d-none') && counter < 9) {
119            counter++;
120            $(item).removeClass('d-none');
121            $(item).show();
122        }
123    });
124}

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.