PageSourceSearch

https://www.commissionefilmcei.it/wp-content/plugins/iandu-cookiec…/js/cookieconsent-init.js.php?ver=1.2.6

js commissionefilmcei.it collected 2026-09-26 08:36:53 UTC 18,139 bytes, 366 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.commissionefilmcei.it/wp-admin/admin-ajax.php",
5                "security" : "6d2237b8ea",                
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.commissionefilmcei.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                iandu_push_to_datalayer(cookie);
53            },
54            onChange: function (cookie, changed_preferences) {
55                console.log("onChange event");
56                if (cc.get('data') != "undefined") {
57                    var date = new Date();
58                    cc.set("data", {"value": date.iandu_format_cookie()});
59                }
60                iandu_push_to_datalayer(cookie);
61                ianduOnCookieSaved(cookie);
62               
63            },
64            languages: {
65    it: {
66                    consent_modal: {
67                        title: "Informativa",
68                        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 di profilazione. 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                ",
69                        primary_btn: {
70                            text: 'Accetta',
71                            role: 'accept_all'              // 'accept_selected' or 'accept_all'
72                        },
73                        secondary_btn: {
74                            text: 'Rifiuta',
75                            role: 'accept_necessary'        // 'settings' or 'accept_necessary'
76                        }
77                    },
78                    settings_modal: {
79                        title: 'Le tue preferenze relative al consenso',
80                        save_settings_btn: 'Salva preferenze',
81                        accept_all_btn: 'Accetta tutti',
82                        reject_all_btn: 'Accetta necessari',
83                        close_btn_label: 'Close',
84                        cookie_table_headers: [
85                            {col1: 'Nome'},
86                            {col2: 'Dominio'},
87                            {col3: 'Scadenza'},
88                                    /*{col4: 'Description'}*/
89                        ],
90                        blocks: blocks
91                    }
92                }
93            }
94        });
95        function iandu_push_to_datalayer(cookie){
96            if( typeof cookie !== "undefined" && Array.isArray(cookie['level']) ){
97                for( i = 0; i < cookie['level'].length; i++){
98                    console.log(cookie['level'][i]);
99                    /* Qui da inviare push al dataLayer di Google TAG Manager*/
100                    if (typeof dataLayer !== 'undefined') {
101                        dataLayer.push({
102                            event: "cc_" + cookie['level'][i]
103                        });
104                    }
105                }
106            }
107        }
108        function iandu_define_block() {
109            blocks = [
110                {
111                    title: '',
112                    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.'
113                }
114            ];
115            var cookie_table = [];
116                        var tablerow = {};
117                    tablerow.col1 = 'iandu_cc_cookie';
118                    tablerow.col2 = 'commissionefilmcei.it';
119                    tablerow.col3 = '182 giorni';
120                    if (typeof cookie_table['necessary'] == "undefined") {
121                        cookie_table['necessary'] = [];
122                    }
123                    cookie_table['necessary'].push(tablerow);
124                                var tablerow = {};
125                    tablerow.col1 = '_ga';
126                    tablerow.col2 = '.commissionefilmcei.it';
127                    tablerow.col3 = '2 anni';
128                    if (typeof cookie_table['analytics'] == "undefined") {
129                        cookie_table['analytics'] = [];
130                    }
131                    cookie_table['analytics'].push(tablerow);
132                                var tablerow = {};
133                    tablerow.col1 = '_ga_CHF2K6Z73Q';
134                    tablerow.col2 = '.commissionefilmcei.it';
135                    tablerow.col3 = '2 anni';
136                    if (typeof cookie_table['analytics'] == "undefined") {
137                        cookie_table['analytics'] = [];
138                    }
139                    cookie_table['analytics'].push(tablerow);
140                                var tablerow = {};
141                    tablerow.col1 = '_ga_VMSXLL2MYL';
142                    tablerow.col2 = '.commissionefilmcei.it';
143                    tablerow.col3 = '2 anni';
144                    if (typeof cookie_table['analytics'] == "undefined") {
145                        cookie_table['analytics'] = [];
146                    }
147                    cookie_table['analytics'].push(tablerow);
148                                var tablerow = {};
149                    tablerow.col1 = 'piwik';
150                    tablerow.col2 = '.commissionefilmcei.it';
151                    tablerow.col3 = 'Sessione';
152                    if (typeof cookie_table['analytics'] == "undefined") {
153                        cookie_table['analytics'] = [];
154                    }
155                    cookie_table['analytics'].push(tablerow);
156                                var tablerow = {};
157                    tablerow.col1 = '_pk_id*';
158                    tablerow.col2 = '.commissionefilmcei.it';
159                    tablerow.col3 = '13 mesi';
160                    if (typeof cookie_table['analytics'] == "undefined") {
161                        cookie_table['analytics'] = [];
162                    }
163                    cookie_table['analytics'].push(tablerow);
164                                var tablerow = {};
165                    tablerow.col1 = '_pk_ses*';
166                    tablerow.col2 = '.commissionefilmcei.it';
167                    tablerow.col3 = '30 minuti';
168                    if (typeof cookie_table['analytics'] == "undefined") {
169                        cookie_table['analytics'] = [];
170                    }
171                    cookie_table['analytics'].push(tablerow);
172                                var tablerow = {};
173                    tablerow.col1 = '_gid';
174                    tablerow.col2 = '.commissionefilmcei.it';
175                    tablerow.col3 = '24 ore';
176                    if (typeof cookie_table['analytics'] == "undefined") {
177                        cookie_table['analytics'] = [];
178                    }
179                    cookie_table['analytics'].push(tablerow);
180                                var tablerow = {};
181                    tablerow.col1 = '_gat';
182                    tablerow.col2 = '.commissionefilmcei.it';
183                    tablerow.col3 = '1 min';
184                    if (typeof cookie_table['analytics'] == "undefined") {
185                        cookie_table['analytics'] = [];
186                    }
187                    cookie_table['analytics'].push(tablerow);
188                                var tablerow = {};
189                    tablerow.col1 = 'PHPSESSID';
190                    tablerow.col2 = 'commissionefilmcei.it';
191                    tablerow.col3 = 'sessione';
192                    if (typeof cookie_table['necessary'] == "undefined") {
193                        cookie_table['necessary'] = [];
194                    }
195                    cookie_table['necessary'].push(tablerow);
196                                        if (typeof cookie_table['necessary'] == "undefined") {
197                    cookie_table['necessary'] = [];
198                }
199                if(cookie_table['necessary'].length > 0){
200                     blocks.push({
201                        title: "Tecnici",
202                        description: "Questi cookie sono essenziali per il corretto funzionamento del sito web. Senza questi cookie, il sito Web non funzionerebbe correttamente.",
203                        toggle: {
204                            value: 'necessary',
205                            enabled: true,
206                            readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
207                        },
208                        cookie_table: cookie_table['necessary']
209
210                    });
211                }
212               
213                    if (typeof cookie_table['analytics'] == "undefined") {
214                    cookie_table['analytics'] = [];
215                }
216                if(cookie_table['analytics'].length > 0){
217                     blocks.push({
218                        title: "Analitici",
219                        description: "Questi cookie consentono al sito web di ricordare le scelte che hai fatto in passato.",
220                        toggle: {
221                            value: 'analytics',
222                            enabled: false,
223                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
224                        },
225                        cookie_table: cookie_table['analytics']
226
227                    });
228                }
229               
230                    if (typeof cookie_table['advertisement'] == "undefined") {
231                    cookie_table['advertisement'] = [];
232                }
233                if(cookie_table['advertisement'].length > 0){
234                     blocks.push({
235                        title: "Profilazione",
236                        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.",
237                        toggle: {
238                            value: 'advertisement',
239                            enabled: false,
240                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
241                        },
242                        cookie_table: cookie_table['advertisement']
243
244                    });
245                }
246               
247                    if (typeof cookie_table['others'] == "undefined") {
248                    cookie_table['others'] = [];
249                }
250                if(cookie_table['others'].length > 0){
251                     blocks.push({
252                        title: "Cookie non ancora classificati in una categoria.",
253                        description: "Altri cookie di Terze parti.",
254                        toggle: {
255                            value: 'others',
256                            enabled: false,
257                            readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
258                        },
259                        cookie_table: cookie_table['others']
260
261                    });
262                }
263               
264    
265    
266
267            blocks.push({'title': 'Maggiori informazioni',
268                'description': 'Per qualsiasi domanda in relazione alla nostra politica sui cookie e alle tue scelte, per favore <a class="cc-link" href="">contattaci</a>.'
269            });
270            return blocks;
271        }
272
273        Date.prototype.iandu_format_cookie = function () {
274            var mm = this.getMonth() + 1; // getMonth() is zero-based
275            var dd = this.getDate();
276            var hh = this.getHours();
277            var ii = this.getMinutes();
278            var ss = this.getSeconds();
279            var ms = this.getMilliseconds();
280            ms = (ms > 9 ? '' : '0') + ms;
281            return [this.getFullYear(),
282                (mm > 9 ? '' : '0') + mm,
283                (dd > 9 ? '' : '0') + dd,
284                (hh > 9 ? '' : '0') + hh,
285                (ii > 9 ? '' : '0') + ii,
286                (ss > 9 ? '' : '0') + ss,
287                (ms > 99 ? '' : '0') + ms,
288                '-',
289                iandu_get_random_digits(4)
290            ].join('');
291        };
292        function iandu_get_random_digits(lenght) {
293            min = 0;
294            max = 9;
295            digits = '';
296            for (i = 0; i < lenght; i++) {
297                digits += Math.floor(Math.random() * (max - min + 1) + min);
298            }
299            return digits; //The maximum is inclusive and the minimum is inclusive
300        }
301        function ianduCloseBanner(){
302          cc.hideSettings();
303          cc.hide();
304          cc.accept([]);
305        }
306
307        function ianduSaveConsent(cookie){
308            const formData = new FormData();
309            formData.append("action", "iandu_register_cookie_consent");
310            formData.append("security", iandu_cookieconsent_obj.security); 
311            formData.append("page_referer", document.location.href); 
312            formData.append("html_form", JSON.stringify(document.querySelector("#s-bl").innerHTML)); 
313            formData.append("data", JSON.stringify(cookie)); 
314            let request = new XMLHttpRequest();
315            request.addEventListener("load", iandu_cc_success);
316            request.addEventListener("error", iandu_cc_error);
317            request.addEventListener("abort", iandu_cc_abort);
318            request.open("POST", iandu_cookieconsent_obj.ajaxUrl);
319            request.send(formData);
320        }
321        
322        function ianduOnCookieSaved(cookie){
323             
324                ianduSaveConsent(cookie);
325                    }
326        
327        function iandu_cc_success(evt) {
328                        window.location.reload();
329                    }
330
331        function iandu_cc_error(evt) {
332          console.warn("Error");
333        }
334
335        function iandu_cc_abort(evt) {
336          console.warn("Abort");
337        }
338        
339        document.addEventListener("DOMContentLoaded", function() {
340                let closeBtn = document.createElement("button");
341                closeBtn.className = "c-bn"; 
342                closeBtn.setAttribute('type','button');
343                closeBtn.setAttribute('id','iandu-close-banner');
344                closeBtn.setAttribute('aria-label','Close');
345                closeBtn.onclick = function(){
346                    ianduCloseBanner();
347                };
348                let customizeBtn = document.createElement("button");
349                customizeBtn.innerHTML = "Personalizza";
350                customizeBtn.className = "c-bn"; 
351                customizeBtn.setAttribute('type','button');
352                customizeBtn.onclick = function(){
353                    cc.showSettings();
354                  };
355                if(document.querySelector('#cm') != null){   
356                    document.querySelector('#cm').prepend(closeBtn);
357                }  
358                if(document.querySelector('#c-bns') != null){   
359                   document.querySelector('#c-bns').prepend(customizeBtn);
360                }  
361                    
362            }
363        );       
364
365        //</script>
366    

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.