(function() { var adagioAsyncParams={"ap":true,"phByPos":{"position1":"_r_0__position1","masthead":"_r_0__masthead","background":"_r_0__skin"}}; // v. 1.3 var phs = []; for (const property in adagioAsyncParams.phByPos) { phs.push(adagioAsyncParams.phByPos[property]); } function adagioPlaceAd() { var counter = 0; adagioBCode = ""; try{ var ph = phs[counter]; /** * _Async_Standard Image Banner_Responsive_P1 * v. 2.1.1 * 698583 */ adagioContentId = 'adagio_698583'; dfamily = "desktop"; fixedByFamily = ["smartphone"]; adagioBCode = (function () { var device = "desktop"; var arUrl = ["adserver.blendee.com","opq-ui.neodatagroup.com","crm-ui.neodatagroup.com","adserver.streamwise.it"] if (arUrl.includes(window.location.host)){ device = adagioOverrideFamily; } var code = ""; var conf = { desktop: { width: "300", height: "250", image: "//ac.neodatagroup.com/img_uploads/583/91_698583_5_A2A_2610_300X250_ALLUMINIO.gif", landing: "https%3A%2F%2Fwww.apricaspa.it%2Fit%2Fmedia%2Fnews%2Fbrescia-raccolta-differenziata-facciamo-squadra-citta-pulita%3Fcomune%3Dbrescia%3Futm_medium%3Ddisplay%26utm_source%3Dopq%26utm_campaign%3Dmiglioramentorifiuti", }, tablet: { width: "300", height: "250", image: "//ac.neodatagroup.com/img_uploads/583/91_698583_5_A2A_2610_300X250_ALLUMINIO.gif", landing: "https%3A%2F%2Fwww.apricaspa.it%2Fit%2Fmedia%2Fnews%2Fbrescia-raccolta-differenziata-facciamo-squadra-citta-pulita%3Fcomune%3Dbrescia%3Futm_medium%3Ddisplay%26utm_source%3Dopq%26utm_campaign%3Dmiglioramentorifiuti", }, smartphone: { width: "300", height: "250", image: "//ac.neodatagroup.com/img_uploads/583/91_698583_5_A2A_2610_300X250_ALLUMINIO.gif", landing: "https%3A%2F%2Fwww.apricaspa.it%2Fit%2Fmedia%2Fnews%2Fbrescia-raccolta-differenziata-facciamo-squadra-citta-pulita%3Fcomune%3Dbrescia%3Futm_medium%3Ddisplay%26utm_source%3Dopq%26utm_campaign%3Dmiglioramentorifiuti", }, }; var addTrackingPixel = function () { var adagioUrlTrackPx = ""; var adagioAtlasTrackPx = ""; var adagioDoubleTrackPx = ""; var adagioPlanetTrackPx = ""; var adagioBluestreakTrackPx = ""; var adagioConnextraTrackPx = ""; var adagioOtherTrackPx = ""; if (adagioAtlasTrackPx != "") adagioUrlTrackPx = adagioAtlasTrackPx; else if (adagioDoubleTrackPx != "") adagioUrlTrackPx = adagioDoubleTrackPx; else if (adagioPlanetTrackPx != "") adagioUrlTrackPx = adagioPlanetTrackPx; else if (adagioBluestreakTrackPx != "") adagioUrlTrackPx = adagioBluestreakTrackPx; else if (adagioConnextraTrackPx != "") adagioUrlTrackPx = adagioConnextraTrackPx; else if (adagioOtherTrackPx != "") adagioUrlTrackPx = adagioOtherTrackPx; if (adagioUrlTrackPx != "") { code += ''; } }; var getLandingPageUrl = function () { return device === "tablet" ? conf.tablet.landing : device === "smartphone" ? conf.smartphone.landing : conf.desktop.landing; }; var getImageTag = function () { var width = device === "tablet" ? conf.tablet.width : device === "smartphone" ? conf.smartphone.width : conf.desktop.width; var height = device === "tablet" ? conf.tablet.height : device === "smartphone" ? conf.smartphone.height : conf.desktop.height; var image = device === "tablet" ? conf.tablet.image : device === "smartphone" ? conf.smartphone.image : conf.desktop.image; return ( '' ); }; code += ''; if (document.location.origin !== 'https://www.giornaledibrescia.it'){ code += 'ADV'; } code += ''; code += ''; code += getImageTag(); code += ""; addTrackingPixel(code); code += ""; code += ""; return code; })(); } catch(e){} if (adagioBCode != ""){ document.getElementById(ph).innerHTML = adagioBCode; } counter++; adagioBCode = ""; try{ var ph = phs[counter]; } catch(e){} if (adagioBCode != ""){ document.getElementById(ph).innerHTML = adagioBCode; } counter++; adagioBCode = ""; try{ var ph = phs[counter]; } catch(e){} if (adagioBCode != ""){ document.getElementById(ph).innerHTML = adagioBCode; } counter++; } if (adagioAsyncParams.ap && adagioAsyncParams.ap===true) adagioPlaceAd(); })();