PageSourceSearch

https://club-ihtiolog.ru/bitrix/templates/main/components/bitrix/system.pagenavigation/show-more/script.js

js club-ihtiolog.ru collected 2026-10-05 23:01:17 UTC 2,545 bytes, 55 lines download raw bytes

1$(document).ready(function(){
2
3    $(document).on('click', '.load_more', function(){
4
5        var url =  $('.load_more').attr('data-url');    //  URL, из которого будем брать элементы
6
7        if (url !== undefined) {
8            $.ajax({
9                type: 'GET',
10                url: url,
11                dataType: 'html',
12                success: function(data){
13
14                    //  Удаляем старую навигацию
15                    $('.load_more').remove();
16
17                    var elements = $(data).find('.news-item-element'),  //  Ищем элементы
18                        pagination = $(data).find('.load_more');//  Ищем навигацию
19
20                    elements.each(function() {
21                        if (!$(this).hasClass('other-news-div')) {
22                            var newElement = $(`
23                            <div class="other-news-div news-item-element" id="">
24                                <div class="other-news-left-div">
25                                    <div class="date-news-page"></div>
26                                </div>
27                                <div class="other-news-right-div">
28                                    <h5 class="heading-5-news"></h5>
29                                    <div class="text-news-info"></div>
30                                    <div class="text-news-info-link-20"><a href="" class="link-7">Подробнее...</a></div>
31                                </div>
32                            </div>
33                            `);
34
35                            newElement.attr('id', $(this).attr('id'));
36                            newElement.find('.date-news-page').text($(this).find('.date-news-page').text());
37                            newElement.find('.heading-5-news').text($(this).find('.heading-5-news').text());
38                            newElement.find('.text-news-info').text($(this).find('.text-news-info').text());
39                            newElement.find('.text-news-info-link-20 a').attr('href', $(this).find('.text-news-info-link a').attr('href'));
40
41                            $('.news-div-2 .content-div-news').append(newElement);
42                        } else {
43                            $('.news-div-2 .content-div-news').append($(this));
44                        }
45                    });
46
47                    $('.news-div-2.pagination').append(pagination); //  добавляем навигацию следом
48
49                }
50            })
51        }
52
53    });
54
55});

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.