PageSourceSearch

https://www.mirkrasok.ru/local/templates/mirkrasok_2026v2/componen…/show_more/script.js?17859373281779

js mirkrasok.ru collected 2026-10-03 20:59:02 UTC 1,779 bytes, 50 lines download raw bytes

1$(() => {
2    $(document).on('click', '[data-js="load_more"]', function () {
3        let _this = $(this),
4            mainBlock = $('[data-block-pagination]'),
5            container = mainBlock.data('block-pagination'),
6            targetContainer = $(`[data-block-pagination=${container}]`),
7            url = _this.data('url'),
8            divide =  mainBlock.data('divide') === "Y",
9            useMas = mainBlock.data('masonry') === "Y";
10
11
12        if (url !== undefined) {
13            $.ajax({
14                type: 'POST',
15                url: url,
16                dataType: 'html',
17                success: function (data) {
18                    _this.remove();
19
20                    let elements = $(data).find('[data-block="element"]'),
21                        pagination = $(data).find('[data-js="load_more"]');
22
23
24                    if (divide) {
25                        $.each(elements, function(index, value) {
26                            if (index % 2 === 0) {
27                                targetContainer.find('[data-col="1"]').append(value);
28                            } else {
29                                targetContainer.find('[data-col="2"]').append(value);
30                            }
31                        });
32                    } else {
33                        targetContainer.append(elements);
34                    }
35
36                    if (typeof $.fn.masonry === 'function') {
37                        $('.rev__items').masonry('reloadItems')
38                        $('.rev__items').masonry('layout')
39                    }
40
41                    $('[data-block="pagination"]').append(pagination);
42                },
43                error: function (err) {
44                    console.log(err);
45                }
46            });
47        }
48    })
49
50})

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.