PageSourceSearch

https://www.cosmos-standard.org/cookie-optin/config.js

js cosmos-standard.org collected 2026-10-02 02:53:51 UTC 10,511 bytes, 424 lines download raw bytes

1
2
3var klaroConfig = {
4  
5  elementID: 'klaro',
6  cookieName: 'klaro',
7  cookieExpiresAfterDays: 365,
8  privacyPolicy: '/legal-notice/privacy-policy/',
9  default: true,
10  mustConsent: false,
11  
12  translations: {
13    
14  
15  
16    
17      "de": {
18    
19    ok: 'Accept',
20    save: 'Save',
21    close: 'Close',
22    decline: 'Decline',
23    poweredBy: 'Realized with Klaro!',
24    consentNotice: {
25    learnMore: 'Choose the cookies I accept',
26    description: 'We collect and process your personal information for the following purposes: {purposes}.'
27    },
28    consentModal: {
29    title: 'Information that we collect',
30    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
31    privacyPolicy: {
32    name: 'privacy policy',
33    text: '{privacyPolicy}',
34    },
35    },
36    app: {
37    purpose: 'Purpose',
38    optOut: {
39    title: '(opt\u002Dout)',
40    },
41    disableAll: {
42    title: 'Toggle all apps',
43    description: 'Use this switch to enable/disable all apps.',
44    },
45    },
46    
47      GoogleAnalytics: {
48      description: 'Collection of visitor statistics'
49      },
50    
51      Youtube: {
52      description: 'User preferences'
53      },
54    
55    purposes: {
56    purpose1: 'Personnalisation',
57    purpose2: 'Trafic analysis',
58    purpose3: 'Security',
59    }
60    },
61  
62    
63      "en": {
64    
65    ok: 'Accept',
66    save: 'Save',
67    close: 'Close',
68    decline: 'Decline',
69    poweredBy: 'Realized with Klaro!',
70    consentNotice: {
71    learnMore: 'Choose the cookies I accept',
72    description: 'We collect and process your personal information for the following purposes: {purposes}.'
73    },
74    consentModal: {
75    title: 'Information that we collect',
76    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
77    privacyPolicy: {
78    name: 'privacy policy',
79    text: '{privacyPolicy}',
80    },
81    },
82    app: {
83    purpose: 'Purpose',
84    optOut: {
85    title: '(opt\u002Dout)',
86    },
87    disableAll: {
88    title: 'Toggle all apps',
89    description: 'Use this switch to enable/disable all apps.',
90    },
91    },
92    
93      GoogleAnalytics: {
94      description: 'Collection of visitor statistics'
95      },
96    
97      Youtube: {
98      description: 'User preferences'
99      },
100    
101    purposes: {
102    purpose1: 'Personnalisation',
103    purpose2: 'Trafic analysis',
104    purpose3: 'Security',
105    }
106    },
107  
108    
109      "fr": {
110    
111    ok: 'Accept',
112    save: 'Save',
113    close: 'Close',
114    decline: 'Decline',
115    poweredBy: 'Realized with Klaro!',
116    consentNotice: {
117    learnMore: 'Choose the cookies I accept',
118    description: 'We collect and process your personal information for the following purposes: {purposes}.'
119    },
120    consentModal: {
121    title: 'Information that we collect',
122    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
123    privacyPolicy: {
124    name: 'privacy policy',
125    text: '{privacyPolicy}',
126    },
127    },
128    app: {
129    purpose: 'Purpose',
130    optOut: {
131    title: '(opt\u002Dout)',
132    },
133    disableAll: {
134    title: 'Toggle all apps',
135    description: 'Use this switch to enable/disable all apps.',
136    },
137    },
138    
139      GoogleAnalytics: {
140      description: 'Collection of visitor statistics'
141      },
142    
143      Youtube: {
144      description: 'User preferences'
145      },
146    
147    purposes: {
148    purpose1: 'Personnalisation',
149    purpose2: 'Trafic analysis',
150    purpose3: 'Security',
151    }
152    },
153  
154    
155      "it": {
156    
157    ok: 'Accept',
158    save: 'Save',
159    close: 'Close',
160    decline: 'Decline',
161    poweredBy: 'Realized with Klaro!',
162    consentNotice: {
163    learnMore: 'Choose the cookies I accept',
164    description: 'We collect and process your personal information for the following purposes: {purposes}.'
165    },
166    consentModal: {
167    title: 'Information that we collect',
168    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
169    privacyPolicy: {
170    name: 'privacy policy',
171    text: '{privacyPolicy}',
172    },
173    },
174    app: {
175    purpose: 'Purpose',
176    optOut: {
177    title: '(opt\u002Dout)',
178    },
179    disableAll: {
180    title: 'Toggle all apps',
181    description: 'Use this switch to enable/disable all apps.',
182    },
183    },
184    
185      GoogleAnalytics: {
186      description: 'Collection of visitor statistics'
187      },
188    
189      Youtube: {
190      description: 'User preferences'
191      },
192    
193    purposes: {
194    purpose1: 'Personnalisation',
195    purpose2: 'Trafic analysis',
196    purpose3: 'Security',
197    }
198    },
199  
200    
201      "ko": {
202    
203    ok: 'Accept',
204    save: 'Save',
205    close: 'Close',
206    decline: 'Decline',
207    poweredBy: 'Realized with Klaro!',
208    consentNotice: {
209    learnMore: 'Choose the cookies I accept',
210    description: 'We collect and process your personal information for the following purposes: {purposes}.'
211    },
212    consentModal: {
213    title: 'Information that we collect',
214    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
215    privacyPolicy: {
216    name: 'privacy policy',
217    text: '{privacyPolicy}',
218    },
219    },
220    app: {
221    purpose: 'Purpose',
222    optOut: {
223    title: '(opt\u002Dout)',
224    },
225    disableAll: {
226    title: 'Toggle all apps',
227    description: 'Use this switch to enable/disable all apps.',
228    },
229    },
230    
231      GoogleAnalytics: {
232      description: 'Collection of visitor statistics'
233      },
234    
235      Youtube: {
236      description: 'User preferences'
237      },
238    
239    purposes: {
240    purpose1: 'Personnalisation',
241    purpose2: 'Trafic analysis',
242    purpose3: 'Security',
243    }
244    },
245  
246    
247      "zh": {
248    
249    ok: 'Accept',
250    save: 'Save',
251    close: 'Close',
252    decline: 'Decline',
253    poweredBy: 'Realized with Klaro!',
254    consentNotice: {
255    learnMore: 'Choose the cookies I accept',
256    description: 'We collect and process your personal information for the following purposes: {purposes}.'
257    },
258    consentModal: {
259    title: 'Information that we collect',
260    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
261    privacyPolicy: {
262    name: 'privacy policy',
263    text: '{privacyPolicy}',
264    },
265    },
266    app: {
267    purpose: 'Purpose',
268    optOut: {
269    title: '(opt\u002Dout)',
270    },
271    disableAll: {
272    title: 'Toggle all apps',
273    description: 'Use this switch to enable/disable all apps.',
274    },
275    },
276    
277      GoogleAnalytics: {
278      description: 'Collection of visitor statistics'
279      },
280    
281      Youtube: {
282      description: 'User preferences'
283      },
284    
285    purposes: {
286    purpose1: 'Personnalisation',
287    purpose2: 'Trafic analysis',
288    purpose3: 'Security',
289    }
290    },
291  
292    
293      "es": {
294    
295    ok: 'Accept',
296    save: 'Save',
297    close: 'Close',
298    decline: 'Decline',
299    poweredBy: 'Realized with Klaro!',
300    consentNotice: {
301    learnMore: 'Choose the cookies I accept',
302    description: 'We collect and process your personal information for the following purposes: {purposes}.'
303    },
304    consentModal: {
305    title: 'Information that we collect',
306    description: 'Here you can see and customize the information that we collect about you. To learn more, please read our',
307    privacyPolicy: {
308    name: 'privacy policy',
309    text: '{privacyPolicy}',
310    },
311    },
312    app: {
313    purpose: 'Purpose',
314    optOut: {
315    title: '(opt\u002Dout)',
316    },
317    disableAll: {
318    title: 'Toggle all apps',
319    description: 'Use this switch to enable/disable all apps.',
320    },
321    },
322    
323      GoogleAnalytics: {
324      description: 'Collection of visitor statistics'
325      },
326    
327      Youtube: {
328      description: 'User preferences'
329      },
330    
331    purposes: {
332    purpose1: 'Personnalisation',
333    purpose2: 'Trafic analysis',
334    purpose3: 'Security',
335    }
336    }
337  
338
339
340  },
341  apps: [
342    
343    
344      {
345        name: 'GoogleAnalytics',
346        title: 'Google Analytics',
347        purposes: ['purpose2'],
348        cookies: [
349          
350            ['_ga','/','www.cosmos\u002Dstandard.org'], ['_ga','/','.cosmos\u002Dstandard.org'],
351          
352            ['_gid','/','www.cosmos\u002Dstandard.org'], ['_gid','/','.cosmos\u002Dstandard.org'],
353          
354            [/^_gat_.*$/,'/','www.cosmos\u002Dstandard.org'], [/^_gat_.*$/,'/','.cosmos\u002Dstandard.org'],
355          
356            [/^_gac_.*$/,'/','www.cosmos\u002Dstandard.org'], [/^_gac_.*$/,'/','.cosmos\u002Dstandard.org']
357          
358        ],
359        callback: function (consent, app) {
360  // console.log('User consent for app ' + app.name + ': consent=' + consent)
361}
362,
363        required: false,
364        optOut: true,
365        onlyOnce: true
366      },
367    
368      {
369        name: 'Youtube',
370        title: 'Youtube',
371        purposes: ['purpose1', 'purpose2', 'purpose3'],
372        cookies: [
373          
374        ],
375        callback: function (consent, app) {
376  var cookieNotices = document.querySelectorAll('[data-cookieoptin]')
377
378  if (consent === false) {
379    for (var i = 0; i < cookieNotices.length; i++) {
380      var cookieNotice = cookieNotices[i];
381
382      if (cookieNotice.parentElement.classList.contains('cookieoptin')) {
383        /* .video-player is the direct parent of cookie notice */
384      } else {
385        /* .video-player is a sibling of cookie notice */
386        var videoDiv = cookieNotice.parentElement.parentElement
387        var div = videoDiv.querySelector('.video-player')
388
389        /* Move cookieNotice inside .video-player */
390        cookieNotice.parentElement.removeChild(cookieNotice)
391        cookieNotice.classList.remove('cookieoptin-hide')
392        div.innerHTML = cookieNotice.outerHTML + div.innerHTML
393
394        div.querySelector('.btn').addEventListener('click', function (e) {
395          e.preventDefault()
396          cookieNotice.className += ' cookieoptin-hide'
397          klaro.getManager(klaroConfig).updateConsent(app.name, true)
398          klaro.getManager(klaroConfig).saveAndApplyConsents()
399          document.location.reload()
400        })
401      }
402    }
403  } else {
404    for (var i = 0; i < cookieNotices.length; i++) {
405      var cookieNotice = cookieNotices[i];
406      cookieNotice.className += ' cookieoptin-hide'
407    }
408
409    var fitVids = require('fitvids')
410    fitVids({
411      players: 'iframe[src*="dailymotion.com"]'
412    })
413  }
414}
415
416,
417        required: false,
418        optOut: false,
419        onlyOnce: true
420      }
421    
422    
423  ]
424}

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.