PageSourceSearch

https://technofactor.ru/local/templates/techno/components/bitrix/m…/script.js?17666557243031

js technofactor.ru collected 2026-09-26 09:40:35 UTC 3,031 bytes, 60 lines download raw bytes

1$(document).ready(function () {
2    /**
3     * Клик по меню
4     */
5    $(document).on("click", "#mobile-panel .category a", function () {
6        var childCategory = $(this).parent().children(".category");
7
8        if (childCategory.length > 0) {
9            childCategory.addClass("active");
10
11            $("#mobile-panel .js_nav_catalog").html("< Назад");
12
13            $("#mobile-panel .mobile-catalog-menu").animate({
14                "margin-left": 0 - (270 * ($(".category.active").length - 1)),
15            }, 200, function() {
16                // ставлю высоту активного блока
17                $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height());
18            });
19
20            return false;
21        }
22        else {
23            return true;
24        }
25    });
26
27    $(document).on("click", ".js_nav_catalog", function () {
28        // показываю каталог
29        if ($("#mobile-panel .item-slide-menu .category.active").length == 0) {
30            $("#mobile-panel .item-slide-menu > .category").addClass("active");
31            // ставлю высоту активного блока
32            $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height());
33        }
34        else {
35            //скрываю до кнопки
36            if ($("#mobile-panel .item-slide-menu .category.active").length == 1) {
37                $("#mobile-panel .item-slide-menu .category.active").last().removeClass("active");
38                $("#mobile-panel .item-slide-menu").css("height",0);
39                $("#mobile-panel .js_nav_catalog").html('<i class="fa fa-shopping-cart" aria-hidden="true"></i> Каталог <i class="fa fa-chevron-down"></i>');
40
41                // ставлю высоту активного блока
42                $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height());
43            }
44            else {
45                // скрываю 1 раздел
46                $("#mobile-panel .mobile-catalog-menu").animate({
47                    "margin-left": 0 - (270 * ($(".category.active").length - 2)),
48                }, 200, function() {
49                    $("#mobile-panel .item-slide-menu .category.active").last().removeClass("active");
50                    //скрываю до кнопки
51                    if ($("#mobile-panel .item-slide-menu .category.active").length == 1) {
52                        $("#mobile-panel .js_nav_catalog").html('<i class="fa fa-shopping-cart" aria-hidden="true"></i> Каталог <i class="fa fa-chevron-right"></i>');
53                    }
54                    // ставлю высоту активного блока
55                    $("#mobile-panel .item-slide-menu").css("height",$("#mobile-panel .item-slide-menu .category.active").last().height());
56                });
57            }
58        }
59    });
60});

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.