console.log('%cEpeex:%c <-------------------- Widget on EPX-12 --------------------> ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c Account: yobee','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c Channel: 1','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c DiscoveryCategory: attualita-inchiesta ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c DiscoveryTrackId: ?trk=epx_Dscv_yb ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c Site Domain:urbanpost.it','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; 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: green; font-size:13px;');console.log('%cEpeex:%c FormatID GLOBAL','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c SiteID e/o PageID VUOTI','font-weight: bold; color: white; background: #8f0e0e; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');console.log('%cEpeex:%c GUID - epx-RCDb-LqRN-JWsU-J8qx ','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;'); var epx_IE = false;
var epx1_x1_1_173_activator = document.getElementById("epx_dscvr_yb");
var Div1_x1_1_173_Container = document.createElement('div');
Div1_x1_1_173_Container.id = "epx1_x1_1_173_Container_173";
Div1_x1_1_173_Container.className = "epx1_x1_1_173_Box";
var Style_Global_1_x1_1_173 = document.createElement('link');
Style_Global_1_x1_1_173.type = 'text/css';
Style_Global_1_x1_1_173.rel = 'stylesheet';
Style_Global_1_x1_1_173.href = "//epeex.com/related/service/widget/epeex/widget.min.asp?idw=1_x1_1_173";
epx1_x1_1_173_activator.parentNode.insertBefore(Style_Global_1_x1_1_173, epx1_x1_1_173_activator);
var Style_Template_1_x1_1_173 = document.createElement('style');
Style_Template_1_x1_1_173.type = 'text/css';
Style_Template_1_x1_1_173.innerHTML = "@media only screen and (max-width: 480px) {\.epx1_x1_1_173_Result{width:98%; float:none !important; margin:auto !important;}\.epx1_x1_1_173_Result_Image, div.epeex_Sas > div > a > img:first-of-type{height:0px !important; padding-top:75.3%;}\}\@media only screen and (min-width: 481px){\.epx1_x1_1_173_Result{width:32%; margin:0 !important; margin-right:2% !important;}\div.epx1_x1_1_173_Result:nth-of-type(3n+2){margin-right:0 !important;}\.epx1_x1_1_173_Result_Image, div.epeex_Sas > div > a > img:first-of-type{height:0px !important; padding-top:75.3%;}\}\.epx1_x1_1_173_Box{width:100%; margin:15px 0; text-align:left;}\.epx1_x1_1_173_TitleBox{border-bottom:1px solid #333; color:#333; font-family:Arial,sans-serif; font-size:15px; font-weight:bold; margin-bottom:15px; margin-left:0px; text-align:left;}\.epx1_x1_1_173_Result a {border:0px none; color:#333; font-family:Arial,sans-serif; font-size:16px; font-weight:bolder; margin:0px; padding:0px; text-decoration:none;}\.epx1_x1_1_173_Result a:hover{color:#333; text-decoration:underline;}\.epx1_x1_1_173_Result_Data{display:none;}\.epx1_x1_1_173_video_Container{position: relative; overflow: hidden; width:100%; padding-top: 56.25%; margin-bottom:5px; border:0;}\.epx1_x1_1_173_video_Iframe{position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border:0; margin:0 !important;}";
epx1_x1_1_173_activator.parentNode.insertBefore(Style_Template_1_x1_1_173, epx1_x1_1_173_activator);
var epx1_x1_1_173_Account = "yobee";
var epx1_x1_1_173_Channel = "1";
var epx1_x1_1_173_Title_Box = "";
var epx1_x1_1_173_Title_Lenght = "80";
var epx1_x1_1_173_Image_Default = "";
var epx1_x1_1_173_IndexMode = "2";
var epx1_x1_1_173_SponsorFormat = "2";
var epx1_x1_1_173_Image = "";
var epx1_x1_1_173_Title = "";
var epx1_x1_1_173_Location = escape(document.location.href);
var epx1_x1_1_173_Url = '//epeex.com/related/service/query/jscript/?ac=' + epx1_x1_1_173_Account + '&ch=' + epx1_x1_1_173_Channel + '&im=' + epx1_x1_1_173_IndexMode + '&jo=epx1_x1_1_173_ObjSrc&jc=epx1_x1_1_173_Creator('+"epx1_x1_1_173_ObjSrc"+');&rf=' + epx1_x1_1_173_Location + '&th=' + epx1_x1_1_173_Image + '&sf=' + epx1_x1_1_173_SponsorFormat + '&ti=' + epx1_x1_1_173_Title;
epx1_x1_1_173_activator.parentNode.insertBefore(Div1_x1_1_173_Container, epx1_x1_1_173_activator);
function epx1_x1_1_173_Creator(epx1_x1_1_173_ObjSrc){
var epx_ObjSource=eval(epx1_x1_1_173_ObjSrc);
var NumSponsor = 0;
try{
epx_Counter = epx_ObjSource.Link.Record.length;
}catch(e){
epx_Counter = 0;
}
console.log('%cEpeex:%c Num Results Ricevuti: ' + epx_Counter + ' su 0','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
console.log('%cEpeex:%c Ris Int + Adv: 0 - 0','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
epx_Div=document.getElementById("epx1_x1_1_173_Container_173");
epx_Vid_Div = document.createElement("div");
epx_Vid_Div.id = "epx1_x1_1_173_Video_Container_ID";
epx_Vid_Div.className = "epx1_x1_1_173_video_Container";
epx_Div.appendChild(epx_Vid_Div);
var epx_Vid_Iframe = document.createElement("iframe");
epx_Vid_Iframe.className = "epx1_x1_1_173_video_Iframe";
epx_Vid_Iframe.setAttribute("src", "https://network.loma-cms.com/attualita-inchiesta/?trk=epx_Dscv_yb");
epx_Vid_Div.appendChild(epx_Vid_Iframe);
/*
epx_Vid_TrkImg = document.createElement("img");
epx_Vid_TrkImg.src = "https://pastepixel.com/image/csttyn2Zxhw3NHHfAFv4.png";
epx_Vid_TrkImg.style.width = "0px";
epx_Vid_TrkImg.style.height = "0px";
epx_Vid_Div.appendChild(epx_Vid_TrkImg);
*/
if('yobee' == 'velvet_new' && ('1' == '3' ||'1' == '1')){
if (typeof ga === 'function') {
ga('send', 'event', {
eventCategory: 'disc_pl_dw_yobee_1',
eventAction: 'view yobee1',
eventLabel: 'Discovery Player yobee1'
});
console.log('%cEpeex:%c GA Video Called: OK','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
} else {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-33838715-1', 'auto');
ga('send', 'event', {
eventCategory: 'disc_pl_dw_yobee_1',
eventAction: 'view yobee1',
eventLabel: 'Discovery Player yobee1'
});
console.log('%cEpeex:%c GA 2 Video Called: OK','font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
}
}
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_173_TitleBox";
epx_Txt_Title = document.createTextNode(epx1_x1_1_173_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_173_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_173_Title_Lenght){
epx_TitleText=epx_Title.substring(0,epx1_x1_1_173_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_173_Result"
epx_Div_Result.id = "epx1_x1_1_173_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_173_Result_Image epx1_x1_1_173_Result_Image_Effect";
epx_Div_Custom = document.createElement("div");
epx_Div_Custom.className = "epx1_x1_1_173_Custom";
epx_Div_Content = document.createElement("div");
epx_Div_Content.className = "epx1_x1_1_173_Result_Content";
epx_Div_Result_Title = document.createElement("div");
epx_Div_Result_Title.className = "epx1_x1_1_173_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;
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_AdServerClick_URL = epx_Record.Url;
//Elements Creation
epx_Div_Result=document.createElement("div");
epx_Div_Result.className="epx1_x1_1_173_Result";
epx_Div_Result.id = "epx1_x1_1_173_Result_" + (epx_I+1);
epx_Link_Result = document.createElement("a");
epx_Link_Result.href = epx_AdServerClick_URL;
epx_Link_Result.className = "epx_Result_adv";
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_173_Result_Image";
epx_Div_Custom = document.createElement("div");
epx_Div_Custom.className = "epx1_x1_1_173_Custom";
//CONTENT ADV
epx_Div_Content = document.createElement("div");
epx_Div_Content.className = "epx1_x1_1_173_Result_Content epeex_Result_Content";
//Title
epx_Div_Result_Title = document.createElement("div");
epx_Div_Result_Title.className = "epx1_x1_1_173_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_173_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_173_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
AdServ_ImpressionTrack = "" + epx_Record.ImpressionUrl;
epx_AdServ_ImpressionTrack = document.createElement("img");
epx_AdServ_ImpressionTrack.src = AdServ_ImpressionTrack;
epx_AdServ_ImpressionTrack.setAttribute("width","1");
epx_AdServ_ImpressionTrack.setAttribute("height","1");
AdServ_TrackingPixel = "" + epx_Record.ExternalTracking;
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_AdServ_ImpressionTrack);
if(AdServ_TrackingPixel.length > 0){
epx_AdServ_TrackingPixel = document.createElement("img");
epx_AdServ_TrackingPixel.src = AdServ_TrackingPixel;
epx_AdServ_TrackingPixel.setAttribute("width","1");
epx_AdServ_TrackingPixel.setAttribute("height","1");
epx_Div_Result.appendChild(epx_AdServ_TrackingPixel);
}
epx_Div.appendChild(epx_Div_Result);
}
} //Chiusura For
}
function NormalizeHeight1_x1_1_173() {
var elementsDiv = document.getElementsByClassName("epx1_x1_1_173_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";
}
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: green; font-size:13px;');
}
NormalizeHeight1_x1_1_173();
}
var BotCheck_1_x1_1_173 = false;
function botCheck1_x1_1_173(){
var botPattern = "(googlebot\/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)";
var re = new RegExp(botPattern, 'i');
var userAgent = navigator.userAgent;
if (re.test(userAgent)) {
return true;
}else{
return false;
}
}
BotCheck_1_x1_1_173 = botCheck1_x1_1_173();
console.log('%cEpeex:%c isCallingAMP: False' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
console.log('%cEpeex:%c WidgetOnScroll: 1' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
if(!BotCheck_1_x1_1_173){
if(epx_IE==false){
console.log('%cEpeex:%c LOAD ON VIEW ACTIVE' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
var stageHeight1_x1_1_173 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var element1_x1_1_173 = document.querySelector('#epx1_x1_1_173_Container_173');
var elementBoundingBox1_x1_1_173 = element1_x1_1_173.getBoundingClientRect();
var debounce1_x1_1_173 = function(i, t, e) {e = e || window; var n = !1, o = function() {n || (n = !0, requestAnimationFrame(function() {e.dispatchEvent(new CustomEvent(t)), n = !1}))};e.addEventListener(i, o)};
debounce1_x1_1_173("scroll", "optimizedScroll", window);
window.addEventListener("optimizedScroll", updateElementViewabilityMessage1_x1_1_173);
function updateElementViewabilityMessage1_x1_1_173() {if (elementIsInView1_x1_1_173(element1_x1_1_173,stageHeight1_x1_1_173)) { console.log('%cEpeex:%c Widget is viewable' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;'); var Script_Global_1_x1_1_173 = document.createElement("script"); Script_Global_1_x1_1_173.type = "text/javascript"; Script_Global_1_x1_1_173.src = epx1_x1_1_173_Url; epx1_x1_1_173_activator.parentNode.insertBefore(Script_Global_1_x1_1_173, epx1_x1_1_173_activator); window.removeEventListener("optimizedScroll", updateElementViewabilityMessage1_x1_1_173);}}
function elementIsInView1_x1_1_173(element1_x1_1_173, stageHeight1_x1_1_173) {var elementBoundingBox1_x1_1_173 = element1_x1_1_173.getBoundingClientRect(); var elementsTopY = elementBoundingBox1_x1_1_173.top; var elementsBottomY = elementBoundingBox1_x1_1_173.top + elementBoundingBox1_x1_1_173.height; return elementsTopY >= 0 && elementsBottomY < stageHeight1_x1_1_173;}
}else{
var Script_Global_1_x1_1_173 = document.createElement("script");
Script_Global_1_x1_1_173.type = "text/javascript";
Script_Global_1_x1_1_173.src = epx1_x1_1_173_Url;
epx1_x1_1_173_activator.parentNode.insertBefore(Script_Global_1_x1_1_173, epx1_x1_1_173_activator);
console.log('%cEpeex:%c IE Detect' ,'font-weight: bold; color: white; background: #3d90d5; border-radius: 5px; padding: 1px 3px; font-size:11px;','color: green; font-size:13px;');
}
}