/* Copyright 2018 Pasquale Di Dato | www.yudo.it | pasquale@yudo.it http://gdpr.yudo.it/gdpr.js */ var SiteName; var LOCALCOOKIEtx; function deleteSettedCookies() { LOCALCOOKIEtx=decodeURIComponent(localStorage.getItem("LOCALCOOKIE")); if(LOCALCOOKIEtx.length>2){ allcc=LOCALCOOKIEtx.split("|"); for (var i = 0; i < allcc.length; i++) { nm=allcc[i].trim().split(":"); if(nm[1]<1){ document.cookie = nm[0] + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; } } } } function AddCookieDiv(){ if(!gEM("CC_ShowCookies")){ divK = document.createElement('div'); divK.id = "CC_ShowCookiesK"; divK.style="position:fixed;left:0px;top:0px;width:100vw;height:100vh;z-index:99999;background-color:rgba(0,0,0,0.53);"; divK.zIndex=99999; document.body.appendChild(divK); div = document.createElement('div'); div.id = "CC_ShowCookies"; div.style="color:#000055;font-size:12px;line-height:150%;position:fixed;left:50%;top:0px;width:650px;max-width:100%;padding:26px 26px 0px 26px;box-sizing:border-box;background:rgba(250,250,255,0.95);transform:translateX(-50%);max-height:90vh;overflow:auto;box-shadow:1px 1px 3px rgba(0,0,0,0.53);z-index:99999;"; STYL=''; TABS='
Gestione cookie
Informazioni cookie
Analizzo i cookies...
Informativa Cookie, ultimo aggiornamento: 15/05/2018
'; SiteName=document.location.href.split("://")[1]; SiteName=SiteName.indexOf("/")>0?SiteName.split("/")[0]:SiteName; AlertText='
'+SiteName+' utilizza cookies analitici e di profilazione di terze parti per analizzare e ricavare informazioni sul tuo comportamento sul nostro sito web e per inviarti informazioni in linea con le tue scelte ed interessi. Se vuoi saperne di più o vuoi negare il consenso ad alcuni cookies, clicca su "Mostra Cookies". Se continui la navigazione proseguendo oltre questo banner, accetti l\'uso dei cookies.
OK
▶ Mostra Cookies
'; div.innerHTML=STYL+'
Site IconQuesto sito web utilizza i cookie
'+AlertText+'
Clicca sul nome del cookie per conoscerne uso e significato.
'+TABS+'
creato con GDPR.yudo.it
'; div.zIndex=99999999; document.body.appendChild(div); } } function gEM(w){ return document.getElementById(w); } function ShowView(n){ gEM("Viewer_1").style.display="none"; gEM("Viewer_2").style.display="none"; gEM("CC_Tab_1").style.backgroundColor="#eeeeee"; gEM("CC_Tab_2").style.backgroundColor="#eeeeee"; gEM("Viewer_"+n).style.display="block"; gEM("CC_Tab_"+n).style.backgroundColor="#ffffff"; } function MostraNascondi(){ var V=gEM("CC_MostraDettagli").innerHTML.indexOf("Mostra")>0; if(V){ gEM("CC_MostraDettagli").innerHTML='▼ Nascondi Cookies'; gEM("CContents").style.display='block'; } else{ gEM("CC_MostraDettagli").innerHTML='▶ Mostra Cookies'; gEM("CContents").style.display='none'; } } function CC_OK(){ Set_Cookie("GDPR", 1, "99999", "/", "", ""); oP = gEM("CC_ShowCookies"); oP.parentNode.removeChild(oP); oP2 = gEM("CC_ShowCookiesK"); oP2.parentNode.removeChild(oP2); // AddButtonGDPR(); } function CloseButton(){ oP = gEM("CC_ShowCookies_Button"); oP.parentNode.removeChild(oP); } function loadJSON() { var script = document.createElement('script'); script.src = 'https://yudoit.serversicuro.it/gdpr/json.php?site='+document.location.href+'&tm='+Math.random(); document.body.appendChild(script); } function init() { loadJSON(function(response) { // Parse JSON string into object var actual_JSON = JSON.parse(response); }); } function Set_Cookie( name, value, expires, path, domain, secure ){ var today = new Date(); today.setTime( today.getTime() ); if ( expires ){ expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie = name + "=" +escape( value ) + ( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + ( ( path ) ? ";path=" + path : "" ) + ( ( domain ) ? ";domain=" + domain : "" ) + ( ( secure ) ? ";secure" : "" ); } function getCookie(c_name){ var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i