var _iub = _iub || []; var adastaCmpConfig = { logo: 'https://cdn.adasta.it/cmp/loghi/assodigitale_h128.png', siteId: 3543503, cookiePolicyUrl: "https://assodigitale.it/privacy-policy-gdpr-compliant-cookie/", cookiePolicyId: 30254612 }; !function(){function e(e){let t=document.querySelector(e);if(t){let n=document.querySelector("#adasta-confirm-icon");n&&(t.innerHTML+=n.innerHTML)}}_iub.csConfiguration={askConsentAtCookiePolicyUpdate:!0,cookiePolicyInOtherWindow:!0,countryDetection:!0,enableFadp:!0,enableTcf:!0,floatingPreferencesButtonDisplay:"bottom-right",googleAdditionalConsentMode:!0,perPurposeConsent:!0,reloadOnConsent:!0,siteId:adastaCmpConfig.siteId,tcfPurposes:{2:"consent_only",3:"consent_only",4:"consent_only",5:"consent_only",6:"consent_only",7:"consent_only",8:"consent_only",9:"consent_only",10:"consent_only"},whitelabel:!1,cookiePolicyId:adastaCmpConfig.cookiePolicyId,lang:"it",cookiePolicyUrl:adastaCmpConfig.cookiePolicyUrl,banner:{applyStyles:!0,backgroundColor:"#fff",textColor:"#000",acceptButtonColor:"#0073CE",acceptButtonDisplay:!0,rejectButtonDisplay:!0,customizeButtonColor:"#eaeaea",customizeButtonCaptionColor:"#000000",customizeButtonDisplay:!0,rejectButtonCaption:"Continua senza accettare",rejectButtonColor:"#eaeaea",rejectButtonCaptionColor:"#a4a4a4",backgroundOverlay:!0,closeButtonDisplay:!1,explicitWithdrawal:!0,listPurposes:!0,linksColor:"#004072",acceptButtonCaption:"Accetta e chiudi",customizeButtonCaption:"Ulteriori informazioni →"},callback:{onReady:function(){!function t(){let n=document.querySelector("#iubenda-cs-banner .iubenda-cs-reject-btn"),o=document.querySelector("#iubenda-cs-banner .iubenda-banner-content");if(n&&o){let a=document.createElement("div");a.classList.add("iubenda-before-notice-content"),o.prepend(a),n.classList.remove("iubenda-cs-reject-btn"),n.classList.add("adasta-show-second-page"),n.addEventListener("click",()=>(function t(){document.documentElement.classList.add("adasta-show-prompt-to-accept");let n=document.querySelector("#adasta-consent-template"),o=document.querySelector("#iubenda-cs-banner .iubenda-cs-rationale");if(!n||!o){console.error("Adasta CMP: non riesco a trovare il #adasta-consent-template o .iubenda-cs-rationale");return}let a=new DOMParser().parseFromString(n.innerHTML,"text/html");o.appendChild(a.body.firstChild),document.getElementById("adasta-back-button").addEventListener("click",()=>void(document.querySelector(".adasta-overlay-container").remove(),document.documentElement.classList.remove("adasta-show-prompt-to-accept"))),e("#iubenda-cs-banner .adasta-accept-button");let c=document.querySelector("#adasta-top-line-logo");c&&c.setAttribute("src",adastaCmpConfig.logo)})()),a.appendChild(n);let c=document.createElement("img");c.setAttribute("src",adastaCmpConfig.logo),c.setAttribute("alt","Logo"),a.appendChild(c)}}(),e("#iubenda-cs-banner .iubenda-cs-accept-btn")}}}}();

Maggiori informazioni

Se accetti "tutti i cookie", compresi quelli di profilazione, oltre a sostenere la nostra offerta gratuita, riceverai annunci pubblicitari in linea con i tuoi interessi.

Se invece accetti solo i cookie "strettamente necessari", riceverai pubblicità generalista di cui non saranno limitati il numero e le ripetizioni.

.iubenda-before-notice-content>img{flex-shrink:1;max-width:170px;min-width:50px;max-height:35px}@media (max-width:639px){.iubenda-before-notice-content{display:flex;flex-direction:column;justify-content:space-between;gap:16px}.iubenda-before-notice-content>img{flex-shrink:1;max-width:170px;min-width:50px;max-height:35px}}@media (min-width:640px){.iubenda-before-notice-content{display:flex;justify-content:space-between;align-items:center;gap:8px}.iubenda-before-notice-content>img{flex-shrink:1;max-width:170px;min-width:50px;order:1}.iubenda-before-notice-content .adasta-show-second-page{order:2}}#iubenda-cs-banner#iubenda-cs-banner .adasta-show-second-page{background-color:#fff!important;border:1px solid #c7c7c7!important;color:#888!important;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 24px!important;border-radius:64px!important;cursor:pointer!important;font-weight:700!important;margin-top:4px;margin-bottom:4px;font-size:13px!important;text-align:center!important;flex-shrink:0;white-space:nowrap;align-self:end}#iubenda-cs-banner#iubenda-cs-banner .adasta-show-second-page:hover{box-shadow:0 0 0 999px inset rgba(0,0,0,.1)!important}#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn svg{margin-left:8px;vertical-align:middle}#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-title{font-size:16px!important}#adasta-back-button{cursor:pointer;color:#595959;font-weight:700;font-size:14px;display:inline-block;padding:8px;border:1px solid rgba(0,0,0,.25)!important;border-radius:6px}#adasta-back-button:hover{border:1px solid #000!important}#adasta-back-button>svg{vertical-align:middle}#iubenda-cs-banner#iubenda-cs-banner .adasta-accept-button,#iubenda-cs-banner#iubenda-cs-banner .adasta-reject-button{background-color:#0073ce!important;color:#fff!important;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 32px!important;border-radius:64px!important;cursor:pointer!important;font-weight:700!important;font-size:100%!important;margin-top:4px;margin-bottom:4px;text-align:center!important}#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-accept-btn{font-size:15px!important;padding:8px 42px!important}#iubenda-cs-banner#iubenda-cs-banner .adasta-accept-button{font-size:15px!important}#iubenda-cs-banner#iubenda-cs-banner .adasta-reject-button{background-color:#eaeaea!important;color:#000!important;padding:11px 32px!important}#iubenda-cs-banner#iubenda-cs-banner .adasta-top-line-container{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center}#iubenda-cs-banner#iubenda-cs-banner .adasta-top-line-container>img{justify-self:end;max-width:100%;max-height:30px}@media (max-width:639px){#iubenda-cs-banner#iubenda-cs-banner .adasta-top-line-container>img{max-height:24px}}.adasta-show-prompt-to-accept{overflow:hidden}.adasta-show-prompt-to-accept #iubenda-cs-banner .iubenda-cs-rationale>:not(.adasta-overlay-container){display:none!important}#iubenda-cs-banner .adasta-overlay-container-background{background:#fff;color:#000;width:100%}#iubenda-cs-banner .adasta-overlay-container{font-family:-apple-system,sans-serif!important;font-weight:300!important;line-height:inherit!important;max-width:992px;margin:0 auto;padding:32px 16px}#iubenda-cs-banner .adasta-overlay-container p{line-height:1.4!important}#iubenda-cs-banner .adasta-buttons-container{display:flex;flex-direction:row;justify-content:flex-end;gap:8px;padding-top:16px;display:flex;flex-direction:row}#iubenda-cs-banner h2{margin-bottom:16px;margin-top:8px;font-weight:700}@media (max-width:640px){#iubenda-cs-banner .adasta-buttons-container{flex-direction:column}#iubenda-cs-banner .adasta-buttons-container button{width:100%}#iubenda-cs-banner .iubenda-cs-opt-group>div,#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button{width:100%!important}}#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group{padding-top:12px!important} ambiente = window.location.host=="staging.assodigitale.it"?"test": "live"; //Esempio window.googletag = window.googletag || {}, window.googletag.cmd = window.googletag.cmd || [], window.googletag.cmd.push(function() { // Configure page-level targeting. googletag.pubads().setTargeting('ambiente', ambiente); }); function getSezioni() { let path = window.location.pathname; let path_split = path.split('/'); let sezione = path_split[1]; if (path_split.length==5){ articolo = path_split[3]; tmpArticolo = articolo.split('-'); } else{ articolo = ""; tmpArticolo = ""; } sezione = sezione.substring(0, 12); let isHome, isCategory, isArticle, isGallery; isHome = isCategory = isArticle = isGallery = false; if (path_split.length === 2) { isHome = true; sezione = "home"; } else if(tmpArticolo.length >1){ //articolo = path_split[path_split.length-1]; isGallery = true; isArticle = true; }else{ isCategory = true; } return [isHome, isCategory, isGallery, isArticle, sezione]; } window.assodigit_location = getSezioni(); function loadAds(changeNoSlotReload = false, divs = null) { //debugger; var confID = '6620efb94b031014d86f6c53'; if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ if(window.assodigit_location['isArticle']) confID = '6620efb94b031014d86f6c53'; else if(window.assodigit_location['isHome']){ confID = '6620ef9c387eacf1396f6c52'; } else if (window.assodigit_location['isCategory'] ) confID = '6620ef9c387eacf1396f6c52'; }else { //Desktop if(window.assodigit_location['isArticle']) confID = '6620efb94b031014d86f6c53'; else if(window.assodigit_location['isHome']) confID = '6620eebf4c297151a66f6c50'; else if(window.assodigit_location['isCategory'] ){ confID = '6620eebf4c297151a66f6c50'; console.log("test RY, in category page"); } } window.relevantDigital = window.relevantDigital || {}; relevantDigital.cmd = relevantDigital.cmd || []; relevantDigital.cmd.push(function() { relevantDigital.loadPrebid({ configId: confID, manageAdserver: true, collapseEmptyDivs: true, collapseBeforeAdFetch: false, allowedDivIds: null, // set to an array to only load certain
s, example - ["divId1", "divId2"] noSlotReload: changeNoSlotReload, // set true to only load ad slots that have never been loaded noGpt: true }); }); }; function isCMPWaiting() { return new Promise(function (resolve) { //Check if CPM API is available from here __tcfapi('addEventListener', 2, function(tcData, success) { const LOG_PREFIX = 'TCFAPI: '; console.debug("%saddEventListener", LOG_PREFIX, tcData); if (!success) { console.error("%sError in addEventListener", LOG_PREFIX); return; } switch (tcData.eventStatus) { case 'useractioncomplete': case 'tcloaded': { __tcfapi('removeEventListener', 2, function(success) { console.debug("%sremoveEventListener(%s):%s", LOG_PREFIX, tcData.listenerId, success); }, tcData.listenerId); if (success) { resolve(true) } else { resolve(null) console.error("%sCall to CMP failed", LOG_PREFIX); } break; } } }); }); } .assod-adasta-skin{ display:none} /* Dispositivi mobili */ @media (max-width: 899px) { .adasta_leaderboard_box{ min-height: 250px; max-height: 250px; } .adasta_leaderboard_masthMob{ min-height: 100px; max-height: 100px; } .adasta_masthead{ min-height: 250px; max-height: 250px; display: flex; align-items: center; justify-content: center } .cs-nextpost-inner .adasta_leaderboard_masthMob { min-height: 0px } .cs-nextpost-inner .adasta_leaderboard_box { min-height: 0px } .cs-nextpost-inner .adasta_masthead { min-height: 0px } } /* Desktop */ @media (min-width: 900px) { .adasta_leaderboard_box{ min-height: 90px; max-height: 90px; } .adasta_leaderboard_masthMob{ min-height: 90px; /*max-height: 90px;*/ } .adasta_masthead{ min-height: 250px; max-height: 250px; display: flex; align-items: center; justify-content: center } .cs-nextpost-inner .adasta_leaderboard_masthMob { min-height: 0px } .cs-nextpost-inner .adasta_leaderboard_box { min-height: 0px } .cs-nextpost-inner .adasta_masthead { min-height: 0px } } <!-- --> !function (e, f, u) { e.async = 1; e.src = u; f.parentNode.insertBefore(e, f); }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/adastapremium-assodigitale/loader.js'); /* if (!document.body.classList.contains('next-article-clistener-set')) { document.body.classList.add('next-article-clistener-set'); console.log('[ADASTA] Next article listener added'); // Carica gli slot iniziali /*document.querySelectorAll('.adastaAdv').forEach((slot) => { loadAds(true, slot.id); });*/ /* function waitForElement(selector, callback) { const el = document.querySelector(selector); if (el) { callback(el); } else { setTimeout(function() { waitForElement(selector, callback); }, 50); } } function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } function uniqid() { var id = getRandomInt(0, Date.now()); return id; } waitForElement('.adastaAdv', () =>{loadAds()}); waitForElement('.cs-nextpost-inner', (el) => { const observer = new MutationObserver((mutation) => { const newLoadedSlots = []; mutation.forEach((mutationRecord) => { mutationRecord.addedNodes.forEach((node) => { node.querySelectorAll('.adastaAdv').forEach((slot) => { newLoadedSlots.push(slot); }); }); }); for (const slot of newLoadedSlots) { slot.id = uniqid(); loadAds(true, slot.id); } }); observer.observe(el, { childList: true }); }); }*/ /*document.addEventListener('DOMContentLoaded', function() { var elementsDiv = document.getElementsByClassName('adastaAdv'); for(i=0; i<elementsDiv.length; i++){ // elementsDiv[i].id = uniqid(); elementsDiv[i].classList.remove("adastaAdv"); }loadAds();debugger; }); document.addEventListener('scroll', function() { var elementsDiv = document.getElementsByClassName('adastaAdv'); //debugger; for(i=0; i<elementsDiv.length; i++){ var id = uniqid(); elementsDiv[i].id = id; loadAds(false, id); elementsDiv[i].classList.remove("adastaAdv"); } });*/ /* document.addEventListener('DOMContentLoaded', function() { const adsDivs = document.getElementsByClassName('adastaAdv'); for(let i = 0; i < adsDivs.length; i++){ if (!adsDivs[i].hasAttribute("data-ad-loaded")) { adsDivs[i].setAttribute("data-ad-loaded", "true"); const idAdToLoad = adsDivs[i].getAttribute("id"); loadAds(false, idAdToLoad); } } }); document.addEventListener('scroll', function() { const adsDivs = document.getElementsByClassName('adastaAdv'); for(let i = 0; i { if(!window.__tcfapi) { console.log("__tcfapi not loaded yet...") return; // Not loaded yet } // __tcfapi loaded clearInterval(intervalId); //Check if CPM API is available from here __tcfapi('addEventListener', 2, function(tcData, success) { const LOG_PREFIX = 'TCFAPI: '; console.debug("%saddEventListener", LOG_PREFIX, tcData); if (!success) { console.error("%sError in addEventListener", LOG_PREFIX); return; } switch (tcData.eventStatus) { case 'useractioncomplete': case 'tcloaded': { __tcfapi('removeEventListener', 2, function(success) { console.debug("%sremoveEventListener(%s):%s", LOG_PREFIX, tcData.listenerId, success); }, tcData.listenerId); if (success) { resolve(true) } else { resolve(null) console.error("%sCall to CMP failed", LOG_PREFIX); } break; } } }); }, 50) }); } function initTeads() { const Teads = document.createElement('script'); Teads.async = true; Teads.type = 'text/javascript'; Teads.src = 'https:' + '//a.teads.tv/page/207579/tag'; const node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(Teads, node); console.log("attivazione TEads"); } isCMPWaiting().then(function(cmpResponse) { console.log("TCF verifica consenso per TEads"); if (cmpResponse !== null) { initTeads(); } });