Files
recipe-importer/sobors-examples/sobors_2_files/icwsMin2.js.download
T
2026-02-24 18:00:10 +01:00

1 line
22 KiB
Plaintext

function contrecStrstr(t){t=(t=(t=t.replace(/www./gi,"")).replace(/https:/gi,"")).replace(/http:/gi,"");var e;return-1!=(e=(t+="").indexOf("?"))&&(t=t.substr(0,e)),"/"!=t.substr(t.length-1)&&(t+="/"),t}function strstr(t,e,n){var i;return-1!=(i=(t+="").indexOf(e))&&(n?t.substr(0,i):t.slice(i))}function indaHash(t){var e=0;if(0==t.length)return e;for(i=0;i<t.length;i++)char=t.charCodeAt(i),e=(e<<5)-e+char,e&=e;return e<0&&(e*=-1),e}function dayStart(){var t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate())/1e3}function ContForFrame(t){var e=0;0<=t.search("ASQW#")&&(e=1,t=t.replace(/ASQW#/gi,""));var n=t.split("}"),a=n[0].split("#"),o=location.host,r=Math.floor((new Date).getTime()/1e3),o=o.replace(/www./gi,""),t=indaHash(contrecStrstr(location.protocol+"//"+o+location.pathname))+"#";void 0===n[1]?l=t:-1==(l=n[1]).search(t)&&(l=(l.match(/#/g)||[]).length<200?t+l:((n=l.split("#")).splice(n.length-2),t+n.join("#")+"#"));var d="";if(0<a.length-1){var c=0;for(i=0;i<a.length-1;i++)a[i].split("@")[0]==o&&(a[i]=o+"@"+r+"@",c=1),d+=a[i]+"#";0==c&&(d+=o+"@"+r+"@#")}else d+=o+"@"+r+"@#";var l="ASQW#"+d+"}"+l+"}";document.getElementById("ff").contentWindow.postMessage(l,"*");const s=[];return s[0]=e,s[1]=l,s}var tpcValue;window.onmessage=function(t){"https://contrec.index.hu"!=t.origin&&"https://cdn.contrec.index.hu"!=t.origin||(tpListAvailable=1,tpcValue=ContForFrame(t.data))};var showHiddenContent=function(){var t=this.getAttribute("data-src");this.style.display="none";for(var e=document.getElementById("indaContrecWidget"+t).getElementsByClassName("indaHideOnMob"),n=0;n<e.length;n++)e[n].style.display="inline-block"};function useExtracontent(t,e){e=document.getElementById(e).offsetWidth;document.getElementById(t).style.display=479<e&&e<710?"inline-block":"none"}function isScriptAlreadyIncluded(t){for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n++)if(null!==e[n].getAttribute("src")&&""!==e[n].getAttribute("src")&&-1<e[n].getAttribute("src").search(t))return!0;return!1}function publishAdsense(t,e,n,i,a){1==a&&!1===isScriptAlreadyIncluded("adsbygoogle.js")&&((o=document.createElement("script")).type="text/javascript",o.setAttribute("async","async"),o.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client="+e,o.setAttribute("crossorigin","anonymous"),document.getElementById(i).appendChild(o));var o=document.createElement("ins");o.setAttribute("class","adsbygoogle"),o.setAttribute("style","display:block;"),o.setAttribute("data-ad-layout-key",t),o.setAttribute("data-ad-client",e),o.setAttribute("data-ad-slot",n),o.setAttribute("data-ad-format","fluid"),o.setAttribute("id","adsense"+i),document.getElementById(i).appendChild(o);o=document.createElement("script");o.type="text/javascript",o.text="(adsbygoogle = window.adsbygoogle || []).push({});",document.getElementById(i).appendChild(o)}function publishAdmanager(t,e,n,i){1==i&&!1===isScriptAlreadyIncluded("tag/js/gpt.js")&&((a=document.createElement("script")).setAttribute("async","async"),a.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",document.getElementById(n).appendChild(a));var a=document.createElement("script");a.type="text/javascript",a.text="window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.defineSlot('"+t+"', ['fluid'], '"+e+"').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); });",document.getElementById(n).appendChild(a);a=document.createElement("div");a.setAttribute("id",e),document.getElementById(n).appendChild(a);a=document.createElement("script");a.type="text/javascript",a.text="googletag.cmd.push(function() { googletag.display('"+e+"'); });",document.getElementById(e).appendChild(a)}function setIndaContrecWidgetCookie(){var t=IndaContrecHasSeen,e=(t.match(/#/g)||[]).length,n=new Date;if(100<e){for(var i=t.split("#"),a="",o=e-100;o<i.length-1;o++)a+=i[o]+"#";var r=a}else r=t;n.setTime(n.getTime()+24192e5);n="expires="+n.toUTCString();document.cookie="indaContrecWidgetCookie="+r+";"+n+";path=/;SameSite=None;Secure"}function checkIndaContrecWidgetCookie(){var n="indaContrecWidgetCookie=";let t=decodeURIComponent(document.cookie);var i=t.split(";");for(let e=0;e<i.length;e++){let t=i[e];for(;" "==t.charAt(0);)t=t.substring(1);if(0==t.indexOf(n))return t.substring(n.length,t.length)}return""}function getContentReserve(t,e){let n=0,i=0,a=0;for(;n<t.length&&0==i;){var o;1==tpcValue[0]&&(o=indaHash(contrecStrstr(decodeURIComponent(t[n].link)))+"#",a=-1<tpcValue[1].search(o)?1:0),-1==e.search(t[n].idArticle+"#")&&0==a?(i=1,IndaContrecHasSeenSelection+=t[n].idArticle+"#"):n++}return 0!=i&&n}function siteBadge(t){var e="";return 0<(t.match(/index.hu/g)||[]).length&&(e='<span class="icwct icwct_index">INDEX</span>'),0<(t.match(/divany.hu/g)||[]).length&&(e='<span class="icwct icwct_divany">DÍVÁNY</span>'),0<(t.match(/totalcar.hu/g)||[]).length&&(e='<span class="icwct icwct_totalcar">TOTALCAR</span>'),0<(t.match(/velvet.hu/g)||[]).length&&(e='<span class="icwct icwct_velvet">VELVET</span>'),0<(t.match(/totalbike.hu/g)||[]).length&&(e='<span class="icwct icwct_totalbike">TOTALBIKE</span>'),0<(t.match(/napi.hu/g)||[]).length&&(e='<span class="icwct icwct_napi">ECONOMX.HU</span>'),0<(t.match(/economx.hu/g)||[]).length&&(e='<span class="icwct icwct_napi">ECONOMX.HU</span>'),0<(t.match(/femina.hu/g)||[]).length&&(e='<span class="icwct icwct_femina">FEMINA</span>'),0<(t.match(/sobors.hu/g)||[]).length&&(e='<span class="icwct icwct_sobors">SÓBORS</span>'),0<(t.match(/port.hu/g)||[]).length&&(e='<span class="icwct icwct_port">PORT.HU</span>'),0<(t.match(/azenkutyam.hu/g)||[]).length&&(e='<span class="icwct icwct_kutya">WE LOVE DOGZ</span>'),0<(t.match(/azenmacskam.hu/g)||[]).length&&(e='<span class="icwct icwct_macska">WE LOVE CATZ</span>'),0<(t.match(/welovedogz.hu/g)||[]).length&&(e='<span class="icwct icwct_kutya">WE LOVE DOGZ</span>'),0<(t.match(/welovecatz.hu/g)||[]).length&&(e='<span class="icwct icwct_macska">WE LOVE CATZ</span>'),0<(t.match(/tenyek.hu/g)||[]).length&&(e='<span class="icwct icwct_tenyek">HIRDETÉS: TÉNYEK</span>'),0<(t.match(/tenyek.hu\/video/g)||[]).length&&(e='<span class="icwct icwct_tenyek_video">HIRDETÉS: TÉNYEK VIDEÓ</span>'),0<(t.match(/welovebudapest.com/g)||[]).length&&(e='<span class="icwct icwct_welovebud">WE ❤ BP</span>'),0<(t.match(/welovebalaton.com/g)||[]).length&&(e='<span class="icwct icwct_welovebalaton">WE ❤ BALATON</span>'),0<(t.match(/mediafuture.hu/g)||[]).length&&(e='<span class="icwct icwct_mediafuture">MEDIAFUTURE</span>'),0<(t.match(/mandiner.hu/g)||[]).length&&(e='<span class="icwct icwct_mandiner">MANDINER</span>'),0<(t.match(/blikk.hu/g)||[]).length&&(e='<span class="icwct icwct_blikk">BLIKK</span>'),0<(t.match(/egeszsegkalauz.hu/g)||[]).length&&(e='<span class="icwct icwct_egeszsegkalauz">EGÉSZSÉGKALAUZ</span>'),0<(t.match(/glamour.hu/g)||[]).length&&(e='<span class="icwct icwct_glamour">GLAMOUR</span>'),0<(t.match(/kiskegyed.hu/g)||[]).length&&(e='<span class="icwct icwct_kiskegyed">KISKEGYED</span>'),e}var IndaContrecHasSeen=checkIndaContrecWidgetCookie(),IndaContrecHasSeenSelection=IndaContrecHasSeen,contentDP="",EvenExtraContent="";const widgetIdList=[],widgetViStatUrl=[],widgetViStatUrlHasHit=[];var icWscreenHeight=window.innerHeight/2;function widgetViRequest(t){var e=new XMLHttpRequest;e.onreadystatechange=function(){4==this.readyState&&200==this.status&&this.responseText},e.open("GET",t,!0),e.send()}function widgetViHandler(){for(i=0;i<widgetIdList.length;i++){var t=document.getElementById("indaContrecWidget"+widgetIdList[i]).getBoundingClientRect().top;widgetDistanceFromTopCenter=t-icWscreenHeight,widgetDistanceFromTopCenter<0&&0==widgetViStatUrlHasHit[i]&&(widgetViRequest(widgetViStatUrl[i]),widgetViStatUrlHasHit[i]=1)}}function publishContent(a){var o=0,e="";j=0<(window.location.hostname.match(/femina.hu/g)||[]).length?8e3:5e3;var n=a.id,i=a.head_text,r=a.head_tag,c=a.short_on_mob,l=a.av_param,s=a.css;"1"==a.show_iframe&&((A=document.createElement("iframe")).setAttribute("src","https://index.hu/idojaras/api/widget/weather/"),A.setAttribute("width","0"),A.setAttribute("height","0"),A.setAttribute("frameborder","0"),document.getElementById("indaContrecWidget"+n).appendChild(A));let g=!1;if(void 0!==tpcValue&&void 0!==tpcValue[0]&&1==tpcValue[0]&&(g=!0),!0===g&&null!=a.nRetarget&&0<a.nRetarget.length){var p=dayStart();let t=0,e=-1;for(;t<a.nRetarget.length&&-1==e;){if(Math.floor((new Date).getTime()/1e3)<a.nRetarget[t].end_date)if(-1==tpcValue[1].search(a.nRetarget[t].target_domain))e=t;else{var u=tpcValue[1].split("}")[0].split("#");for(ttt=0;ttt<u.length-1;ttt++){var m=u[ttt].split("@");m[0]==a.nRetarget[t].target_domain&&m[1]<p&&(e=t)}}t++}-1!=e&&(o=a.nRetarget[e].contentSet,l=a.nRetarget[e].av_param)}var h=!1,C="";if(void 0!==a.personas&&"undefined"!=typeof customTarget){let n=[],i=[];var w=a.personas;-1==customTarget.search("&")&&(customTarget=atob(customTarget));var v=customTarget.split("&");let e;for(W=0;W<v.length;W++)e=v[W]+"&@{",-1!=e.search("=1&@{")&&n.push(e.replace(/=1&@{/gi,""));for(W=0;W<w.length;W++){var b=w[W].tags.split(","),f=w[W].master;let e=0;for(t=0;t<b.length;t++)0<=n.indexOf(b[t])&&e++;e>=f&&i.push(w[W].idPersona)}var y=Math.floor(Math.random()*i.length),E=i[y],A=new XMLHttpRequest,y="https://cdn.contrec.index.hu/json/p_"+E+".json";if(A.open("GET",y,!1),A.send(),4==A.readyState&&200==A.status&&(C=JSON.parse(A.responseText)),!0===g)for(W=0;W<C.length;W++){var x=indaHash(contrecStrstr(decodeURIComponent(C[W].link)))+"#";-1<tpcValue[1].search(x)&&C.splice(W,1)}C.length>=a.ContentMain[o].length&&(h=E,l=0<=l.indexOf("_N-")?"_P-"+E+strstr(l,"_N-"):"_P-"+E)}let _="";window.innerWidth<580&&(_="_43mob34");var k,M,W,I,S,D,T,H,B,P,E=document.getElementById("indaContrecWidget"+n).getAttribute("data-param");l=null!=E?(M=(k="https://dex.hu/x.php?id="+E+"_wID-"+n)+l+_+"_view&noredirect=1","https://dex.hu/x.php?id="+E+"_wID-"+n+l+_+"_vi&noredirect=1"):(M=(k="https://dex.hu/x.php?id=_wID-"+n)+l+_+"_view&noredirect=1","https://dex.hu/x.php?id=_wID-"+n+l+_+"_vi&noredirect=1");const R=[],O=[];""!=r&&""!=i&&(I=-1==(r=r.replace(/&quot;/gi,'"')).search(" ")?r:r.split(" ")[0]),S=1==a.new_window?' target="_blank"':"";let V=[];for(W=0;W<a.ContentMain[o].length;W++)D=1==c&&2<W?" indaHideOnMob":"",1==a.ContentMain[o][W].type?(!(B=0)===g&&(P=indaHash(contrecStrstr(decodeURIComponent(a.ContentMain[o][W].link)))+"#",-1<tpcValue[1].search(P)&&(B=1)),P=0,-1==IndaContrecHasSeen.search(a.ContentMain[o][W].idArticle+"#")&&0==B?P=1:(T=a.ContentMain[o][W].contentSource,!1===(H=getContentReserve(a.ContentReserve[T],IndaContrecHasSeenSelection))&&(P=1)),1==P?(e+='<div id="widgetElement'+a.ContentMain[o][W].idArticle+'" class="widgetElement'+D+'"><a href="'+k+"_F-"+a.ContentMain[o][W].contentSource+_+"&url="+a.ContentMain[o][W].link+'" id="link'+a.ContentMain[o][W].idArticle+'"'+S+' class="inda-contrec-'+a.ContentMain[o][W].idArticle+'" rel="noopener noreferrer"><p><img src="'+a.ContentMain[o][W].enclosure+'" class="inda-contrec-'+a.ContentMain[o][W].idArticle+'" loading="lazy">'+siteBadge(a.ContentMain[o][W].link)+"</p>"+a.ContentMain[o][W].title+"</a></div>",V.push(a.ContentMain[o][W].idArticle)):(e+='<div id="widgetElement'+a.ContentReserve[T][H].idArticle+'" class="widgetElement'+D+'"><a href="'+k+"_F-"+a.ContentReserve[T][H].contentSource+_+"&url="+a.ContentReserve[T][H].link+'" id="link'+a.ContentReserve[T][H].idArticle+'"'+S+' class="inda-contrec-'+a.ContentReserve[T][H].idArticle+'" rel="noopener noreferrer"><p><img src="'+a.ContentReserve[T][H].enclosure+'" class="inda-contrec-'+a.ContentReserve[T][H].idArticle+'" loading="lazy">'+siteBadge(a.ContentReserve[T][H].link)+"</p>"+a.ContentReserve[T][H].title+"</a></div>",V.push(a.ContentReserve[T][H].idArticle))):4==a.ContentMain[o][W].type?(B="TÁMOGATOTT TARTALOM",P="",0<(a.ContentMain[o][W].source_code.natUrl.match(/blog.hu/g)||[]).length&&(B="BLOG.HU",P=' style="margin-right: -53px;"'),e+='<div id="widgetElementN'+a.ContentMain[o][W].idAdvert+'" class="widgetElement'+D+'"><a href="'+k+"_N-"+a.ContentMain[o][W].source_code.natId+_+"&url="+a.ContentMain[o][W].source_code.natUrl+'" id="linkN'+a.ContentMain[o][W].idAdvert+'"'+S+' class="inda-contrec-N'+a.ContentMain[o][W].idAdvert+'" rel="noopener noreferrer"><p><img src="'+a.ContentMain[o][W].source_code.natImage+'" class="inda-contrec-N'+a.ContentMain[o][W].idAdvert+'" loading="lazy"><span class="icwct icwct_tam_tart"'+P+">"+B+"</span></p>"+a.ContentMain[o][W].source_code.natTitle+"</a></div>"):2!=a.ContentMain[o][W].type&&3!=a.ContentMain[o][W].type||(e+='<div class="widgetElement'+D+'"><div id="advert'+a.ContentMain[o][W].idAdvert+'"></div></div>',R.push(a.ContentMain[o][W]));Math.round(a.ContentMain[o].length/2)!=a.ContentMain[o].length/2&&(e+='<div id="widgetElement'+a.ContentDisplayProblem[0].idArticle+'" class="widgetElement widgetEvenContent"><a href="'+k+"_F-"+a.ContentDisplayProblem[0].contentSource+_+"&url="+a.ContentDisplayProblem[0].link+'" id="link'+a.ContentDisplayProblem[0].idArticle+'"'+S+' class="inda-contrec-'+a.ContentDisplayProblem[0].idArticle+'" rel="noopener noreferrer"><p><img src="'+a.ContentDisplayProblem[0].enclosure+'" class="inda-contrec-'+a.ContentDisplayProblem[0].idArticle+'" loading="lazy">'+siteBadge(a.ContentDisplayProblem[0].link)+"</p>"+a.ContentDisplayProblem[0].title+"</a></div>",contentDP+=a.ContentDisplayProblem[0].idArticle+"#",EvenExtraContent="widgetElement"+a.ContentDisplayProblem[0].idArticle);s="<style> div.indaContrecWidgetContent{text-align:left; display: -webkit-flex; display:flex; -webkit-flex-wrap: wrap;flex-wrap:wrap;margin:0 -5px;} div.indaContrecWidgetContent div.widgetElement{position:relative;display:inline-block;width:33.33%;min-width:240px;box-sizing:border-box;padding:5px; -webkit-flex:1 0 auto; flex:1 0 auto;vertical-align:top;} div.indaContrecWidgetContent div.widgetElement a{display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden; font-weight:bold;} div.indaContrecWidgetContent div.widgetElement p {width: 100%; overflow: hidden; margin: 0 0 10px 0; padding-top: calc(56.25% - 30px); position: relative;} div.indaContrecWidgetContent div.widgetElement p img {position: absolute; top: 50%; left: 50%; width: 100%; transform: translate(-50%, -50%);} div.indaContrecWidget .showHideOnMob{display:none;} div.indaContrecWidget .showButton{width:100%;} @media screen and (max-width: 517px) {div.indaContrecWidgetContent div.indaHideOnMob{display:none;}div.indaContrecWidget .showHideOnMob{display:block;}}div.indaContrecWidgetContent div.widgetElement span.icwct {font-family: 'Open Sans', sans-serif;font-size: 10px;display:inline-block;padding: 3px 4px;line-height: 10px;position:relative;top:0px;color:#fff;}div.indaContrecWidgetContent div.widgetElement span.icwct_index {background-color: #f90;margin-right:-39px;}div.indaContrecWidgetContent div.widgetElement span.icwct_divany {background-color: #4f1747;margin-right:-47px;}div.indaContrecWidgetContent div.widgetElement span.icwct_velvet {background-color: #cc0000;margin-right:-44px;}div.indaContrecWidgetContent div.widgetElement span.icwct_totalcar {background-color: #1f2f5f;margin-right:-60px;}div.indaContrecWidgetContent div.widgetElement span.icwct_totalbike {background-color: #f9930f;margin-right:-63px;}div.indaContrecWidgetContent div.widgetElement span.icwct_napi {background-color: #000000;margin-right:-49px;}div.indaContrecWidgetContent div.widgetElement span.icwct_femina {background-color: #ffda08;color: #111;margin-right:-46px;}div.indaContrecWidgetContent div.widgetElement span.icwct_sobors {background-color: #000;margin-right:-49px;}div.indaContrecWidgetContent div.widgetElement span.icwct_port {background-color: #d81d03;margin-right:-53px;}div.indaContrecWidgetContent div.widgetElement span.icwct_kutya {background-color: #24AEAF;margin-right:-82px;}div.indaContrecWidgetContent div.widgetElement span.icwct_macska {background-color: #3D377C;margin-right:-82px;}div.indaContrecWidgetContent div.widgetElement span.icwct_tam_tart {background-color: #00aa99;margin-right:-135px;}div.indaContrecWidgetContent div.widgetElement span.icwct_tenyek {background-color: #293890;margin-right:-99px;}div.indaContrecWidgetContent div.widgetElement span.icwct_tenyek_video {background-color: #293890;margin-right:-133px;}div.indaContrecWidgetContent div.widgetElement span.icwct_welovebud {background-color: #322a71; margin-right:-133px;} div.indaContrecWidgetContent div.widgetElement span.icwct_welovebalaton {background-color: #008dc4; margin-right:-133px;} div.indaContrecWidgetContent div.widgetElement span.icwct_mediafuture {background-color: #1bef96; color: #000000; margin-right:-55px;} div.indaContrecWidgetContent div.widgetElement span.icwct_mandiner {background-color: #d74929; margin-right:-50px;} div.indaContrecWidgetContent div.widgetElement span.icwct_blikk {background-color: #e20000; margin-right:-50px;} div.indaContrecWidgetContent div.widgetElement span.icwct_glamour {background-color: #f6d3d5;color: #111;} div.indaContrecWidgetContent div.widgetElement span.icwct_egeszsegkalauz {background-color: #17687b;} div.indaContrecWidgetContent div.widgetElement span.icwct_kiskegyed {background-color: #D22A52;}"+s+"</style>";if(e=""!=r&&""!=i?s+"<"+r+">"+i+"</"+I+'><div id="widget'+n+'" class="indaContrecWidgetContent">'+e+"</div>":s+'<div id="widget'+n+'" class="indaContrecWidgetContent">'+e+"</div>",!1!==h&&(document.getElementById("indaContrecWidget"+n).style.display="none"),document.getElementById("indaContrecWidget"+n).innerHTML+=e,!1!==h){for(W=0;W<V.length;W++){var N='<a href="'+k+"_P-"+h+_+"&url="+C[W].link+'" id="link'+C[W].idArticle+'"'+S+' class="inda-contrec-'+C[W].idArticle+'" rel="noopener noreferrer"><p><img src="'+C[W].enclosure+'" class="inda-contrec-'+C[W].idArticle+'" loading="lazy">'+siteBadge(C[W].link)+"</p>"+C[W].title+"</a>";document.getElementById("widgetElement"+V[W]).innerHTML=N}if(void 0!==a.ContentDisplayProblem){let t=0;for(dp=W;dp<C.length;dp++)void 0!==a.ContentDisplayProblem[t]&&(a.ContentDisplayProblem[t].idArticle=C[dp].idArticle,a.ContentDisplayProblem[t].title=C[dp].title,a.ContentDisplayProblem[t].link=C[dp].link,a.ContentDisplayProblem[t].enclosure=C[dp].enclosure,a.ContentDisplayProblem[t].pubDate=C[dp].pubDate,a.ContentDisplayProblem[t].contentSource="_P-"+h),t++}document.getElementById("indaContrecWidget"+n).removeAttribute("style")}s=new XMLHttpRequest;if(s.onreadystatechange=function(){4==this.readyState&&200==this.status&&this.responseText},s.open("GET",M,!0),s.send(),""!=EvenExtraContent&&(useExtracontent(EvenExtraContent,"indaContrecWidget"+n),window.addEventListener("resize",function(t){useExtracontent(EvenExtraContent,"indaContrecWidget"+n)},!0)),1==c&&2<W&&((U=document.createElement("button")).setAttribute("class","showHideOnMob showButton"),U.setAttribute("data-src",n),U.setAttribute("id","showMoreButton"+n),U.innerHTML="Még több...",document.getElementById("indaContrecWidget"+n).appendChild(U),U.addEventListener("click",showHiddenContent,!1)),0<R.length){var L=1,F=1;for(d=0;d<R.length;d++)2==R[d].type&&(publishAdsense(R[d].source_code.layoutKey,R[d].source_code.client,R[d].source_code.slot,"advert"+R[d].idAdvert,L),L++,O.push("advert"+R[d].idAdvert)),3==R[d].type&&(publishAdmanager(R[d].source_code.defineSlot,R[d].source_code.divId,"advert"+R[d].idAdvert,F),F++);0<O.length&&setTimeout(function(){for(d=0;d<O.length;d++){var t,e;"filled"==document.getElementById("adsense"+O[d]).getAttribute("data-ad-status")||!1!==(t=getContentReserve(a.ContentDisplayProblem,contentDP))&&(document.getElementById(O[d]).parentElement.setAttribute("id","widgetElement"+a.ContentDisplayProblem[t].idArticle),document.getElementById(O[d]).parentElement.setAttribute("class","widgetElement"+D),e=(e='<a href="'+k+"_F-"+a.ContentDisplayProblem[t].contentSource+_+"&url="+a.ContentDisplayProblem[t].link+'" id="link'+a.ContentDisplayProblem[t].idArticle+'"'+S+' class="inda-contrec-'+a.ContentDisplayProblem[t].idArticle+'" rel="noopener noreferrer"><p><img src="'+a.ContentDisplayProblem[t].enclosure+'" class="inda-contrec-'+a.ContentDisplayProblem[t].idArticle+'" loading="lazy">'+siteBadge(a.ContentDisplayProblem[t].link)+"</p>"+a.ContentDisplayProblem[t].title+"</a>").replace("_F-_P-","_P-"),document.getElementById(O[d]).parentElement.innerHTML=e,contentDP+=a.ContentDisplayProblem[t].idArticle+"#")}},j)}if(widgetIdList.push(n),widgetViStatUrl.push(l),widgetViStatUrlHasHit.push(0),widgetViHandler(),window.innerWidth<580){let n=document.getElementById("contrec-sticky");if(null!==n){let t=document.getElementsByClassName("widgetElement"),e=Math.floor(Math.random()*t.length);if(-1<t[e].getAttribute("id").search("widgetElementN"))for(;-1<t[e].getAttribute("id").search("widgetElementN");)e=Math.floor(Math.random()*t.length);var s=t[e].getAttribute("id"),U=document.querySelectorAll("div#"+s+" a p img")[0].attributes[0].nodeValue,j=document.querySelectorAll("div#"+s+" a")[0].attributes[0].nodeValue,l=document.querySelectorAll("div#"+s+" a p span")[0].innerHTML,l='<a href="'+j+'" target="_blank" rel="noopener noreferrer"><img src="'+U+'"><div><p>'+document.querySelectorAll("div#"+s+" a")[0].lastChild.nodeValue+"</p><span>"+l+"</span></div></a>";n.innerHTML=l}}}function clickOrigin(t){var e=t.target,t=[];return t.tagType=e.tagName.toLowerCase(),t.tagClass=e.className.split(" "),t.id=e.id,t.parent=e.parentNode,t.parentclassName=e.parentNode.className.split(" "),t}window.addEventListener("scroll",widgetViHandler);for(var tagsToIdentify=["img","a"],x=document.getElementsByClassName("indaContrecWidget"),i=0;i<x.length;i++){var fFrame,xmlhttp,url,indaContrecWidgetData=x[i].getAttribute("data-href");document.getElementById("indaContrecWidget"+indaContrecWidgetData).onclick=function(t){for(elem=clickOrigin(t),i=0;i<tagsToIdentify.length;i++)if(elem.tagType==tagsToIdentify[i]&&-1<elem.tagClass[0].search("inda-contrec-")){var e=elem.tagClass[0].replace("inda-contrec-","");return-1==IndaContrecHasSeen.search(e+"#")&&(IndaContrecHasSeen+=e+"#"),setIndaContrecWidgetCookie(),!0}},0==i?((fFrame=document.createElement("iframe")).setAttribute("src","https://cdn.contrec.index.hu/f.html"),fFrame.setAttribute("width","0"),fFrame.setAttribute("height","0"),fFrame.setAttribute("frameborder","0"),fFrame.setAttribute("id","ff"),document.getElementById("indaContrecWidget"+indaContrecWidgetData).appendChild(fFrame),setTimeout(function(){var t=new XMLHttpRequest,e="https://cdn.contrec.index.hu/json/widget_"+indaContrecWidgetData+".json";t.onreadystatechange=function(){4==this.readyState&&200==this.status&&publishContent(JSON.parse(this.responseText))},t.open("GET",e,!0),t.send()},1500)):(xmlhttp=new XMLHttpRequest,url="https://cdn.contrec.index.hu/json/widget_"+indaContrecWidgetData+".json",xmlhttp.onreadystatechange=function(){4==this.readyState&&200==this.status&&publishContent(JSON.parse(this.responseText))},xmlhttp.open("GET",url,!0),xmlhttp.send())}