1jQuery(document).ready(function($) { 2 3 function main_news(){ 4 if( $('body').hasClass('home') ){ 5 if($( window ).width() <= 768){ $('.top-screen').insertBefore('.row.main-content'); } 6 else{ $('.top-screen').prependTo('.cnt');} 7 } 8 } 9 $( window ).resize(function() { 10 main_news(); 11 }); 12 main_news(); 13 14 $('.news-content img').each(function(el) { 15 var imgLink = $('<a></a>') 16 imgLink.attr('href', $(this).attr('src')) 17 imgLink.attr('data-lightbox', 'set-1') 18 19 if ($(this).hasClass('alignleft')) { 20 $(this).removeClass('alignleft') 21 imgLink.addClass('alignleft') 22 } 23 if ($(this).hasClass('alignright')) { 24 $(this).removeClass('alignright') 25 imgLink.addClass('alignright') 26 } 27 28 $(this).wrap(imgLink) 29 }) 30 31 jQuery('.sidebar').theiaStickySidebar({ 32 // Settings 33 additionalMarginTop: 30 34 }); 35 36 jQuery('#search-toggle').on('click', function() { 37 jQuery('#search-box').toggle('slide'); 38 jQuery('#search-box').focus(); 39 }); 40 41 jQuery('#search-box').on('focusout', function() { 42 jQuery('#search-box').hide('slide'); 43 }); 44 45 46 47 jQuery('#search-toggle-mobile').on('touchstart', function() { 48 jQuery('#search-box-mobile').toggle('slide'); 49 jQuery('#search-box-mobile').focus(); 50 }); 51 52 jQuery('#loadWeather').load('/ajax/weather.php'); 53 54 55 56 // подгÑÑзка новоÑÑей 57 var numOfPreload = 0; 58 59 jQuery("#more-news-load").click(function() { 60 numOfPreload = numOfPreload + 8 61 jQuery.ajax({ 62 url: "https://kpravda.ru/wp-admin/admin-ajax.php", 63 type: "POST", 64 data: { 65 "numOfPreload": numOfPreload, 66 "action": 'news_action' 67 }, 68 success: function(response) { 69 if (response == 0) { 70 jQuery('#more-news').prop('disabled', true); 71 jQuery('#more-news').html("ÐолÑÑе новоÑÑей неÑ"); 72 } else { 73 jQuery('#lentaloader').fadeOut('slow', function() { 74 jQuery("#lentaloader").html(response); 75 jQuery('#lentaloader').fadeIn('slow'); 76 }); 77 } 78 } 79 }); 80 }); 81 82 jQuery("#more-news-load-prev").click(function() { 83 if (numOfPreload > 0) { 84 numOfPreload = numOfPreload - 8 85 jQuery.ajax({ 86 url: "https://kpravda.ru/wp-admin/admin-ajax.php", 87 type: "POST", 88 data: { 89 "numOfPreload": numOfPreload, 90 "action": 'news_action' 91 }, 92 success: function(response) { 93 if (response == 0) { 94 jQuery('#more-news').prop('disabled', true); 95 jQuery('#more-news').html("ÐолÑÑе новоÑÑей неÑ"); 96 } else { 97 jQuery('#lentaloader').fadeOut('slow', function() { 98 jQuery("#lentaloader").html(response); 99 jQuery('#lentaloader').fadeIn('slow'); 100 }); 101 } 102 } 103 }); 104 } 105 }); 106 107 108});
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.