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.