PageSourceSearch

https://www.unappa.it/iandu-cc-init-js/?iandu-cc-init-js=1&ver=1.4.1

js unappa.it collected 2026-10-08 01:29:10 UTC 18,952 bytes, 376 lines download raw bytes

1    //<script type="text/javascript">
2        if (typeof(iandu_cookieconsent_obj) == "undefined"){
3            var iandu_cookieconsent_obj = {
4                "ajaxUrl" : "https://www.unappa.it/wp-admin/admin-ajax.php",
5                "security" : "ce8d5cb210",                
6                "autorun" : true,
7            };
8        }
9        var blocks = iandu_define_block();
10        var cc = initCookieConsent();
11        cc.run({
12            autoclear_cookies: true, // default: false
13            delay: 0, // default: 0
14            autorun: iandu_cookieconsent_obj.autorun == 'false' ? false : true, // default: true
15            hide_from_bots: false, // default: false
16            remove_cookie_tables: false, // default: false
17            cookie_name: 'iandu_cc_cookie', // default: 'cc_cookie'
18            cookie_data: 'iandu_cc_cookie', // default: 'cc_cookie'
19            cookie_expiration: 182, // default: 182 (days)
20            cookie_necessary_only_expiration: 'disabled', // default: disabled
21            cookie_domain: location.hostname, // default: current domain
22            cookie_path: '/', // default: root
23            cookie_same_site: 'Lax', // default: 'Lax'
24            use_rfc_cookie: false, // default: false
25            current_lang: 'it',
26            theme_css: 'https://www.unappa.it/wp-content/plugins/iandu-cookieconsent/public/js/../css/iandu-cookieconsent.css?t=1', // replace with a valid path
27            page_scripts: true, // default: false
28            auto_language: null, // default: null; could also be 'browser' or 'document'
29            mode: 'opt-in', // default: 'opt-in'; value: 'opt-in' or 'opt-out'
30            revision: 0, // default: 0
31            force_consent: true, // default: false            
32            gui_options: {
33                consent_modal: {
34                    layout: 'bar', // box/cloud/bar
35                    position: 'bottom center', // bottom/middle/top + left/right/center
36                    transition: 'slide', // zoom/slide
37                    swap_buttons: true            // enable to invert buttons
38                },
39                settings_modal: {
40                    layout: 'box', // box/bar
41                    //position: 'left',           // left/right
42                    transition: 'slide'            // zoom/slide
43                }
44            },
45            onFirstAction: function (user_preferences, cookie) {
46                var date = new Date();
47                cc.set("data", {"value": date.iandu_format_cookie()});
48                ianduOnCookieSaved(cookie);
49            },
50            onAccept: function (cookie) {
51                console.log("onAccept event");
52                // Ensure scripts are reactivated after all resources are loaded
53                window.addEventListener('load', function() {
54                    try {
55                        window.cc.updateScripts();
56                    } catch(e) {}
57                });
58                iandu_push_to_datalayer(cookie);
59            },
60            onChange: function (cookie, changed_preferences) {
61                console.log("onChange event");
62                if (cc.get('data') != "undefined") {
63                    var date = new Date();
64                    cc.set("data", {"value": date.iandu_format_cookie()});
65                }
66                iandu_push_to_datalayer(cookie);
67                ianduOnCookieSaved(cookie);
68               
69            },
70            languages: {
71    it: {
72                    consent_modal: {
73                        title: "Informativa",
74                        description: "Utilizziamo cookie o tecnologie simili per finalit&agrave; tecniche e, con il tuo consenso, anche per altre finalit\u00e0 (\"interazioni e funzionalit\u00e0 semplici\", \"miglioramento dell'esperienza\", \"misurazione\" e \"targeting e pubblicit\u00e0\") come specificato nella cookie policy.<br>\n                Cliccando su \"accetta\" acconsenti all'utilizzo dei cookie. Cliccando su \"personalizza\" puoi avere maggiori informazioni sui cookie utilizzati e personalizzare le tue preferenze. Cliccando su \"rifiuta\" o chiudendo questa informativa proseguirai la navigazione installando i soli cookie tecnici. Ulteriori informazioni sono disponibili nella <a href=\"#\" class=\"cc-link\">cookie policy<\/a> completa.<br>\n                ",
75                        primary_btn: {
76                            text: 'Accetta',
77                            role: 'accept_all'              // 'accept_selected' or 'accept_all'
78                        },
79                        secondary_btn: {
80                            text: 'Rifiuta',
81                            role: 'accept_necessary'        // 'settings' or 'accept_necessary'
82                        }
83                    },
84                    settings_modal: {
85                        title: 'Le tue preferenze relative al consenso',
86                        save_settings_btn: 'Salva preferenze',
87                        accept_all_btn: 'Accetta tutti',
88                        reject_all_btn: 'Accetta necessari',
89                        close_btn_label: 'Close',
90                        cookie_table_headers: [
91                            {col1: 'Nome'},
92                            {col2: 'Dominio'},
93                            {col3: 'Scadenza'},
94                                    /*{col4: 'Description'}*/
95                        ],
96                        blocks: blocks
97                    }
98                }
99            }
100        });
101        function iandu_push_to_datalayer(cookie){
102            if( typeof cookie !== "undefined" && Array.isArray(cookie['level']) ){
103                for( i = 0; i < cookie['level'].length; i++){
104                    console.log(cookie['level'][i]);
105                    /* Qui da inviare push al dataLayer di Google TAG Manager*/
106                    if (typeof dataLayer !== 'undefined') {
107                        dataLayer.push({
108                            event: "cc_" + cookie['level'][i]
109                        });
110                    }
111                }
112            }
113        }
114        function iandu_define_block() {
115            blocks = [
116                {
117                    title: '',
118                    description: 'Il seguente pannello ti consente di esprimere le tue preferenze di consenso alle tecnologie di tracciamento che adottiamo per offrire le funzionalità e svolgere le attività sotto descritte. Per ottenere ulteriori informazioni in merito all\'utilità e al funzionamento di tali strumenti di tracciamento, fai riferimento alla <a href="#" class="cc-link">cookie policy</a>. Puoi rivedere e modificare le tue scelte in qualsiasi momento.'
119                }
120            ];
121            var cookie_table = [];
122                        var tablerow = {};
123                    tablerow.col1 = 'PHPSESSID';
124                    tablerow.col2 = 'unappa.it';
125                    tablerow.col3 = 'Sessione';
126                    if (typeof cookie_table['necessary'] == "undefined") {
127                        cookie_table['necessary'] = [];
128                    }
129                    cookie_table['necessary'].push(tablerow);
130                                var tablerow = {};
131                    tablerow.col1 = 'iandu_cc_cookie';
132                    tablerow.col2 = 'unappa.it';
133                    tablerow.col3 = '182 giorni';
134                    if (typeof cookie_table['necessary'] == "undefined") {
135                        cookie_table['necessary'] = [];
136                    }
137                    cookie_table['necessary'].push(tablerow);
138                                var tablerow = {};
139                    tablerow.col1 = '_ga';
140                    tablerow.col2 = '.unappa.it';
141                    tablerow.col3 = '2 anni';
142                    if (typeof cookie_table['analytics'] == "undefined") {
143                        cookie_table['analytics'] = [];
144                    }
145                    cookie_table['analytics'].push(tablerow);
146                                var tablerow = {};
147                    tablerow.col1 = '_ga_NE4QTV9RST';
148                    tablerow.col2 = '.unappa.it';
149                    tablerow.col3 = '2 anni';
150                    if (typeof cookie_table['analytics'] == "undefined") {
151                        cookie_table['analytics'] = [];
152                    }
153                    cookie_table['analytics'].push(tablerow);
154                                var tablerow = {};
155                    tablerow.col1 = '_gid';
156                    tablerow.col2 = '.unappa.it';
157                    tablerow.col3 = '24 ore';
158                    if (typeof cookie_table['analytics'] == "undefined") {
159                        cookie_table['analytics'] = [];
160                    }
161                    cookie_table['analytics'].push(tablerow);
162                                var tablerow = {};
163                    tablerow.col1 = '_gat';
164                    tablerow.col2 = '.unappa.it';
165                    tablerow.col3 = '1 min';
166                    if (typeof cookie_table['analytics'] == "undefined") {
167                        cookie_table['analytics'] = [];
168                    }
169                    cookie_table['analytics'].push(tablerow);
170                                var tablerow = {};
171                    tablerow.col1 = '__cf_bm';
172                    tablerow.col2 = '.cdn.crafter.ai';
173                    tablerow.col3 = '30 min';
174                    if (typeof cookie_table['necessary'] == "undefined") {
175                        cookie_table['necessary'] = [];
176                    }
177                    cookie_table['necessary'].push(tablerow);
178                                        if (typeof cookie_table['necessary'] == "undefined") {
179                    cookie_table['necessary'] = [];
180                }
181                if(cookie_table['necessary'].length > 0){
182                     blocks.push({
183                        title: "Tecnici",
184                        description: "Questi cookie sono essenziali per il corretto funzionamento del sito web. Senza questi cookie, il sito Web non funzionerebbe correttamente.",
185                        toggle: {
186                            value: 'necessary',
187                            enabled: true,
188                            readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
189                        },
190                        cookie_table: cookie_table['necessary']
191
192                    });
193                }
194               
195                    if (typeof cookie_table['analytics'] == "undefined") {
196                    cookie_table['analytics'] = [];
197                }
198                if(cookie_table['analytics'].length > 0){
199                     blocks.push({
200                        title: "Analitici",
201                        description: "Questi cookie consentono al sito web di ricordare le scelte che hai fatto in passato.",
202                        toggle: {
203                            value: 'analytics',
204                            enabled: false,
205                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
206                        },
207                        cookie_table: cookie_table['analytics']
208
209                    });
210                }
211               
212                    if (typeof cookie_table['experience'] == "undefined") {
213                    cookie_table['experience'] = [];
214                }
215                if(cookie_table['experience'].length > 0){
216                     blocks.push({
217                        title: "Esperienza",
218                        description: "Questi cookie consentono al sito web di ricordare le scelte che hai fatto in passato.",
219                        toggle: {
220                            value: 'experience',
221                            enabled: false,
222                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
223                        },
224                        cookie_table: cookie_table['experience']
225
226                    });
227                }
228               
229                    if (typeof cookie_table['advertisement'] == "undefined") {
230                    cookie_table['advertisement'] = [];
231                }
232                if(cookie_table['advertisement'].length > 0){
233                     blocks.push({
234                        title: "Profilazione",
235                        description: "Questi cookie raccolgono informazioni su come utilizzi il sito web, quali pagine hai visitato e quali link hai cliccato. Tutti i dati sono resi anonimi e non possono essere utilizzati per identificarti.",
236                        toggle: {
237                            value: 'advertisement',
238                            enabled: false,
239                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
240                        },
241                        cookie_table: cookie_table['advertisement']
242
243                    });
244                }
245               
246                    if (typeof cookie_table['others'] == "undefined") {
247                    cookie_table['others'] = [];
248                }
249                if(cookie_table['others'].length > 0){
250                     blocks.push({
251                        title: "Cookie non ancora classificati in una categoria.",
252                        description: "Altri cookie di Terze parti.",
253                        toggle: {
254                            value: 'others',
255                            enabled: false,
256                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
257                        },
258                        cookie_table: cookie_table['others']
259
260                    });
261                }
262               
263    
264                                                        blocks.push({
265                    title: 'Servizi terze parti',
266                    description: 'Questi sono cookie che potrebbero essere generati da servizi esterni inclusi attraverso iframe (youtube, facebook, vimeo,...) ' + '<table><thead><tr><th scope="col">Nome</th><th scope="col">Dominio</th><th scope="col">Termini del servizio</th></tr></thead><tbody><tr><td>Youtube(BE)</td><td>youtube.be</td><td><a target=\'_blank\' href=\'https://policies.google.com/terms?gl=IT&hl=it\'>https://policies.google.com/terms?gl=IT&hl=it</a></td></tr><tr><td>Youtube</td><td>youtube.com</td><td><a target=\'_blank\' href=\'https://policies.google.com/terms?gl=IT&hl=it\'>https://policies.google.com/terms?gl=IT&hl=it</a></td></tr></tbody></table>',
267                    toggle: {
268                        value: 'iframe',
269                        enabled: false,
270                        readonly: false         // cookie categories with readonly=true are all treated as "necessary cookies"
271                    }
272
273                });
274
275    
276
277            blocks.push({'title': 'Maggiori informazioni',
278                'description': 'Per qualsiasi domanda in relazione alla nostra politica sui cookie e alle tue scelte, per favore <a class="cc-link" href="https://www.unappa.it/contatti/">contattaci</a>.'
279            });
280            return blocks;
281        }
282
283        Date.prototype.iandu_format_cookie = function () {
284            var mm = this.getMonth() + 1; // getMonth() is zero-based
285            var dd = this.getDate();
286            var hh = this.getHours();
287            var ii = this.getMinutes();
288            var ss = this.getSeconds();
289            var ms = this.getMilliseconds();
290            ms = (ms > 9 ? '' : '0') + ms;
291            return [this.getFullYear(),
292                (mm > 9 ? '' : '0') + mm,
293                (dd > 9 ? '' : '0') + dd,
294                (hh > 9 ? '' : '0') + hh,
295                (ii > 9 ? '' : '0') + ii,
296                (ss > 9 ? '' : '0') + ss,
297                (ms > 99 ? '' : '0') + ms,
298                '-',
299                iandu_get_random_digits(4)
300            ].join('');
301        };
302        function iandu_get_random_digits(lenght) {
303            min = 0;
304            max = 9;
305            digits = '';
306            for (i = 0; i < lenght; i++) {
307                digits += Math.floor(Math.random() * (max - min + 1) + min);
308            }
309            return digits; //The maximum is inclusive and the minimum is inclusive
310        }
311        function ianduCloseBanner(){
312          cc.hideSettings();
313          cc.hide();
314          cc.accept([]);
315        }
316
317        function ianduSaveConsent(cookie){
318            const formData = new FormData();
319            formData.append("action", "iandu_register_cookie_consent");
320            formData.append("security", iandu_cookieconsent_obj.security); 
321            formData.append("page_referer", document.location.href); 
322            formData.append("html_form", JSON.stringify(document.querySelector("#s-bl").innerHTML)); 
323            formData.append("data", JSON.stringify(cookie)); 
324            let request = new XMLHttpRequest();
325            request.addEventListener("load", iandu_cc_success);
326            request.addEventListener("error", iandu_cc_error);
327            request.addEventListener("abort", iandu_cc_abort);
328            request.open("POST", iandu_cookieconsent_obj.ajaxUrl);
329            request.send(formData);
330        }
331        
332        function ianduOnCookieSaved(cookie){
333             
334                ianduSaveConsent(cookie);
335                    }
336        
337        function iandu_cc_success(evt) {
338                        window.location.reload();
339                    }
340
341        function iandu_cc_error(evt) {
342          console.warn("Error");
343        }
344
345        function iandu_cc_abort(evt) {
346          console.warn("Abort");
347        }
348        
349        document.addEventListener("DOMContentLoaded", function() {
350                let closeBtn = document.createElement("button");
351                closeBtn.className = "c-bn"; 
352                closeBtn.setAttribute('type','button');
353                closeBtn.setAttribute('id','iandu-close-banner');
354                closeBtn.setAttribute('aria-label','Close');
355                closeBtn.onclick = function(){
356                    ianduCloseBanner();
357                };
358                let customizeBtn = document.createElement("button");
359                customizeBtn.innerHTML = "Personalizza";
360                customizeBtn.className = "c-bn"; 
361                customizeBtn.setAttribute('type','button');
362                customizeBtn.onclick = function(){
363                    cc.showSettings();
364                  };
365                if(document.querySelector('#cm') != null){   
366                    document.querySelector('#cm').prepend(closeBtn);
367                }  
368                if(document.querySelector('#c-bns') != null){   
369                   document.querySelector('#c-bns').prepend(customizeBtn);
370                }  
371                    
372            }
373        );       
374
375        //</script>
376    

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.