console.log('%cEpeex:%c <-------------------- Widget on EPX-11 --------------------> ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;');console.log('%cEpeex:%c Site Domain:','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;');console.log('%cEpeex:%c New Adv Enabled','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;');console.log('%cEpeex:%c GUID - epx-FMsN-zAGo-w6gv-xif8 ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;'); var epx1_x1_1_activator = document.getElementById("epxRelwd1"); var Div1_x1_1_Container = document.createElement('div'); Div1_x1_1_Container.id = "epx1_x1_1_Container"; Div1_x1_1_Container.className = "epx1_x1_1_Box"; var Style_Global_1_x1_1 = document.createElement('link'); Style_Global_1_x1_1.type = 'text/css'; Style_Global_1_x1_1.rel = 'stylesheet'; Style_Global_1_x1_1.href = "//epeex.com/related/service/widget/epeex/widget.min.asp?idw=1_x1_1&spe=2"; epx1_x1_1_activator.parentNode.insertBefore(Style_Global_1_x1_1, epx1_x1_1_activator); var Style_Template_1_x1_1 = document.createElement('style'); Style_Template_1_x1_1.type = 'text/css'; Style_Template_1_x1_1.innerHTML = ".epx1_x1_1_Box{box-sizing:border-box!important;padding:0!important;margin-top:15px; text-align:left;}\.epx1_x1_1_Result_Image {height: 75px!important;width: 100px!important;}\.epx1_x1_1_Result_Image{display:block;float:left;margin-right:5px;box-sizing:border-box;padding-right:5px}\.epx1_x1_1_Result_Content{padding:0 5px 5px;margin:0 !important;color:#3E433E!important;line-height:1.2!important;clear:none!important; box-sizing:border-box;}\.epx1_x1_1_TitleBox{}\.epx1_x1_1_Result a {border:0px none; color:#393838; font-family:sans-serif; font-size:0.8rem; font-weight:500; line-height:1.1; margin:0px; padding:0px; text-decoration:none;text-transform: none;}\.epx1_x1_1_Result a:hover{color:#3f4549; text-decoration:underline;}\.epx1_x1_1_Result_Data{display:none;}\.epx1_x1_1_Result{width: 100%; height:70px;}\.epx1_x1_1_Result_Desc{font-size: 11px !important;}\.epx1_x1_1_Result_Title{font-size: 12px !important; font-weight:bold !important;}"; epx1_x1_1_activator.parentNode.insertBefore(Style_Template_1_x1_1, epx1_x1_1_activator); var epx1_x1_1_Account = "affaritaliani"; var epx1_x1_1_Channel = "1"; var epx1_x1_1_Title_Box = "Approfondimenti"; var epx1_x1_1_Title_Lenght = "80"; var epx1_x1_1_Image_Default = ""; var epx1_x1_1_IndexMode = "1"; var epx1_x1_1_SponsorFormat = "2"; var epx1_x1_1_Image = ""; var epx1_x1_1_Title = ""; var epx1_x1_1_Location = escape(document.location.href); var epx1_x1_1_Url = '//epeex.com/related/service/query/jscript/?ac=' + epx1_x1_1_Account + '&ch=' + epx1_x1_1_Channel + '&im=' + epx1_x1_1_IndexMode + '&jo=epx1_x1_1_ObjSrc&jc=epx1_x1_1_Creator('+"epx1_x1_1_ObjSrc"+');&rf=' + epx1_x1_1_Location + '&th=' + epx1_x1_1_Image + '&sf=' + epx1_x1_1_SponsorFormat + '&ti=' + epx1_x1_1_Title; function epx1_x1_1_Creator(epx1_x1_1_ObjSrc){ var epx_ObjSource=eval(epx1_x1_1_ObjSrc); var NumSponsor = 2; try{ epx_Counter = epx_ObjSource.Link.Record.length; }catch(e){ epx_Counter = 0; } console.log('%cEpeex:%c Sponsor Position 2','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;'); console.log('%cEpeex:%c Num Results Ricevuti: ' + epx_Counter + ' su 4','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;'); console.log('%cEpeex:%c Ris Int + Adv: 2 - 2','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;'); epx1_x1_1_activator.parentNode.insertBefore(Div1_x1_1_Container, epx1_x1_1_activator); epx_Div=document.getElementById("epx1_x1_1_Container"); if((epx_Counter > 0)){ for(epx_I=0; epx_I < epx_Counter; epx_I++){ if(epx_I == 0){ epx_Div_Title = document.createElement("div"); epx_Div_Title.className = "epx1_x1_1_TitleBox"; epx_Txt_Title = document.createTextNode(epx1_x1_1_Title_Box); epx_Div_Title.appendChild(epx_Txt_Title); epx_Div.appendChild(epx_Div_Title); } epx_Record = epx_ObjSource.Link.Record[epx_I]; epx_IsSponsor = epx_Record.AdResult; if(epx_IsSponsor == "0"){ //Image epx_Image = epx_Record.Image; if(epx_Image == null || epx_Image == "" || epx_Image == "undefined"){ epx_Image = epx1_x1_1_Image_Default; } //Titles epx_Title = epx_Record.Title; var epx_expBr = new RegExp("
","g"); epx_Title = epx_Title.replace(epx_expBr," "); if(epx_Title.length > epx1_x1_1_Title_Lenght){ epx_TitleText=epx_Title.substring(0,epx1_x1_1_Title_Lenght)+"..."; wl_altTitleVisible=true; }else{ epx_TitleText=epx_Title; wl_altTitleVisible=false; } //Urls epx_URL=epx_Record.Url; //Elements Creation epx_Div_Result=document.createElement("div"); epx_Div_Result.className="epx1_x1_1_Result" epx_Div_Result.id = "epx1_x1_1_Result_" + (epx_I+1); epx_Link_Result = document.createElement("a"); epx_Link_Result.className="epeex-interstitial"; epx_Link_Result.href = location.protocol + epx_URL; epx_Link_Result.setAttribute("rel","nofollow"); epx_Link_Result.target = "_top"; if(wl_altTitleVisible){ var wl_regex_html = /( |<([^>]+)>)/ig; epx_Title=epx_Title.replace(wl_regex_html," "); epx_Link_Result.setAttribute("title",epx_Title); } epx_Div_Img_Result = document.createElement("div"); epx_Div_Img_Result.style.background = "url('"+epx_Image+"') center center no-repeat"; epx_Div_Img_Result.style.boxSizing = "border-box"; epx_Div_Img_Result.style.backgroundSize = "cover"; epx_Div_Img_Result.style.position = "relative"; epx_Div_Img_Result.className = "epx1_x1_1_Result_Image epx1_x1_1_Result_Image_Effect"; epx_Div_Custom = document.createElement("div"); epx_Div_Custom.className = "epx1_x1_1_Custom"; epx_Div_Content = document.createElement("div"); epx_Div_Content.className = "epx1_x1_1_Result_Content"; epx_Div_Result_Title = document.createElement("div"); epx_Div_Result_Title.className = "epx1_x1_1_Result_Title"; epx_Record_Link_Text = document.createTextNode(epx_TitleText); epx_Div_Result_Title.appendChild(epx_Record_Link_Text); epx_Div_Content.appendChild(epx_Div_Result_Title); epx_Link_Result.appendChild(epx_Div_Img_Result); epx_Link_Result.appendChild(epx_Div_Custom); epx_Link_Result.appendChild(epx_Div_Content); epx_Div_Result.appendChild(epx_Link_Result); epx_Div.appendChild(epx_Div_Result); }else{ // ------------------------------------------- Sponsor //Image epx_Image = epx_Record.Image; if(epx_Image == null || epx_Image == "" || epx_Image == "undefined"){ epx_Image = epx1_x1_1_Image_Default; } var epx_expBr = new RegExp("
","g"); //Title epx_Title = epx_Record.Title; epx_Title = epx_Title.replace(epx_expBr," "); //Description epx_Desc = epx_Record.Description; epx_Desc = epx_Desc.replace(epx_expBr," "); //Label epx_Label = epx_Record.Label; epx_Label = epx_Label.replace(epx_expBr," "); //Urls epx_AdZerk_URL = epx_Record.Url; //Elements Creation epx_Div_Result=document.createElement("div"); epx_Div_Result.className="epx1_x1_1_Result" epx_Div_Result.id = "epx1_x1_1_Result_" + (epx_I+1) ; epx_Link_Result = document.createElement("a"); epx_Link_Result.href = epx_AdZerk_URL; epx_Link_Result.setAttribute("rel","nofollow"); epx_Link_Result.target = "_blank"; epx_Div_Img_Result = document.createElement("div"); epx_Div_Img_Result.style.background = "url('"+epx_Image+"') center center no-repeat"; epx_Div_Img_Result.style.boxSizing = "border-box"; epx_Div_Img_Result.style.backgroundSize = "cover"; epx_Div_Img_Result.style.position = "relative"; epx_Div_Img_Result.className = "epx1_x1_1_Result_Image"; epx_Div_Custom = document.createElement("div"); epx_Div_Custom.className = "epx1_x1_1_Custom"; //CONTENT ADV epx_Div_Content = document.createElement("div"); epx_Div_Content.className = "epx1_x1_1_Result_Content epeex_Result_Content"; //Title epx_Div_Result_Title = document.createElement("div"); epx_Div_Result_Title.className = "epx1_x1_1_Result_Title epeex_Result_Title"; epx_Record_Link_Text = document.createTextNode(epx_Title); epx_Div_Result_Title.appendChild(epx_Record_Link_Text); epx_Div_Content.appendChild(epx_Div_Result_Title); //Description epx_Div_Result_Desc = document.createElement("div"); epx_Div_Result_Desc.className = "epx1_x1_1_Result_Desc epeex_Result_Desc"; epx_Record_Link_Text = document.createTextNode(epx_Desc); epx_Div_Result_Desc.appendChild(epx_Record_Link_Text); epx_Div_Content.appendChild(epx_Div_Result_Desc); //Label epx_Div_Result_Label = document.createElement("div"); epx_Div_Result_Label.className = "epx1_x1_1_Result_Label epeex_Result_Label"; epx_Record_Link_Text = document.createTextNode(epx_Label); epx_Div_Result_Label.appendChild(epx_Record_Link_Text); epx_Div_Content.appendChild(epx_Div_Result_Label); //Impression Tracking AdZerk_ImpressionTrack = "" + epx_Record.ImpressionUrl; epx_AdZerk_ImpressionTrack = document.createElement("img"); epx_AdZerk_ImpressionTrack.src = AdZerk_ImpressionTrack; epx_AdZerk_ImpressionTrack.setAttribute("width","1"); epx_AdZerk_ImpressionTrack.setAttribute("height","1"); AdZerk_TrackingPixel = "" + epx_Record.ExternalTracking; if(AdZerk_TrackingPixel.length > 0){ epx_AdZerk_ImpressionTrack = document.createElement("img"); epx_AdZerk_ImpressionTrack.src = AdZerk_ImpressionTrack; epx_AdZerk_ImpressionTrack.setAttribute("width","1"); epx_AdZerk_ImpressionTrack.setAttribute("height","1"); } epx_Link_Result.appendChild(epx_Div_Img_Result); epx_Link_Result.appendChild(epx_Div_Custom); epx_Link_Result.appendChild(epx_Div_Content); epx_Div_Result.appendChild(epx_Link_Result); epx_Div_Result.appendChild(epx_AdZerk_ImpressionTrack); epx_Div.appendChild(epx_Div_Result); } // ----------------------------------------- VIRALIZE - INIZIO ------------------------------------------ // ----------------------------------------- VIRALIZE - FINE ------------------------------------------ } //---------------------------------------------->Chiusura For } function NormalizeHeight1_x1_1() { var elementsDiv = document.getElementsByClassName("epx1_x1_1_Result"); maxHeight = 0; for (var i = 0; i < elementsDiv.length; i++) { maxHeight = (elementsDiv[i].offsetHeight > maxHeight ? elementsDiv[i].offsetHeight : maxHeight); } for (var i = 0; i < elementsDiv.length; i++) { elementsDiv[i].style.height = maxHeight + "px"; } //alert(maxHeight); console.log('%cEpeex:%c Div Max Height: ' + maxHeight + 'px' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: black; font-size:13px;'); } NormalizeHeight1_x1_1(); window.addEventListener('resize', () => { NormalizeHeight1_x1_1()}); } var Script_Global_1_x1_1 = document.createElement("script"); Script_Global_1_x1_1.type = "text/javascript"; Script_Global_1_x1_1.src = epx1_x1_1_Url; epx1_x1_1_activator.parentNode.insertBefore(Script_Global_1_x1_1, epx1_x1_1_activator);