' + ''; } else if ( i === 2 ) { adContainer = $('#div-gpt-ad-1462224363022-4').html(); $('#div-gpt-ad-1462224363022-4').remove(); } else { adContainer = ""; } var postAdPosition = postWordShowAd * i; var html = $(postContainer).html().split(" "); html = html.slice(0, postAdPosition).join(" ") + '

' + adContainer + '

' + html.slice(postAdPosition).join(" "); $(postContainer).html(html); } } console.log(WURFL.form_factor); if ( (WURFL.is_mobile) && (WURFL.form_factor === 'Smartphone') ) { setTimeout(singleAdMobile, 1000); } });