PageSourceSearch

https://ditto-oceandecade.org/wp-content/themes/picostrap5-child-base/js/cookieconsent-init.js

js ditto-oceandecade.org collected 2026-09-25 23:36:38 UTC 6,792 bytes, 133 lines download raw bytes

1// obtain plugin
2var cc = initCookieConsent();
3
4// run plugin with your configuration
5cc.run({
6    current_lang: 'en',
7    autoclear_cookies: true,                   // default: false
8    page_scripts: true,                        // default: false
9
10    // mode: 'opt-in'                          // default: 'opt-in'; value: 'opt-in' or 'opt-out'
11    // delay: 0,                               // default: 0
12    // auto_language: null                     // default: null; could also be 'browser' or 'document'
13    // autorun: true,                          // default: true
14    // force_consent: false,                   // default: false
15    // hide_from_bots: true,                   // default: true
16    // remove_cookie_tables: false             // default: false
17    // cookie_name: 'cc_cookie',               // default: 'cc_cookie'
18    // cookie_expiration: 182,                 // default: 182 (days)
19    // cookie_necessary_only_expiration: 182   // default: disabled
20    // cookie_domain: location.hostname,       // default: current domain
21    // cookie_path: '/',                       // default: root
22    // cookie_same_site: 'Lax',                // default: 'Lax'
23    // use_rfc_cookie: false,                  // default: false
24    // revision: 0,                            // default: 0
25
26    
27
28
29    onFirstAction: function(user_preferences, cookie){
30        // callback triggered only once
31    },
32
33    onAccept: function (cookie) {
34        // ...
35    },
36
37    onChange: function (cookie, changed_preferences) {
38        // ...
39    },
40
41    gui_options: {
42        consent_modal: {
43            layout: 'cloud',               // box/cloud/bar
44            position: 'bottom center',     // bottom/middle/top + left/right/center
45            transition: 'slide',           // zoom/slide
46            swap_buttons: false            // enable to invert buttons
47        },
48        settings_modal: {
49            layout: 'box',                 // box/bar
50            // position: 'left',           // left/right
51            transition: 'slide'            // zoom/slide
52        }
53    },
54
55
56    languages: {
57        'en': {
58            consent_modal: {
59                title: 'Cookie notice',
60                description: 'This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent. <button type="button" data-cc="c-settings" class="cc-link">Manage preferences</button>',
61                primary_btn: {
62                    text: 'Accept all',
63                    role: 'accept_all'              // 'accept_selected' or 'accept_all'
64                },
65                secondary_btn: {
66                    text: 'Reject all',
67                    role: 'accept_necessary'        // 'settings' or 'accept_necessary'
68                }
69            },
70            settings_modal: {
71                title: 'Cookie preferences',
72                save_settings_btn: 'Save settings',
73                accept_all_btn: 'Accept all',
74                reject_all_btn: 'Reject all',
75                close_btn_label: 'Close',
76                cookie_table_headers: [
77                    {col1: 'Name'},
78                    {col2: 'Domain'},
79                    {col3: 'Expiration'},
80                    {col4: 'Description'}
81                ],
82                blocks: [
83                    {
84                        title: 'Cookie usage 📢',
85                        description: 'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full <a href="/privacy-policy" class="cc-link">privacy policy</a>.'
86                    }, {
87                        title: 'Strictly necessary cookies',
88                        description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly',
89                        toggle: {
90                            value: 'necessary',
91                            enabled: true,
92                            readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
93                        }
94                    }, {
95                        title: 'Performance and Analytics cookies',
96                        description: 'These cookies allow the website to remember the choices you have made in the past',
97                        toggle: {
98                            value: 'analytics',     // your cookie category
99                            enabled: false,
100                            readonly: false
101                        },
102                        cookie_table: [             // list of all expected cookies
103                            {
104                                col1: '^_ga',       // match all cookies starting with "_ga"
105                                col2: 'google.com',
106                                col3: '2 years',
107                                col4: 'The _ga cookie is a cookie used by the Google Analytics service to distinguish unique users by assigning a randomly generated number as a client identifier. It is used to calculate visitor, session, and campaign data for analytics reports.',
108                                is_regex: true
109                            },
110                            {
111                                col1: '_gid',
112                                col2: 'google.com',
113                                col3: '1 day',
114                                col4: 'The _gid cookie is used to track user behavior within a single session. It assigns a randomly generated number as a client identifier and is used to calculate visitor, session, and campaign data for analytics reports.',
115                            }
116                        ]
117                    }, /*{
118                        title: 'Advertisement and Targeting cookies',
119                        description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you',
120                        toggle: {
121                            value: 'targeting',
122                            enabled: false,
123                            readonly: false
124                        }
125                    },*/ {
126                        title: 'More information',
127                        description: 'For any queries in relation to our policy on cookies and your choices, please <a class="cc-link" href="mailto:[email protected]">contact us</a>.',
128                    }
129                ]
130            }
131        }
132    }
133});

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.