1jQuery(function () { 2 if (typeof top_posts_list !== "undefined" && top_posts_list.length > 0) { 3 var read_posts = []; 4 var c_posts = jQuery.cookie( 'read_posts' ); 5 if (typeof c_posts !== "undefined") { 6 read_posts = c_posts.split( ',' ); 7 } 8 9 jQuery('.read-more-empty').each(function () { 10 var html = jQuery(this).html(); 11 var found = false; 12 13 for (var i = 0; i < top_posts_list.length; ++i) { 14 if (typeof top_posts_list[i] !== "undefined" && 15 typeof top_posts_list[i].id !== "undefined" && 16 read_posts.indexOf("" + top_posts_list[i].id) === -1 17 ) { 18 html = replaceReadMoreHtml(html, top_posts_list[i]); 19 found = true; 20 break; 21 } 22 } 23 24 if (!found && typeof top_posts_list[0] !== "undefined" && typeof top_posts_list[0].id !== "undefined") { 25 html = replaceReadMoreHtml(html, top_posts_list[0]); 26 } 27 28 jQuery(this).html(html); 29 jQuery(this).removeClass('read-more-empty'); 30 }); 31 } else { 32 jQuery('.read-more-empty').remove(); 33 } 34 35 function replaceReadMoreHtml(html, obj) 36 { 37 html = html.replace(/\{PostUrl}/g, obj.url); 38 html = html.replace(/\{PostTitle}/g, obj.title); 39 html = html.replace(/\{PostImg}/g, obj.img); 40 41 if (!obj.noindex) { 42 html = html.replace(/rel="nofollow"/g, ''); 43 } 44 45 return html; 46 } 47});
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.