PageSourceSearch

https://xn--80acml6anh2d.xn--p1ai/wp-content/themes/juno/js/custom.js

js xn--80acml6anh2d.xn--p1ai collected 2026-10-05 00:39:14 UTC 1,597 bytes, 31 lines download raw bytes

1jQuery(function ($) {
2    $('#true_loadmore').click(function () {
3        $('.preloader').addClass('active');
4        $(this).text('Загружаю...'); // изменяем текст кнопки, вы также можете добавить прелоадер
5        var data = {
6            'action': 'loadmore',
7            'query': true_posts,
8            'page': current_page
9        };
10        $.ajax({
11            url: ajaxurl, // обработчик
12            data: data, // данные
13            type: 'POST', // тип запроса
14            success: function (data) {
15                if (data) {
16//                    $('#true_loadmore').text('Загрузить ещё').before(data); // вставляем новые посты
17                    $('#true_loadmore').text('Показать еще').before($(data).fadeIn('3000')); // вставляем новые посты
18                    current_page++; // увеличиваем номер страницы на единицу
19                    if (current_page == max_pages)
20                        $("#true_loadmore").remove(); // если последняя страница, удаляем кнопку
21                } else {
22                    $('#true_loadmore').remove(); // если мы дошли до последней страницы постов, скроем кнопку
23                }
24                $('.preloader').removeClass('active');
25            }
26        });
27    });
28});
29$(document).ready(function(){
30    $('.t456__list_item').has('.sub_header_menu_item').addClass('parent')
31})

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.