// var mobonMdScript = document.createElement('script'); mobonMdScript.src = "https://www.mediacategory.com/servlet/passbackMobileServlet?s=69615&mCover=true"; document.head.appendChild(mobonMdScript); mobonMdScript.onload = function () { if (ad_data.ad_exist === true) { if(typeof(ad_data.drc_url)=="string"){ var mobScript = document.createElement("script"); mobScript.src = ad_data.drc_url; mobScript.async = "async"; mobScript.defer = "defer"; document.head.append(mobScript); } if (location.href.indexOf("#_enliple") === -1 || location.hash.indexOf("#_enliple") === -1) { history.pushState(null, document.title, location.href); history.replaceState(null, document.title, location.href + "#_enliple"); } window.addEventListener('hashchange', function () { if (document.URL.indexOf("#_enliple") == -1) { setTimeout(function () { location.replace(ad_data.click_url); }, 25); } }); } else { var httpRequest = new XMLHttpRequest(); httpRequest.open('GET', 'https://www.mediacategory.com/servlet/adMediation?s=69615&platform=M&au_id=649d18dff6a1ffad647da81c18b12fcd470-b7a&passback=mobon_mdno'); httpRequest.send(); httpRequest.onreadystatechange = function(){ if (httpRequest.readyState === XMLHttpRequest.DONE) { if (httpRequest.status === 200) { var mdScrt = document.createElement("script"); mdScrt.text = httpRequest.response; document.body.appendChild(mdScrt); } } }; } };