1$(window).bind("load", function () { 2 "use strict"; 3 var show_post_page = 20; 4 $('.news-items .news-items-ite:not(:nth-of-type(-n +' + show_post_page + '))').css('display','none'); 5}); 6 7jQuery(function($) { 8 var page_num = 1; 9 var hash = parseInt(window.location.hash.replace('#', '')); 10 if (Number.isInteger(hash)) 11 page_num = hash; 12 var perpage = 20; 13 var flag = false; 14 var get_posts = function() { 15 for (let i = 0; i <= perpage * page_num; i++) { 16 if ($($('.news-items-ite')[i]).length) { 17 if (i < perpage * page_num) 18 $($('.news-items-ite')[i]).show(); 19 } else { 20 flag = true; 21 } 22 23 if (i == perpage * page_num) { 24 if (flag) 25 $('.btn-more').hide(); 26 } 27 } 28 }; 29 get_posts(); 30 $('.btn-more').click(function () { 31 page_num++; 32 get_posts(); 33 window.location.hash = page_num; 34 return false; 35 }); 36});
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.