PageSourceSearch

https://evol-group.ru/local/templates/kodo_03_05/components/bitrix…/catalog_block/script.min.js?17661027742470

js evol-group.ru collected 2026-10-07 17:56:20 UTC 2,470 bytes, 48 lines download raw bytes

1funcDefined("sliceItemBlock") || (sliceItemBlock = function () {
2    $(".catalog-block .catalog-block__item:visible .catalog-block__info-title").sliceHeight({
3        row: ".grid-list",
4        item: ".catalog-block__item:visible",
5        mobile: !0
6    })
7}), function () {
8    const ready = function (callback) {
9        "loading" !== document.readyState ? callback() : document.addEventListener("DOMContentLoaded", callback)
10    }, equalHeight = function (options) {
11        const parent = options.items.parent(), parentRect = parent[0].getBoundingClientRect(), index = options.index;
12        let items = options.items, size = options.size;
13        if (!size) {
14            const rect = options.items[0].getBoundingClientRect();
15            size = Math.round(parentRect.width / rect.width)
16        }
17        if (index) {
18            let from = 1, to = size;
19            from = index % size == 0 ? index - size : index - index % size, to += from, items = options.items.slice(from, to)
20        }
21        const sizes = [];
22        items.each((function (item) {
23            const _this = $(this).find(options.block);
24            _this.css("height", ""), sizes.push(_this[0].clientHeight)
25        }));
26        const maxSize = Math.max.apply(null, sizes);
27        options.current ? options.current.find(options.block).css("height", maxSize) : index ? items.eq(index - 1).find(options.block).css("height", maxSize) : items.each((function () {
28            $(this).find(options.block).css("height", maxSize)
29        }))
30    }, handler = function () {
31        $(document).on("mouseenter", ".catalog-block__wrapper.has-offers", (function () {
32            const _this = $(this), parent = _this.parent(), bHovered = _this.data("hovered");
33            if (bHovered) return;
34            const rect = _this[0].getBoundingClientRect(), index = _this.index() + 1;
35            equalHeight({
36                items: parent.find(" .catalog-block__wrapper:visible"),
37                current: _this,
38                block: ".catalog-block__info",
39                index: index
40            }), _this.css("height", rect.height), _this.attr("data-hovered", !0)
41        })), $(document).on("mouseleave", ".catalog-block__wrapper.has-offers", (function () {
42            const _this = $(this);
43            _this.css("height", ""), _this.attr("data-hovered", !1), _this.find(".catalog-block__info").css("height", "")
44        }))
45    };
46    ready(handler)
47}();
48//# sourceMappingURL=script.min.js.map

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.