"+searchResults[i].AdTitle+"

"+searchResults[i].CLASSNAME+"

"+searchResults[i].ADNUMBER+"

"+searchResults[i].CUSTOMERNAME+". "+searchResults[i].AdDesc+"


"+searchResults[i].ContactPer+" "+searchResults[i].ContactPhone+"

 
"); } else if(searchResults[i].SECTIONCODE.includes("Public Notices")){ $('.pubClass').append("
  • "+searchResults[i].PUBLISHDATE.replace('12:00:00 AM','')+"

    "+searchResults[i].TITLE+"

    CATEGORY
    "+searchResults[i].CLASSNAME+"
    AD NUMBER
    "+searchResults[i].ADNUMBER+"
    "+searchResults[i].ADBODY+"
     
  • "); } else { $('.pubClass').append("
  • "+searchResults[i].PUBLISHDATE.replace('12:00:00 AM','')+"

    "+searchResults[i].AdTitle+"

    "+searchResults[i].CLASSNAME+"

    "+searchResults[i].ADNUMBER+"

    "+searchResults[i].AdDesc+"


     "+searchResults[i].ContactPhone+"

     
  • "); } if(searchResults[i].TITLE.search(".pdf")>1){ $("
    "+searchResults[i].TITLE+"
     
    ").insertAfter($(".announcement-item .col-lg-7.col-md-12.col-xs-12.col-sm-12").eq(i)); } $('.adInfo a').eq(i).attr('href','//www.law.com/imageserver/adbase/'+searchResults[i].ADNUMBER+'.pdf'); $('.adInfo img').eq(i).attr('alt',searchResults[i].ADNUMBER); $('.adInfo img').eq(i).attr('src','//www.law.com/imageserver/adbase/'+searchResults[i].ADNUMBER+'.jpg'); $('.adInfo img').eq(i).css('height','auto'); $('.adInfo').css('z-index','1'); $('.adInfo').css('margin-top','3%'); $('.adInfo').eq(i).hide(); }); $('.adMorebtn').each(function(i){ $(this).click(function(){ $('.adInfo').eq(i).slideToggle(); }); }); var items = $("li.announcement-item"); for(var i = 0; i < items.length; i+=10) { items.slice(i, i+10).wrapAll("
    "); } $(".hp-events").each(function(i){ if(i < $(".hp-events").length-1){ $("").insertAfter(this); } /*else { }*/ if(i>0){ $(this).hide(); } }); $("button.loadnextfifo").each(function(i){ if(i>0 || $('.hp-events').length == 1 || i == $('.hp-events').length){ $(this).hide(); } }); });