PageSourceSearch

https://www.62.ua/assets/c4271ba4/js/fun-right-filter.js?v=1789825604

js 62.ua collected 2026-10-02 10:17:04 UTC 2,056 bytes, 59 lines download raw bytes

1(function ($) {
2
3    var $containerRightForm = $(".right-search-form"),
4        movingBtnSelector = ".movingBtn",
5        clearFilterButton = ".filter-links__close",
6        menuLineSelector = ".check-block",
7        menuGroupSelector = ".right-filter-section";
8
9    $("input, select", $containerRightForm).on("change", function () {
10        var $this = $(this),
11            closestParentSelector = $this.is(":checkbox") ? menuLineSelector : menuGroupSelector,
12            $parent = $this.closest(closestParentSelector);
13        if (0 === $parent.find(".clonedButton").length) {
14            hideButtons();
15            $(movingBtnSelector)
16                .clone(true)
17                .addClass("clonedButton js-btn-show-cloned")
18                .appendTo($parent)
19                .show();
20        }
21    });
22
23    $(clearFilterButton, $containerRightForm).on("click", function (event) {
24        var $currentBlock = $(this).closest(".filter-links__item"),
25            paramName = $currentBlock.data("param").split(","),
26            paramValue = $currentBlock.data("value");
27
28        $.each(paramName, function (index, value) {
29            var $control = $containerRightForm.find("[name='" + value + "'][value='" + paramValue + "']");
30            if (0 === $control.length) {
31                $control = $containerRightForm.find("[name='" + value + "']");
32                if (0 === $control.length) {
33                    return;
34                }
35            }
36            if ($control.is(":checked")) {
37                $control.prop("checked", false);
38            } else {
39                $control.val(null);
40            }
41            $control
42                .trigger("change")
43                .trigger('refresh')
44                .trigger("chosen:updated");
45        });
46        hideButtons();
47        $currentBlock
48            .addClass("crossed")
49            .closest(menuGroupSelector)
50                .append($(movingBtnSelector).show());
51
52        return false;
53    });
54
55    function hideButtons() {
56        $(".clonedButton").remove();
57    }
58
59})(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.