function getOccurrencesOfScript(url){var occurrences=0;var scripts=document.getElementsByTagName('script');for(var i=scripts.length;i--;){if(scripts[i].src==""){continue}if(String(scripts[i].src).startsWith(url)){occurrences++}}return occurrences}var gdprReferenceRequest="2";var gdprReferenceSession="2";if(gdprReferenceSession==""){alert("Parametri insufficienti per il plugin GDPR.")}var gdprId="3258595a313936384058595a3139363821";var gdprNome="Domenico";var gdprCognome="Chiricosta";var gdprSocieta="Digiting S.r.l.";var gdprEmail="commerciale@digiting.it";var gdprPEC="pec@digitingpec.it";var gdprSitoWeb="digiting.it";var gdprIndirizzo="Via Don Benedetto Baldi snc - 01019 Vetralla VT";var gdprCellulare="3401234790";var gdprCodiceFiscale="02163490564";var gdprPartitaIVA="02163490564";var gdprIconaVisibile="S";if(gdprSocieta==""){gdprSocieta=gdprNome+" "+gdprCognome}var pluginAppenaInstallato=false;var gdprPathCookieName="digiting/";if(gdprPathCookieName.endsWith("/")){gdprPathCookieName=gdprPathCookieName.substring(0,gdprPathCookieName.length-1)}var gdprReferenceCookieName="2";var gdprSuffixCookie=gdprPathCookieName+"_"+gdprReferenceCookieName;var gdprExpiredCookieDateInDays=182;var gdprPrefixCookie="DG_GDPR_COOKIE_"+gdprSuffixCookie+"_";var gdprIdCategoryNecessario="1";var gdprHead;var gdprBody;var dg_gdpr_cookie_not_setting=0;var dg_gdpr_cookie_required_not_setting=0;var dg_gdpr_cookie_not_required_not_setting=0;var dg_gdpr_cookie_category={};var seChiamanteAutorizzato=true;if((gdprSitoWeb).includes(window.location.hostname)){if(!(window.self!==window.top)){seChiamanteAutorizzato=true}else{seChiamanteAutorizzato=false}}else{seChiamanteAutorizzato=false}window.addEventListener("load",function(evt){if(seChiamanteAutorizzato){document.addEventListener("click",function(e){e=e||window.event;var target=e.target||e.srcElement;if(target.id=="ID_DIV_GDPR_DIALOG"){gdprHideDialog(document.getElementById("ID_DIV_GDPR_DIALOG"))}else if(target.id=="ID_DIV_GDPR_DIALOG_REFUSE_COMUNICATION"){gdprHideDialog(document.getElementById("ID_DIV_GDPR_DIALOG_REFUSE_COMUNICATION"))}},false);gdprHead=document.getElementsByTagName("head")[0];gdprBody=document.getElementsByTagName("body")[0];gdprOnReadyCode()}});function gdprOnReadyCode(){gdprSetCookie("cookie1_test",getCurrentMillisecond(),gdprExpiredCookieDateInDays);if(getOccurrencesOfScript("https://www.piattaformasicura.it/DigitingMainProject/MainProject/gdpr_external_plugin.php")>1){sendEmailToWebsiteGDPRAdministrator("Errore PLUGIN GDPR","Si comunica che e' stato inserito piu' volte, lo script per l'installazione del PLUGIN GDPR.
Si prega di controllare il codice e correggere l'errore.")}var DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM=gdprGetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM");if(DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM==""){pluginAppenaInstallato=true;gdprSetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM",getCurrentMillisecond(),gdprExpiredCookieDateInDays);DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM=gdprGetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM")}if(gdprGetCookie(gdprPrefixCookie+"UUID")==""){gdprSetCookie(gdprPrefixCookie+"UUID",gdprGetUUID(),gdprExpiredCookieDateInDays)}var differenza=getCurrentMillisecond()-parseInt(DG_GDPR_LAST_UPDATE_COOKIE_ON_PIATTAFORM);var differenzaInMinuti=((differenza/(1000*60))%60);var differenzaInOre=(differenza/(1000*60*60));var differenzaInGiorni=(differenza/(24*60*60*1000));if(pluginAppenaInstallato||differenzaInGiorni>30){console.log("Differenza giorni superata ("+differenzaInGiorni+") oppure plugin appena installato ("+pluginAppenaInstallato+")");sendCookieToServerJson(true);gdprSetCookie(gdprPrefixCookie+"LAST_UPDATE_ON_PIATTAFORM",getCurrentMillisecond(),gdprExpiredCookieDateInDays)}else{console.log("getCategoryAndCookieFromServerJson()");getCategoryAndCookieFromServerJson()}}function sendCookieToServerJson(getCategory){var cookieForUrl="";var cookies=getCookiesArray();let sendCookieToServer=false;for(var clientCookieName in cookies){clientCookieName=clientCookieName.replace(" ","_");cookieForUrl+=clientCookieName+"_COKSEP_";let clientCookieNameTrovato=false;for(var key in dg_gdpr_cookie_category){var cookiesOfCategoryTemp=dg_gdpr_cookie_category[key].COOKIE;for(var key_ in cookiesOfCategoryTemp){var serverCookieName=cookiesOfCategoryTemp[key_].NOME_COOKIE;serverCookieName=serverCookieName.replace(" ","_");if(clientCookieName==serverCookieName){clientCookieNameTrovato=true}}}if(!clientCookieNameTrovato){sendCookieToServer=true}}var xhttp=new XMLHttpRequest();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=register_cookie_from_monitoring_plugin_json&"+"cookie="+cookieForUrl;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){if(getCategory){getCategoryAndCookieFromServerJson()}}};xhttp.send()}function getCategoryAndCookieFromServerJson(){var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=user_gdpr_cookie_privacy_with_category_json";var xhttp=new XMLHttpRequest();xhttp.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var json=JSON.parse(this.response);dg_gdpr_cookie_category=json.data;gdprAppend(gdprBody,"div",gdprAlert(gdprAlertStartContent()));if(gdprIconaVisibile=="S"){gdprAppend(gdprBody,"a",gdprIcon())}gdprRefreshGDPRCookieStatus(true);gdprDeleteAllCookieNotAccepted()}};xhttp.open("POST",urlTemp,true);xhttp.send()}function gdprSendToServerCookieCategorySeletion(){var cookieCategoryForUrl="";for(var key in dg_gdpr_cookie_category){var idTemp=dg_gdpr_cookie_category[key].ID_CATEGORIA;var nomeTemp=dg_gdpr_cookie_category[key].NOME_CATEGORIA;nomeTemp=nomeTemp.replace(" ","_");let categorySelection=JSON.parse(gdprGetCookie(gdprPrefixCookie+"CATEGORY_SELECTION"));cookieCategoryForUrl+=gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()+"-"+categorySelection[gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()]+"_COKSEP_"}var xhttp=new XMLHttpRequest();var d=new Date();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"IP=18.191.93.32&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"DATA="+d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate()+" "+d.getHours()+"_"+d.getMinutes()+"_"+d.getSeconds()+"&"+"ID_USER="+gdprId+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=register_cookie_category_selection_from_gdpr_plugin_json&"+"cookieCategory="+cookieCategoryForUrl;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){sendCookieToServerJson(false)}};xhttp.send()}function gdprChangeAlertContent(param){if(param=="1"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertStartContent()}else if(param=="2"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertConsensContent();document.getElementById("GDPR_INFORMATIVA").innerHTML='Loading...';getUserDataFromServer()}else if(param=="3"){document.getElementById("ID_DIV_GDPR_ALERT_CONTENT").innerHTML=gdprAlertContactDPOContent()}}function gdprAlert(html){var html='
'+'
'+'
'+'
'+''+html+''+'
'+''+'
';return html}function gdprAlertStartContent(){var html='
'+'Noi ed alcuni partner selezionati, utilizziamo cookie o tecnologie simili come specificato nella cookie policy. Puoi acconsentire all’utilizzo dei soli cookie tecnici spingendo il bottone ACCETTO, oppure tramite il bottone PERSONALIZZA, potrai avere più informazioni e selezionare la tecnologia che ritieni più idonea. Potrai visionare l’informativa cookie policy spingendo il bottone PRIVACY CENTER oppure, se lo ritieni necessario, potrai contattare il nostro responsabile sulla privacy, spingendo il bottone CONTATTA MANGAER e compilando il form di contatto.'+'
'+' '+' '+' '+''+'
'+'
';let categorySelection='{';for(var key in dg_gdpr_cookie_category){var idTemp=dg_gdpr_cookie_category[key].ID_CATEGORIA;var nomeTemp=dg_gdpr_cookie_category[key].NOME_CATEGORIA;nomeTemp=nomeTemp.replace(" ","_");var descrizioneTemp=dg_gdpr_cookie_category[key].DESCRIZIONE_CATEGORIA;var cookiesNumberTemp=0;if(Object.keys(dg_gdpr_cookie_category[key].COOKIE).length&&Object.keys(dg_gdpr_cookie_category[key].COOKIE)[0]){cookiesNumberTemp=Object.keys(dg_gdpr_cookie_category[key].COOKIE).length}var checkboxTempChecked=false;if(idTemp==gdprIdCategoryNecessario&&gdprGetCookie(gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase())==""){categorySelection+='"'+gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()+'":"1",';checkboxTempChecked=true}else{if(cookiesNumberTemp<=0){categorySelection+='"'+gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()+'":"1",'}else{categorySelection+='"'+gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase()+'":"0",'}}html+='
'+''+''+dg_gdpr_cookie_category[key].NOME_CATEGORIA+' ('+cookiesNumberTemp+') '+'+'+''+''+'
'+'
'}if(categorySelection.endsWith(",")){categorySelection=categorySelection.substring(0,categorySelection.length-1)}categorySelection+='}';gdprSetCookie(gdprPrefixCookie+"CATEGORY_SELECTION",categorySelection,gdprExpiredCookieDateInDays);html+='
'+'
'+' '+' '+''+'
'+'';return html}function gdprAlertConsensContent(){var html='
'+'
'+''+'
'+'
'+'CONSENSO ALLA PRIVACY'+'
'+'
'+'
';html+='
';return html}function gdprAlertContactDPOContent(){var html='
'+'
'+''+'
'+'
'+'CONTATTA MANAGER'+'
'+'
'+'
'+'
'+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+''+'
EMAIL'+''+'
RICHIESTA'+''+'
'+''+'
'+' SEI ISCRITTO ? '+'
'+'
MESSAGGIO'+''+'
'+''+'
'+'
'+'
';return html}function gdprIcon(){return'

🔒

'}function gdprManageUsernameInFormRequestContact(this_,id){if(this_.checked){document.getElementById(id).style.display="table-row"}else{document.getElementById(id).style.display="none"}}function sendEmailToWebsiteGDPRAdministrator(titolo,messaggio){var xhttp=new XMLHttpRequest();var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=send_email_to_website_gdpr_administrator&"+"TITOLO="+titolo+"&"+"MESSAGGIO="+messaggio;xhttp.open("POST",urlTemp,true);xhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhttp.onreadystatechange=function(){if(xhttp.readyState==4&&xhttp.status==200){}};xhttp.send()}function gdprSetCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString()+";";var path="path=/;";var domain="domain="+window.location.hostname+";";var samesite="samesite=none; secure;";document.cookie=cname+"="+cvalue+";"+expires+""+path+""+domain+""+""+samesite+""}function gdprGetCookie(cname){var name=cname+"=";var decodedCookie=document.cookie;var ca=decodedCookie.split(';');for(var i=0;i0){document.getElementById("ID_DIV_GDPR_ICON").style.color="#c56d02";document.getElementById("ID_DIV_GDPR_ICON").style.borderColor="#c56d02";document.getElementById("ID_DIV_GDPR_ICON").style.backgroundColor="#c56d02";document.getElementById("ID_DIV_GDPR_ICON").style.outline="2px solid #c56d02"}else if(dg_gdpr_cookie_not_setting<=0){document.getElementById("ID_DIV_GDPR_ICON").style.color="green";document.getElementById("ID_DIV_GDPR_ICON").style.borderColor="green";document.getElementById("ID_DIV_GDPR_ICON").style.backgroundColor="green";document.getElementById("ID_DIV_GDPR_ICON").style.outline="2px solid green"}if(gdprGetCookie(gdprPrefixCookie+"CONSENT")!="1"){gdprShowElement(document.getElementById("ID_DIV_GDPR_ALERT"),"1.0");gdprHideElement(document.getElementById("ID_DIV_GDPR_ICON"));gdprShowElement(document.getElementById("ID_DIV_GDPR_ALERT_BACKDROP"),"0.3")}else{gdprHideElement(document.getElementById("ID_DIV_GDPR_ALERT"));gdprShowElement(document.getElementById("ID_DIV_GDPR_ICON"),"1.0");gdprHideElement(document.getElementById("ID_DIV_GDPR_ALERT_BACKDROP"))}}function getUserDataFromServer(){var urlTemp="//piattaformasicura.it/DigitingMainProject/MainProject/php/ajax_external_action.php?"+"ID_USER="+gdprId+"&"+"UUID="+gdprGetCookie(gdprPrefixCookie+"UUID")+"&"+"CONFIG=5858595a313936384058595a3139363821&"+"PATH=6469676974696e672f58595a313936384058595a3139363821&"+"job=user_gdpr_data";var xhttp=new XMLHttpRequest();xhttp.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var json=JSON.parse(this.response);document.getElementById("GDPR_INFORMATIVA").innerHTML=json.data.GDPR_INFORMATIVA}};xhttp.open("POST",urlTemp,true);xhttp.send()}function gdprDeleteAllCookieNotAccepted(){for(var key in dg_gdpr_cookie_category){var idTemp=dg_gdpr_cookie_category[key].ID_CATEGORIA;var nomeTemp=dg_gdpr_cookie_category[key].NOME_CATEGORIA;nomeTemp=nomeTemp.replace(" ","_");var descrizioneTemp=dg_gdpr_cookie_category[key].DESCRIZIONE_CATEGORIA;var deleteAllCookieInCategory=false;if(gdprGetCookie(gdprPrefixCookie+"CATEGORY_"+idTemp+"_"+nomeTemp.toUpperCase())=="0"){deleteAllCookieInCategory=true}if(deleteAllCookieInCategory){for(var key_ in dg_gdpr_cookie_category[key].COOKIE){var idTemp_=dg_gdpr_cookie_category[key].COOKIE[key_].ID_COOKIE;var nomeTemp_=dg_gdpr_cookie_category[key].COOKIE[key_].NOME_COOKIE;var descrizioneTemp_=dg_gdpr_cookie_category[key].COOKIE[key_].DESCRIZIONE_COOKIE;if(!idTemp_){continue}gdprDeleteCookie(nomeTemp_)}}}}function getCookiesArray(){var cookies={};if(document.cookie&&document.cookie!=''){var split=document.cookie.split(';');for(var i=0;i"+title+"

"+messagge+"";document.getElementById("COMUNICATIONS").style.display="block";setTimeout(function(){document.getElementById("COMUNICATIONS").innerHTML="";document.getElementById("COMUNICATIONS").style.display="none"},2500)}function gdprHideDialogMessage(){}function getCurrentMillisecond(){var d=new Date();return d.getTime()}function gdprAppend(elementFromAppend,elementTypeToAppend,elementContentToAppend){elementFromAppend.insertAdjacentHTML("beforeend",elementContentToAppend)}function gdprGetUUID(){function chr4(){return Math.random().toString(16).slice(-4)}return chr4()+chr4()+'-'+chr4()+'-'+chr4()+'-'+chr4()+'-'+chr4()+chr4()+chr4()}function gdprFormOnSubmitAjaxSendResponseInTarget(event,form){event.preventDefault();var param={};var urlTemp=form.action;urlTemp=urlTemp+"?1=1";for(var i=0;i