1let Page = { 2 filterResearches: function(){ 3 4 let self = jQuery('.js_results'), 5 container = jQuery('#content-block-post-list'), 6 show_more_button = jQuery('#researches-load-more'), 7 data = { 8 action : 'deco_filter_researches', 9 topic : jQuery('input[name=topic]:checked').val(), 10 }; 11 12 if (self.hasClass('loading')) { 13 return false; 14 } 15 16 jQuery.ajax({ 17 type : 'GET', 18 url : deco_vars.ajaxurl, 19 dataType : 'json', 20 data : data, 21 beforeSend: function () { 22 self.addClass('is-loading'); 23 jQuery(container).addClass('loading'); 24 jQuery(container).css('opacity', 0.3); 25 }, 26 success : function (response) { 27 if (response.success) { 28 jQuery(container).html('').append(response.data.html); 29 show_more_button.find('a').attr('data-query', response.data.query); 30 show_more_button.find('a').attr('data-page', 2); 31 if (response.data.pagination === 'hide') { 32 show_more_button.hide(); 33 }else{ 34 show_more_button.show(); 35 } 36 } 37 }, 38 complete : function () { 39 self.removeClass('is-loading'); 40 jQuery(container).removeClass('loading'); 41 jQuery(container).css('opacity', 1); 42 }, 43 error : function (e) { 44 console.log(e); 45 } 46 }); 47 48 }, 49 init: function () { 50 jQuery(document).ready(function () { 51 // ФилÑÑÑ Ð´Ð¾ÑлÑÐ´Ð¶ÐµÐ½Ñ Ð½Ð° головнÑй 52 jQuery('.home input[name="topic"]').change(function(e) { 53 e.preventDefault(); 54 Page.filterResearches(); 55 }); 56 }); 57 } 58}; 59 60Page.init();
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.