1$(function(){ 2$(".blogscontainer").html(''); 3 var blogFetch = $("<div>"); 4 blogFetch.load("/blog/default.aspx div[itemprop='blogPost']",function(){ 5 var numBlogs = 2; 6 blogFetch.find("[itemprop='blogPost']").each(function(i, obj){ 7 if(i < numBlogs) { 8 if ($(obj).find('div').length) { 9 blogImage = $(obj).find("div").eq(0).css("background-image").replace('/controls/dynamic_images/blog_image.dynimage?src=','').replace('url(','').replace(')','').split('%2f').join('/').split('"').join(''); 10 } else { 11 var blogImage = '/img/~www.tresmarins.com/layout-assets/default_blog.jpg'; 12 } 13 var blogLink = $(obj).find(".plainText:last()").attr("href"); 14 console.log(blogLink); 15 $(".blogscontainer").append('<div class="col-xs-12 col-sm-6 padBot">' + 16 '<div class="blog1">' + 17 '<div class="blogBG" style="background-image: url(' + blogImage + ');"></div>' + 18 '<p>' + $(obj).find("[itemprop='datePublished']").eq(0).text() + '</p>' + 19 '<h3>' + $(obj).find("[itemprop='headline']").eq(0).text() + '</h3>' + 20 '<div class="blog-btn"><a class="bttn" href="' + blogLink + '">read more</a></div>' + 21 '</div>' + 22 '</div>'); 23 } 24 }); 25 blogFetch = null; 26 }); 27});
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.