PageSourceSearch

https://tyuz-spb.ru/wp-content/themes/tyuz-spb/js/loadmore.js?ver=7.1.2

js tyuz-spb.ru collected 2026-10-02 10:42:55 UTC 860 bytes, 29 lines download raw bytes

1jQuery(function($){
2	if(typeof true_posts !== 'undefined'){
3	$(window).scroll(function(){
4		var bottomOffset = 1200; // отступ от нижней границы сайта, до которого должен доскроллить пользователь, чтобы подгрузились новые посты
5		var data = {
6			'action': 'loadmore',
7			'query': true_posts,
8			'page' : current_page
9		};
10		if( $(document).scrollTop() > ($(document).height() - bottomOffset) && !$('body').hasClass('loading')){
11			$.ajax({
12				url:'/wp-admin/admin-ajax.php',
13				data:data,
14				type:'POST',
15				beforeSend: function( xhr){
16					$('body').addClass('loading');
17				},
18				success:function(data){
19					if( data ) { 
20						$('#true_loadmore').before(data);
21						$('body').removeClass('loading');
22						current_page++;
23					}
24				}
25			});
26		}
27	});
28	}
29});

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.