" ); $(".aricleBodyMain").find( ".dsk_banner_code.dsk_unique_class" ).append( '' ); $(".aricleBodyMain").find( ".dsk_banner_code.dsk_unique_class" ).css("position","relative"); $(".aricleBodyMain").find( ".dsk_banner_code.dsk_unique_class" ).css("text-align","center"); $('#closeButton').click(function() { $('.dsk_banner_code').hide(); if(isMobileDevice == true){ $('.aricleBodyMain .mobile_banner_block').hide(); } $(this).hide(); // $('#closeButton').hide(); }); $(".articleBlock img").parentsUntil(".articleBlock ").removeAttr("style"); $(".articleBlock img").removeAttr("style").removeAttr("width").removeAttr("height"); $(".articleBlock img").each(function(){ reqImg = new Image(); reqImg.src = $(this).attr("src"); if(reqImg.width < 600){ $(this).parent().addClass("article-body-content-image-small"); $(this).parent().removeClass("article-body-content-image-small"); $(this).addClass("article-body-content-image-small"); }else{ $(this).parent().addClass("article-body-content-image-large"); } });