var array = 'https://otonomhaber.com/';var matched = array.includes(window.location.href);var sitem = '219';if (window.innerWidth > 999 && matched == false) {if (typeof ampstat == 'undefined') {setTimeout(function(){ }, 100); }var iFrameDetection = (window === window.parent) ? false : true; if(!iFrameDetection){let is_daktilo = 0; var currentScript = document.currentScript; if(is_daktilo == 1) { var ad_area = null; var adhouseDivs = document.querySelectorAll('adhouse.adhousediv-1609706'); for (let i = 0; i < adhouseDivs.length; i++) { let div = adhouseDivs[i]; if (div.getAttribute('data-adinserted') === 'false') { ad_area = div; div.setAttribute('data-adinserted', 'true'); break; } } } else { var adContainer = document.createElement('adhouse'); currentScript.parentElement.insertBefore(adContainer, currentScript); adContainer.appendChild(currentScript); var ad_area = currentScript.parentElement; } var scripts = document.getElementsByTagName( 'script' ); var thisScriptTag = scripts[ scripts.length - 1 ]; ad_area.className = 'adhouse-sticky-1609706'; var mainScript = document.createElement('script'); mainScript.src = 'https://cdn.adhouse.pro/code/prebid_video.js'; mainScript.async = true; ad_area.appendChild(mainScript); var mainScript = document.createElement('script'); mainScript.src = '//cdn.jwplayer.com/libraries/l5MchIxB.js'; mainScript.async = true; ad_area.appendChild(mainScript); var mainScript = document.createElement('script'); mainScript.src = 'https://cdn.adhouse.pro/publisher/ads/adhouse/219.js'; ad_area.appendChild(mainScript); function hasAdAreaStickyClass(element) { return [...element.classList].some(cls => cls.startsWith('adhouse-sticky-')); } if (hasAdAreaStickyClass(ad_area)) { ad_area.style = 'z-index: 999999999; float: right; width: 320px; height: 180px; position: fixed; right: 0px; bottom: 0px; display: block !important;'; ad_area.style.cssText = 'z-index: 999999999; float: right; width: 320px; height: 180px; position: fixed; right: 0px; bottom: 0px; display: block !important;'; ad_area.style.setProperty('z-index', '999999999', 'important'); ad_area.style.setProperty('float', 'right'); ad_area.style.setProperty('width', '320px'); ad_area.style.setProperty('height', '180px'); ad_area.style.setProperty('position', 'fixed'); ad_area.style.setProperty('right', '0px'); ad_area.style.setProperty('bottom', '0px'); ad_area.style.setProperty('display', 'block'); } function loadScript(src) { return new Promise((resolve, reject) => { const script = document.createElement('script'); script.src = src; script.async = true; script.onload = resolve; script.onerror = reject; document.head.appendChild(script); }); } loadScript('//cdn.jwplayer.com/libraries/l5MchIxB.js') .then(() => { var master = document.createElement('div'); master.id = 'adhframe-1609706'; master.className = 'adhouseframe'; master.style=" border-style:none; width: 100% !important; height:100%; !important "; ad_area.appendChild(master); if (hasAdAreaStickyClass(ad_area)) { ad_area.style = 'z-index: 999999999; float: right; width: 320px; height: 180px; position: fixed; right: 0px; bottom: 0px; display: block !important;'; } var html3 = ''; var parser = new DOMParser(); var doc = parser.parseFromString(html3, 'text/html'); doc.querySelectorAll('script').forEach(script => { var newScript = document.createElement('script'); if (script.src) { newScript.src = script.src; newScript.async = true; } else { newScript.textContent = script.textContent; } master.appendChild(newScript); }); const playerContainer = document.createElement('div'); playerContainer.id = 'adhouseplayer'; playerContainer.style.width = '320px'; playerContainer.style.height = '180px'; master.appendChild(playerContainer);var jwPlayerInstance = jwplayer('adhouseplayer');invokeVideoPlayer = function(url) { jwPlayerInstance.setup({ file: 'https://cdn.adhouse.pro/code/transparan.webm', stretching: 'exactfit', width: 320, height: 180, autostart: false, controls: false, mute: false, volume: 0, repeat: false, advertising: { client: 'vast' } }); jwPlayerInstance.on('beforePlay', function() { jwPlayerInstance.playAd(url); }); setTimeout(function() { jwPlayerInstance.play(true); }, 6000);};if (tempTag) { invokeVideoPlayer(tempTag); tempTag = false;} var targetDiv = document.querySelector('.adhouse-sticky-1609706'); if (targetDiv) { targetDiv.appendChild(master); } }) .catch((error) => { console.error('Script yüklenirken bir hata oluştu:', error); }); } else { function isLoadedScript(lib) { return window.parent.document.querySelectorAll('body >[src="' + lib + '"]').length > 0 } var lib = "https://cdn.adhouse.pro/publisher/ads/1609706.js"; if (!isLoadedScript(lib)) { //document.querySelectorAll("script[src*=\"https://cdn.adhouse.pro/publisher/ads/1609706.js"]").remove(); var phh = window.parent.document.body; var ph = document.createElement("script"); ph.type = "text/javascript"; ph.src = "https://cdn.adhouse.pro/publisher/ads/1609706.js"; phh.appendChild(ph); } } }