PageSourceSearch

https://www.regal.co.jp/js/sys/goodslist_filter.js

js regal.co.jp collected 2026-10-02 02:27:25 UTC 1,574 bytes, 42 lines download raw bytes

1jQuery(document).ready(function () {
2    displayFilterBox();
3    displayFilterTree();
4});
5
6// 絞り込み項目の上下開閉
7function displayFilterBox() {
8    var sPanel = jQuery('#block_of_filter');
9    var Box = sPanel.children("form").children(".js-filter-box");
10    var trigger = jQuery('.js-filter-box-inner-label', Box);
11    trigger.click(function () {
12        var parentBox = jQuery(this).parents(".js-filter-box:first");
13        parentBox.toggleClass("block-filter--close");
14        jQuery(this).next(".block-filter--list-inner-accordion").slideToggle();
15        jQuery(this).find("i").toggleClass("fa-angle-down");
16        jQuery(this).find("i").toggleClass("fa-angle-right");
17    });
18}
19
20// ツリーの展開
21function displayFilterTree() {
22    jQuery(function () {
23        jQuery('.js-filter-treeitem-dir').click(function () {
24            var _thisMenu = jQuery(this);
25            _thisMenu.parents(".js-filter-tree-item:first").find(".js-filter-tree:first").slideToggle('fast');
26            jQuery(this).toggleClass("block-filter--treeitem-dir__close");
27            return false;
28        });
29    });
30}
31
32jQuery("#frmFilterList").on("submit",function(event){
33    event.preventDefault();
34    jQuery("#frmFilterList").off("submit");
35    const filterCode = ['keyword', 'maxprice', 'minprice'];
36    filterCode.forEach((filtercode) => {
37        if(jQuery("#filter-" + filtercode).val() == ""){
38            jQuery("#filter-" + filtercode).prop("disabled", true);
39        }
40    });
41    jQuery("#frmFilterList").submit();
42})

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.