;theta = {}; theta.bannerid = 1256516; theta.sellerid = '46', theta.type = 'inread'; theta.uri = 'https://thetamarketplace.com/servescript/infokidsinread'; console.log('<===THETAMARKETPLACE===>') theta._theta_head = window.parent.document.head || window.parent.document.getElementsByTagName('head')[0] theta._theta_body = window.document.body || window.document.getElementsByTagName('body')[0] theta.parent = null theta.scripttag = document.currentScript if (theta.type === 'display') { theta.loadbanner = function () { theta.tag = document.createElement('script') theta.tag.setAttribute( 'data-adfscript', `adx.adform.net/adx/?mid=${theta.bannerid}&rnd=%%CACHEBUSTER%%` ) var schainscript = document.createElement("script"); schainscript.innerHTML = `var adformtag = adformtag || [];adformtag.push(function () { adformtag.setRequestParam('schain', '1.0,1!thetamarketplace.com,${theta.sellerid},1')})`; theta.btag = document.createElement('script') theta.btag.src = '//s1.adform.net/banners/scripts/adx.js?bv=' + Math.random() theta.btag.async = true theta.btag.defer = true if (window.parent.document.body === document.body) { theta.scripttag.parentNode.appendChild(schainscript) theta.scripttag.parentNode.appendChild(theta.tag) theta.scripttag.parentNode.appendChild(theta.btag) } else { theta.scripttag.parentNode.appendChild(schainscript) theta._theta_body.appendChild(theta.tag) theta._theta_body.appendChild(theta.btag) } if(theta.uri.includes('atfw') && (theta.uri.includes('thenotebook') || theta.uri.includes('news247') || theta.uri.includes('ladylike') || theta.uri.includes('oneman') )) { let style = 'z-index: 9999;position: fixed;margin: 0px auto;display: flex;flex-direction: row;align-items: center;bottom: 0px;left: 0px;' theta.scripttag.parentNode.setAttribute('style', style) theta.scripttag.parentNode.id="thetaparent"; img = document.createElement('img') img.src = 'https://assets.thetamedia.gr/inread/close-theta@2x.png' img.setAttribute('width', '16') img.setAttribute('style', 'position: absolute; top: 8px; right: 8px;') theta.scripttag.parentNode.appendChild(img) img.setAttribute("onclick", "removeBanner();"); removeBanner = function() { document.getElementById("thetaparent").remove(); theta.scripttag.parentNode.remove(); } } else if(theta.uri.includes('atfw') && ( theta.uri.includes('4troxoi') )) { let style = 'z-index: 9999;position: fixed;margin: 0px auto;display: flex;flex-direction: row;align-items: center;bottom: 0px;left: 0px;' theta.scripttag.parentNode.parentNode.setAttribute('style', style) img = document.createElement('img') img.src = 'https://assets.thetamedia.gr/inread/close-theta@2x.png' img.setAttribute('width', '16') img.setAttribute('style', 'position: absolute; top: 8px; right: 8px;') theta.scripttag.parentNode.parentNode.appendChild(img) img.setAttribute("onclick", "removeBanner();"); removeBanner = function() { theta.scripttag.parentNode.parentNode.remove(); } } theta.parent = theta.scripttag.parentNode } if (document.getElementById(`thetabannerready${theta.bannerid}`) === null) { theta.el = document.createElement('div') theta.el.setAttribute('id', `thetabannerready${theta.bannerid}`) theta._theta_body.appendChild(theta.el) theta.loadbanner() } } else { theta.loadinread = function () { theta.vtag = document.createElement('script') theta.vtag.type = 'text/javascript' theta.vtag.src = theta.uri theta.vtag.async = true theta.vtag.defer = true theta._theta_head.appendChild(theta.vtag) } if (document.getElementById(`thetavideoready${theta.bannerid}`) === null) { theta.el = document.createElement('div') theta.el.setAttribute('id', `thetavideoready${theta.bannerid}`) theta._theta_body.appendChild(theta.el) theta.loadinread() } }