PageSourceSearch

https://amanita-design.net/js/cc-app.js

js amanita-design.net collected 2026-10-01 09:03:40 UTC 13,955 bytes, 213 lines download raw bytes

1var cc = initCookieConsent();
2var logo = '<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" width="50px" height="50px" viewBox="0 0 50 50"> <path d="M28.51 34.94a2.22 2.22 0 0 1-.87.64 5.74 5.74 0 0 1-3.35.36 3.37 3.37 0 0 1-2.64-3.24 6.74 6.74 0 0 1 .23-2c.41-1.42 1.11-2.11 2.91-2.42a7.34 7.34 0 0 1 .81 0c.56.06 1 .06 1.5.16a3.36 3.36 0 0 1 2.63 3 5.08 5.08 0 0 1-1.22 3.5Z" fill="#fff"/> <path fill="#ff1622" d="M44.29 34.79a4.94 4.94 0 0 1-3.63-2.72 7.07 7.07 0 0 1-.85-4.36 7.38 7.38 0 0 1 .46-2.08A4.55 4.55 0 0 1 43 23.21c.37-.14.77-.23 1.23-.37a20.19 20.19 0 0 0-4.92-5.17c-.29.37-.52.71-.79 1a4.77 4.77 0 0 1-3.22 1.71 9.2 9.2 0 0 1-1.66 0 6.1 6.1 0 0 1-3.83-1.68 6 6 0 0 1-1.74-5.7c0-.11.06-.21 0-.32a20.9 20.9 0 0 0-7.55.27c.06.27.13.54.18.81a5.63 5.63 0 0 1 0 1.92 5.82 5.82 0 0 1-2.4 3.48 3.88 3.88 0 0 1-1.43.73 8 8 0 0 1-3.37.31 4.53 4.53 0 0 1-3.13-1.74c-.15-.2-.32-.39-.48-.58a13.57 13.57 0 0 0-3.33 5.42.5.5 0 0 0 .31.22 3.83 3.83 0 0 1 1.33 1 8.79 8.79 0 0 1 1.8 2.8 5 5 0 0 1 .41 2.45 7 7 0 0 1-1.68 4 4.65 4.65 0 0 1-3.05 1.78.23.23 0 0 0-.21.14c0 .15.09.26.16.38A8.63 8.63 0 0 0 8.79 39a23 23 0 0 0 7.7 2.5c1.12.18 2.25.33 3.39.42l3.08.25c1.16.1 2.32.15 3.48.2a32.17 32.17 0 0 0 4.39-.06c1.15-.1 2.3-.22 3.45-.41a18.16 18.16 0 0 0 4.86-1.51 12.94 12.94 0 0 0 4.47-3.43 11 11 0 0 0 1.3-2Zm-12.58.08A4.86 4.86 0 0 1 30 36.94a7.3 7.3 0 0 1-4.27 1.65 6.17 6.17 0 0 1-3.88-1.16 7.12 7.12 0 0 1-1.8-1.83 5.59 5.59 0 0 1-1-3.49 6.9 6.9 0 0 1 .74-3.3 5.4 5.4 0 0 1 3-2.6 8.66 8.66 0 0 1 2.71-.5 5.36 5.36 0 0 1 1.59.18 18.48 18.48 0 0 1 1.8.51 4.26 4.26 0 0 1 2.41 2.12 7.87 7.87 0 0 1 .86 2.88 7.13 7.13 0 0 1-.49 3.46Z"/> <path d="M4.75 25.12a4.14 4.14 0 0 0-4 5.25 3.88 3.88 0 0 0 3.25 3 4.75 4.75 0 0 0 2.75-.53A2.46 2.46 0 0 0 8 31.46 5.4 5.4 0 0 0 8.31 30a4.81 4.81 0 0 0-1-3.59 3 3 0 0 0-2.56-1.29ZM45.28 32.7a4.58 4.58 0 0 0 1-.08 4.13 4.13 0 0 0 2.43-6.33 3.27 3.27 0 0 0-2.2-1.44 6.32 6.32 0 0 0-2 0A2.88 2.88 0 0 0 42 26.78a5.14 5.14 0 0 0-.24 2.85 3.45 3.45 0 0 0 3.52 3.07ZM14.72 18.23a5.26 5.26 0 0 0 2.61-.58 2.74 2.74 0 0 0 1.49-1.93 4.32 4.32 0 0 0 0-1.79 4.15 4.15 0 0 0-3-3.12 4 4 0 0 0-4.53 1.63 4.15 4.15 0 0 0-.53 2.42A3.45 3.45 0 0 0 13.08 18a5.06 5.06 0 0 0 1.64.23ZM34.23 10.88a4.15 4.15 0 0 0-1.95.4A3.52 3.52 0 0 0 30.21 15a4.18 4.18 0 0 0 5.56 3.33 3.51 3.51 0 0 0 2.45-3 3.88 3.88 0 0 0-1.4-3.63 3.79 3.79 0 0 0-2.59-.82Z" fill="#fff"/> <path d="M4.75 25.12a4.14 4.14 0 0 0-4 5.25 3.88 3.88 0 0 0 3.25 3 4.75 4.75 0 0 0 2.75-.53A2.46 2.46 0 0 0 8 31.46 5.4 5.4 0 0 0 8.31 30a4.81 4.81 0 0 0-1-3.59 3 3 0 0 0-2.56-1.29ZM45.28 32.7a4.58 4.58 0 0 0 1-.08 4.13 4.13 0 0 0 2.43-6.33 3.27 3.27 0 0 0-2.2-1.44 6.32 6.32 0 0 0-2 0A2.88 2.88 0 0 0 42 26.78a5.14 5.14 0 0 0-.24 2.85 3.45 3.45 0 0 0 3.52 3.07ZM14.72 18.23a5.26 5.26 0 0 0 2.61-.58 2.74 2.74 0 0 0 1.49-1.93 4.32 4.32 0 0 0 0-1.79 4.15 4.15 0 0 0-3-3.12 4 4 0 0 0-4.53 1.63 4.15 4.15 0 0 0-.53 2.42A3.45 3.45 0 0 0 13.08 18a5.06 5.06 0 0 0 1.64.23ZM34.23 10.88a4.15 4.15 0 0 0-1.95.4A3.52 3.52 0 0 0 30.21 15a4.18 4.18 0 0 0 5.56 3.33 3.51 3.51 0 0 0 2.45-3 3.88 3.88 0 0 0-1.4-3.63 3.79 3.79 0 0 0-2.59-.82Z" fill="#fff"/> </svg>';
3var cookie = '🍪';
4// var css_path = 'css/cookieconsent.css';
5var css_path = 'https://amanita-design.net/css/cookieconsent.css';
6
7// var setTheme = 'c_darkmode'; //theme_turquoise, c_darkmode
8// if(setTheme.length > 0) document.body.className +=" " + setTheme;
9// if (cc.validCookie('cc_cookie')) {
10//     console.log("valid");
11//     // cc.eraseCookies();
12//     // document.body.className +=" show--consent";
13//     // cc.show(0);
14// }
15cc.show();
16
17cc.run({
18    current_lang : 'en',
19    autoclear_cookies : true,                   // default: false
20    theme_css: css_path,
21    cookie_name: 'cc_cookie',             // default: 'cc_cookie'
22    cookie_expiration : 365,                    // default: 182
23    page_scripts: true,                         // default: false
24
25    gui_options: {
26        consent_modal: {
27            layout: 'box',                      // box,cloud,bar
28            position: 'bottom right',           // bottom,middle,top + left,right,center
29            transition: 'slide'                 // zoom,slide
30        },
31        settings_modal: {
32            layout: 'box',                      // box,bar
33            // position: 'left',                // right,left (available only if bar layout selected)
34            transition: 'slide'                 // zoom,slide
35        }
36    },
37
38    onAccept: function (cookie) {
39        console.log('onAccept fired ...');
40
41        // delete line below
42        // typeof doDemoThings === 'function' && doDemoThings(cookie);
43        typeof doDemoThings === 'function';
44    },
45
46    onChange: function (cookie, changed_preferences) {
47        console.log('onChange fired ...');
48
49        // If analytics category's status was changed ...
50        if (changed_preferences.indexOf('analytics') > -1) {
51
52            // If analytics category is disabled ...
53            if (!cc.allowedCategory('analytics')) {
54
55                // Disable gtag ...
56                console.log('disabling gtag')
57                window.dataLayer = window.dataLayer || [];
58
59                function gtag() { dataLayer.push(arguments); }
60
61                gtag('consent', 'default', {
62                    'ad_storage': 'denied',
63                    'analytics_storage': 'denied'
64                });
65            }
66        }
67
68        // delete line below
69        // typeof doDemoThings === 'function' && doDemoThings(cookie);
70        typeof doDemoThings === 'function';
71    },
72    onFirstAction: function(user_preferences, cookie){
73        console.log('User accept type:', user_preferences.accept_type);
74        console.log('User accepted these categories', user_preferences.accepted_categories)
75        console.log('User reject these categories:', user_preferences.rejected_categories);
76    },
77
78    languages: {
79        'en': {
80            consent_modal: {
81                // title: cookie + ' We use cookies!',
82                title: 'We use cookies!',
83                description: 'We use cookies to personalise content and ads, to provide social media features and to analyse our&nbsp;traffic. <button type="button" data-cc="c-settings" class="cc-link">Let me choose</button>',
84                primary_btn: {
85                    text: 'Accept all',
86                    role: 'accept_all'              // 'accept_selected' or 'accept_all'
87                },
88                secondary_btn: {
89                    text: 'Reject all',
90                    role: 'accept_necessary'        // 'settings' or 'accept_necessary'
91                }
92            },
93            settings_modal: {
94                title: logo,
95                save_settings_btn: 'Save settings',
96                accept_all_btn: 'Accept all',
97                reject_all_btn: 'Reject all',
98                close_btn_label: 'Close',
99                cookie_table_headers: [
100                    {col1: 'Name'},
101                    {col2: 'Domain'},
102                    {col3: 'Expiration'},
103                    {col4: 'Description'}
104                ],
105                blocks: [
106                    {
107                        title: 'Cookie usage',
108                        description: 'We use cookies to personalise content and ads, to provide social media features and to analyse our&nbsp;traffic.<br>For&nbsp;more info see <a href="https://amanita-design.net/privacy-policy.html" class="cc-link">Our privacy&nbsp; policy</a>.'
109                    }, {
110                        title: 'Strictly necessary cookies',
111                        description: 'Some cookies ensure that certain parts of the website work properly and that your user preferences remain known. By placing functional cookies, we make it easier for you to visit our website.',
112                        toggle: {
113                            value: 'necessary',
114                            enabled: true,
115                            readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
116                        }
117                    }, {
118                        title: 'Performance and Analytics cookies',
119                        description: 'Cookies used to optimize the website experience for our users. With these statistics cookies we get insights in the usage of our website.',
120                        toggle: {
121                            value: 'analytics',     // there are no default categories => you specify them
122                            enabled: false,
123                            readonly: false
124                        },
125                        cookie_table: [
126                            {                            
127                                col1: '_ga',
128                                col2: '.amanita-design.net',
129                                col3: '2 years',
130                                col4: 'The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site`s analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.',
131                            },
132                            {
133                                col1: '_gid',
134                                col2: '.amanita-design.net',
135                                col3: '1 day',
136                                col4: 'Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website`s performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.',
137                            },
138                            {
139                                col1: '_gat_UA-213084-21',
140                                col2: '.amanita-design.net',
141                                col3: '1 minute',
142                                col4: 'A variation of the _gat cookie set by Google Analytics and Google Tag Manager to allow website owners to track visitor behaviour and measure site performance. The pattern element in the name contains the unique identity number of the account or website it relates to.',
143                            },
144                            {
145                                col1: '_gat_gtag_UA_213084_21',
146                                col2: '.amanita-design.net',
147                                col3: '1 minute',
148                                col4: 'Set by Google to distinguish users.',
149                            },
150                            {
151                                col1: 'CONSENT',
152                                col2: '.youtube.com',
153                                col3: '2 years',
154                                col4: 'YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.',
155                            }
156                        ]
157                    }, {
158                        title: 'Advertisement and Targeting cookies',
159                        description: 'Cookies or any other form of local storage, used to create user profiles to display advertising or to track the user on this website or across several websites for similar marketing purposes.',
160                        toggle: {
161                            value: 'targeting',
162                            enabled: false,
163                            readonly: false
164                        },
165                        cookie_table: [
166                            {
167                                col1: 'YSC',
168                                col2: '.youtube.com',
169                                col3: 'session',
170                                col4: 'YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.',
171                            },
172                            {
173                                col1: 'VISITOR_INFO1_LIVE',
174                                col2: '.youtube.com',
175                                col3: '5 months 27 days',
176                                col4: 'A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.',
177                            },
178                            {
179                                col1: '_fbp',
180                                col2: '.amanita-design.net',
181                                col3: '3 months',
182                                col4: 'This cookie is set by Facebook to display advertisements when either on Facebook or on a digital platform powered by Facebook advertising, after visiting the website.',
183                            },
184                            {
185                                col1: 'fr',
186                                col2: '.facebook.com',
187                                col3: '3 months',
188                                col4: 'Facebook sets this cookie to show relevant advertisements to users by tracking user behaviour across the web, on sites that have Facebook pixel or Facebook social plugin.',
189                            },
190                            {
191                                col1: 'yt-remote-device-id',
192                                col2: 'youtube.com',
193                                col3: 'never',
194                                col4: 'YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.',
195                            },
196                            {
197                                col1: 'yt-remote-connected-devices',
198                                col2: 'youtube.com',
199                                col3: 'never',
200                                col4: 'YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.',
201                            }
202
203                        ]
204                    },
205                ]
206            }
207        }
208    }
209});
210
211
212
213  

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.