document.cookie = 'acceptCookies=0; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/'; //cancello vecchio cookie // obtain cookieconsent plugin var cc = initCookieConsent(); var logo = 'PolimiDeib'; var cookie = '🍪'; // run plugin with config object cc.run({ current_lang: document.documentElement.getAttribute('lang'), // current_lang : 'en', autoclear_cookies : true, // default: false cookie_name: 'cc_cookie', // default: 'cc_cookie' cookie_expiration : 365, // default: 182 page_scripts: true, // default: false // auto_language: null, // default: null; could also be 'browser' or 'document' // autorun: true, // default: true // delay: 0, // default: 0 // force_consent: false, // hide_from_bots: true, // default: false remove_cookie_tables: true, // default: false // cookie_domain: location.hostname, // default: current domain // cookie_path: "/", // default: root // cookie_same_site: "Lax", // use_rfc_cookie: false, // default: false // revision: 0, // default: 0 gui_options: { consent_modal: { layout: 'box', // box,cloud,bar position: 'bottom right', // bottom,middle,top + left,right,center transition: 'slide' // zoom,slide }, settings_modal: { layout: 'box', // box,bar // position: 'left', // right,left (available only if bar layout selected) transition: 'slide' // zoom,slide } }, onFirstAction: function(){ // console.log('onFirstAction fired'); }, onAccept: function (cookie) { //console.log('onAccept fired ...'); }, onChange: function (cookie, changed_preferences) { // console.log('onChange fired ...'); if (!cc.allowedCategory('analytics')) { //console.log('deleteonChange!') cc.eraseCookies(['_pk_id.wgp988G3De.1ade']); cc.eraseCookies(['_pk_ses.wgp988G3De.1ade']); //cc.eraseCookies(['_pk_id.wgp988G3De.8d29']); //cc.eraseCookies(['_pk_ses.wgp988G3De.8d29']); } }, languages: { 'en': { consent_modal: { title: cookie + ' Cookies ', description: 'This website uses essential cookies to ensure its proper functioning and tracking cookies to understand how you interact with it. The latter will be set only with prior consent.



For more details on cookies and data processing, read the Cookie Policy and the Privacy Policy.
', primary_btn: { text: 'Accept all', role: 'accept_all' // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Manage preferences', role: 'settings' // 'settings' or 'accept_necessary' } }, settings_modal: { title: logo, save_settings_btn: 'Save settings', accept_all_btn: 'Accept all', reject_all_btn: 'Reject all', close_btn_label: 'Close', cookie_table_headers: [ {col1: 'Name'}, {col2: 'Domain'}, {col3: 'Expiration'}, {col4: 'Description'} ], blocks: [ { title: 'Cookie usage 📢', description: 'We use cookies to ensure basic website functionality and to improve your online experience. For each type of cookie you can choose to accept / reject when you want For more details about cookies and other sensitive data please read privacy policy in full.' }, { title: 'Strictly necessary cookies', description: 'These cookies are essential for the proper functioning of this website. Without these cookies, the website would not work properly.', toggle: { value: 'necessary', enabled: true, readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" } }, { title: 'Functional and Analytics cookies', description: 'These cookies allow the website to remember the choices you have made in the past', toggle: { value: 'analytics', // there are no default categories => you specify them enabled: false, readonly: false }, cookie_table: [ ] }, { title: 'More information', description: 'For more details on cookies and data processing, read the Cookie Policy and the Privacy Policy.', } ] } }, ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 'it': { consent_modal: { title: cookie + ' Cookies! ', description: 'Questo sito utilizza cookie essenziali per garantirne il corretto funzionamento e cookie di tracciamento per capire come interagisci con esso. Questi ultimi saranno impostati solo previo consenso.



Per maggiori dettagli sui cookie e sul trattamento dei dati, puoi leggere la Cookie Policy e la Privacy Policy.
', primary_btn: { text: 'Accetta tutti', role: 'accept_all' // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Gestisci le preferenze', role: 'settings' // 'settings' or 'accept_necessary' } }, settings_modal: { title: logo, save_settings_btn: 'Salva preferenze', accept_all_btn: 'Accetta tutti', reject_all_btn: 'Rifiuta tutti', close_btn_label: 'Chiudi', cookie_table_headers: [ {col1: 'Nome'}, {col2: 'Dominio'}, {col3: 'Scadenza'}, {col4: 'Descrizione'} ], blocks: [ { title: 'Utilizzo dei cookies 📢', description: 'Utiliazziamo i cookie per garantire le funzionalità di base del sito Web e per migliorare la tua esperienza online. Per ciascuna tipologia di cookie puoi scegliere di accettare/rifiutare quando vuoi. Per maggiori dettagli relativi a cookie e altri dati sensibili si prega di leggere integralmente privacy policy.' }, { title: 'Cookie strettamente necessari', description: 'Questi cookie sono essenziali per il corretto funzionamento di questo sito web. Senza questi cookie, il sito Web non funzionerebbe correttamente', toggle: { value: 'necessary', enabled: true, readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" } }, { title: 'Cookie funzionali e analitici', description: 'Questi cookie consentono al sito web di ricordare le scelte che hai fatto in passato', toggle: { value: 'analytics', // there are no default categories => you specify them enabled: false, readonly: false }, cookie_table: [ ] }, { title: 'Informazioni', description: 'Per maggiori dettagli sui cookie e sul trattamento dei dati, puoi leggere la Cookie Policy e la Privacy Policy.', } ] } } } });