1// LANGUAGE 2var language = document.documentElement.lang; 3// obtain iframemanager object 4var manager = iframemanager(); 5 6// obtain cookieconsent plugin 7var cc = initCookieConsent(); 8 9// Config with youtube embed 10manager.run({ 11 currLang: language, 12 services : { 13 youtube : { 14 embedUrl: 'https://www.youtube-nocookie.com/embed/{data-id}', 15 thumbnailUrl: 'https://i3.ytimg.com/vi/{data-id}/hqdefault.jpg', 16 iframe : { 17 allow : 'accelerometer; encrypted-media; gyroscope; picture-in-picture; fullscreen;', 18 }, 19 cookie : { 20 name : 'cc_videos' 21 }, 22 languages : { 23 en : { 24 notice: 'This content is hosted by a third party. By showing the external content you accept the <a rel="noreferrer" href="https://www.youtube.com/t/terms" title="Terms and conditions" target="_blank">terms and conditions</a> of youtube.com.', 25 loadBtn: 'Load video', 26 loadAllBtn: 'Don\'t ask again' 27 }, 28 fr : { 29 notice: 'Ce contenu est hébergé par un tiers. En affichant le contenu externe, vous acceptez les <a rel="noreferrer" href="https://www.youtube.com/t/terms" title="Termes et conditions" target="_blank">termes et conditions</a> de youtube.com.', 30 loadBtn: 'Voir la vidéo', 31 loadAllBtn: 'Ne plus demander' 32 }, 33 de : { 34 notice: 'Dieser Inhalt wird von einer dritten Partei gehostet. Durch die Anzeige des externen Inhalts akzeptieren Sie die <a rel="noreferrer" href="https://www.youtube.com/t/terms" title="Terms and conditions" target="_blank">Bedingungen</a> von youtube.com.', 35 loadBtn: 'Video laden', 36 loadAllBtn: 'Frag nicht mehr' 37 } 38 } 39 }, 40 vimeo: { 41 embedUrl: 'https://player.vimeo.com/video/{data-id}', 42 iframe: { 43 allow : 'fullscreen; picture-in-picture, allowfullscreen;', 44 }, 45 cookie : { 46 name : 'cc_videos' 47 }, 48 thumbnailUrl: async (dataId, setThumbnail) => { 49 const url = `https://vimeo.com/api/v2/video/${dataId}.json`; 50 const response = await (await fetch(url)).json(); 51 const thumbnailUrl = response[0]?.thumbnail_large; 52 thumbnailUrl && setThumbnail(thumbnailUrl); 53 }, 54 languages: { 55 en: { 56 notice: 'This content is hosted by a third party. By showing the external content you accept the <a rel="noreferrer noopener" href="https://vimeo.com/terms" target="_blank">terms and conditions</a> of vimeo.com.', 57 loadBtn: 'Load video', 58 loadAllBtn: "Don't ask again" 59 }, 60 fr : { 61 notice: 'Ce contenu est hébergé par un tiers. En affichant le contenu externe, vous acceptez les <a rel="noreferrer noopener" href="https://vimeo.com/terms" target="_blank">termes et conditions</a> de vimeo.com.', 62 loadBtn: 'Voir la vidéo', 63 loadAllBtn: 'Ne plus demander' 64 } 65 } 66 }, 67 googlemaps : { 68 embedUrl: 'https://www.google.com/maps/embed?pb={data-id}', 69 iframe: { 70 allow : 'fullscreen;' 71 }, 72 cookie : { 73 name : 'cc_videos' 74 }, 75 languages : { 76 en : { 77 notice: 'This content is hosted by a third party. By showing the external content you accept the <a rel="noreferrer noopener" href="https://cloud.google.com/maps-platform/terms" target="_blank">terms and conditions</a> of Google Maps.', 78 loadBtn: 'Load map', 79 loadAllBtn: "Don't ask again" 80 }, 81 fr : { 82 notice: 'Ce contenu est hébergé par un tiers. En affichant le contenu externe, vous acceptez les <a rel="noreferrer noopener" href="https://cloud.google.com/maps-platform/terms" target="_blank">termes et conditions</a> de Google Maps.', 83 loadBtn: 'Voir la carte', 84 loadAllBtn: 'Ne plus demander' 85 } 86 } 87 } 88 } 89}); 90// run plugin with your configuration 91cc.run({ 92 current_lang: language, 93 autoclear_cookies: true, // default: false 94 page_scripts: true, // default: false 95 cookie_expiration: 365, // default: 182 (days) 96 97 // mode: 'opt-in' // default: 'opt-in'; value: 'opt-in' or 'opt-out' 98 // delay: 0, // default: 0 99 //auto_language: document, // default: null; could also be 'browser' or 'document' 100 // autorun: true, // default: true 101 // force_consent: false, // default: false 102 // hide_from_bots: false, // default: false 103 // remove_cookie_tables: false // default: false 104 // cookie_name: 'cc_cookie', // default: 'cc_cookie' 105 // cookie_necessary_only_expiration: 182 // default: disabled 106 // cookie_domain: location.hostname, // default: current domain 107 // cookie_path: '/', // default: root 108 // cookie_same_site: 'Lax', // default: 'Lax' 109 // use_rfc_cookie: false, // default: false 110 // revision: 0, // default: 0 111 112 onFirstAction: function(user_preferences, cookie){ 113 // callback triggered only once 114 }, 115 116 onAccept: function (cookie) { 117 // If iframemanger is disabled => load all iframes automatically 118 if(cc.allowedCategory('iframemanager')){ 119 manager.acceptService('all'); 120 } 121 }, 122 123 onChange: function (cookie, changed_preferences) { 124 // If iframemanger is disabled => ask for permission to load iframes 125 if(!cc.allowedCategory('iframemanager')){ 126 manager.rejectService('all'); 127 }else{ 128 manager.acceptService('all'); 129 } 130 }, 131 132 languages: { 133 'en': { 134 consent_modal: { 135 title: 'We use cookies!', 136 description: 'Hi, 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">Let me choose</button>', 137 primary_btn: { 138 text: 'Accept all', 139 role: 'accept_all' // 'accept_selected' or 'accept_all' 140 }, 141 secondary_btn: { 142 text: 'Reject all', 143 role: 'accept_necessary' // 'settings' or 'accept_necessary' 144 } 145 }, 146 settings_modal: { 147 title: 'Cookie preferences', 148 save_settings_btn: 'Save settings', 149 accept_all_btn: 'Accept all', 150 reject_all_btn: 'Reject all', 151 close_btn_label: 'Close', 152 cookie_table_headers: [ 153 {col1: 'Name'}, 154 {col2: 'Domain'}, 155 {col3: 'Expiration'}, 156 //{col4: 'Description'}, 157 ], 158 blocks: [ 159 { 160 title: 'Cookie usage', 161 description: 'I 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="#" class="cc-link">privacy policy</a>.' 162 }, { 163 title: 'Strictly necessary cookies', 164 description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly', 165 toggle: { 166 value: 'necessary', 167 enabled: true, 168 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 169 } 170 }, /*{ 171 title: 'Performance and Analytics cookies', 172 description: 'These cookies allow the website to remember the choices you have made in the past', 173 toggle: { 174 value: 'analytics', // your cookie category 175 enabled: false, 176 readonly: false 177 }, 178 cookie_table: [ // list of all expected cookies 179 { 180 col1: '^_ga', // match all cookies starting with "_ga" 181 col2: 'google.com', 182 col3: '2 years', 183 is_regex: true 184 }, 185 { 186 col1: '_gid', 187 col2: 'google.com', 188 col3: '1 day', 189 } 190 ] 191 }, */{ 192 title : 'Third-party content', 193 description: 'These cookies are placed by external sites whose content is integrated into our site, for example when a Youtube video is displayed. If you refuse these cookies, this content will not be displayed.', 194 toggle: { 195 value: 'iframemanager', 196 enabled: false, 197 readonly: false 198 }, 199 cookie_table: [ 200 { 201 col1: 'cc_videos', 202 col2: window.location.hostname, 203 col3: '1 year', 204 } 205 ] 206 },/* {
207 title: 'Advertisement and Targeting cookies', 208 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', 209 toggle: { 210 value: 'targeting', 211 enabled: false, 212 readonly: false 213 } 214 }, /* { 215 title: 'More information', 216 description: 'For any queries in relation to our policy on cookies and your choices, please <a class="cc-link" href="#yourcontactpage">contact us</a>.', 217 } */ 218 ] 219 } 220 }, 221 'fr': { 222 consent_modal: { 223 title: 'à propos des cookies', 224 description: 'Ce site utilise des cookies essentiels pour assurer son bon fonctionnement et des cookies liés à l\'affichage de contenus externes (ex. vidéos YouTube). Ces derniers ne seront créés qu\'après votre accord. <button type="button" data-cc="c-settings" class="cc-link">Je veux choisir</button>', 225 primary_btn: { 226 text: 'J\'accepte', 227 role: 'accept_all' // 'accept_selected' or 'accept_all' 228 }, 229 secondary_btn: { 230 text: 'Je refuse', 231 role: 'accept_necessary' // 'settings' or 'accept_necessary' 232 } 233 }, 234 settings_modal: { 235 title: 'Gérer le consentement aux cookies', 236 save_settings_btn: 'J\'accepte la sélection', 237 accept_all_btn: 'J\'accepte tout', 238 reject_all_btn: 'Je refuse tout', 239 close_btn_label: 'Fermer', 240 cookie_table_headers: [ 241 {col1: 'Nom'}, 242 {col2: 'Domaine'}, 243 {col3: 'Expiration'}, 244 //{col4: 'Description'} 245 ], 246 blocks: [ 247 { 248 title: 'Utilisation des cookies', 249 description: 'Nous utilisons des cookies pour assurer les fonctionnalités de base du site web et pour améliorer votre expérience en ligne. Vous pouvez choisir d\'autoriser ou refuser chaque groupe de cookies et modifier votre choix à tout moment en cliquant sur le lien "Réglages des cookies" en bas de page.' 250 }, { 251 title: 'Cookies strictement nécessaires', 252 description: 'Ces cookies sont indispensables au bon fonctionnement du site. Ils permettent notamment d\'enregistrer votre consentement. ', 253 toggle: { 254 value: 'necessary', 255 enabled: true, 256 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 257 } 258 }, /*{ 259 title: 'Cookies de performance et d\'analyse', 260 description: 'Ces cookies permettent au site web de se souvenir des choix que vous avez fait dans le passé', 261 toggle: { 262 value: 'analytics', // your cookie category 263 enabled: false, 264 readonly: false 265 }, 266 cookie_table: [ // list of all expected cookies 267 { 268 col1: '^_ga', // match all cookies starting with "_ga" 269 col2: 'google.com', 270 col3: '1 année', 271 is_regex: true 272 }, 273 { 274 col1: '_gid', 275 col2: 'google.com', 276 col3: '1 jour', 277 } 278 ] 279 }, */{ 280 title : 'Contenu hébergé par un tiers', 281 description: 'Ces cookies sont placés par des sites externes dont le contenu est integré sur notre site, par exemple lors de l\'affichage d\'une vidéo Youtube. En refusant ces cookies, ces contenus ne pourront pas s\'afficher. ', 282 toggle: { 283 value: 'iframemanager', 284 enabled: false, 285 readonly: false 286 }, 287 cookie_table: [ 288 { 289 col1: 'cc_videos', 290 col2: window.location.hostname, 291 col3: '1 année', 292 } 293 ] 294 },/*{ 295 title: 'Cookies publicitaires et de ciblage', 296 description: 'Ces cookies collectent des informations sur la façon dont vous utilisez le site web, les pages que vous avez visitées et les liens sur lesquels vous avez cliqué. Toutes les données sont anonymisées et ne peuvent pas être utilisées pour vous identifier', 297 toggle: { 298 value: 'targeting', 299 enabled: false, 300 readonly: false 301 } 302 } */ 303 ] 304 } 305 }, 306 'de': { 307 consent_modal: { 308 title: 'Wir verwenden Cookies!', 309 description: 'Hallo, diese Website verwendet essentielle Cookies, um ihren ordnungsgemäÃen Betrieb zu gewährleisten, und Tracking-Cookie
309s, um zu verstehen, wie Sie mit ihr interagieren. Letztere werden nur nach Zustimmung gesetzt werden. <button type="button" data-cc="c-settings" class="cc-link">Lass mich wählen</button>', 310 primary_btn: { 311 text: 'Alle akzeptieren', 312 role: 'accept_all' // 'accept_selected' or 'accept_all' 313 }, 314 secondary_btn: { 315 text: 'Alle ablehnen', 316 role: 'accept_necessary' // 'settings' or 'accept_necessary' 317 } 318 }, 319 settings_modal: { 320 title: 'Cookie-Einstellungen', 321 save_settings_btn: 'Einstellungen speichern', 322 accept_all_btn: 'Alle akzeptieren', 323 reject_all_btn: 'Alle ablehnen', 324 close_btn_label: 'SchlieÃen Sie', 325 cookie_table_headers: [ 326 {col1: 'Name'}, 327 {col2: 'Domain'}, 328 {col3: 'Verfallsdatum'}, 329 //{col4: 'Description'}, 330 ], 331 blocks: [ 332 { 333 title: 'Verwendung von Cookies', 334 description: 'Ich verwende Cookies, um die grundlegenden Funktionen der Website zu gewährleisten und um Ihr Online-Erlebnis zu verbessern. Sie können für jede Kategorie wählen, ob Sie sich ein- oder austragen möchten. Für weitere Einzelheiten zu Cookies und anderen sensiblen Daten lesen Sie bitte die vollständige Datenschutzerklärung' 335 }, { 336 title: 'Streng notwendige Cookies', 337 description: 'Diese Cookies sind für das ordnungsgemäÃe Funktionieren meiner Website unerlässlich. Ohne diese Cookies würde die Website nicht richtig funktionieren', 338 toggle: { 339 value: 'necessary', 340 enabled: true, 341 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 342 } 343 }, /*{ 344 title: 'Performance and Analytics cookies', 345 description: 'These cookies allow the website to remember the choices you have made in the past', 346 toggle: { 347 value: 'analytics', // your cookie category 348 enabled: false, 349 readonly: false 350 }, 351 cookie_table: [ // list of all expected cookies 352 { 353 col1: '^_ga', // match all cookies starting with "_ga" 354 col2: 'google.com', 355 col3: '2 years', 356 is_regex: true 357 }, 358 { 359 col1: '_gid', 360 col2: 'google.com', 361 col3: '1 day', 362 } 363 ] 364 }, */{ 365 title : 'Inhalte von Dritten', 366 description: 'Diese Cookies werden von externen Websites gesetzt, deren Inhalte in unsere Website integriert sind, zum Beispiel wenn ein Youtube-Video angezeigt wird. Wenn Sie diese Cookies ablehnen, werden diese Inhalte nicht angezeigt.', 367 toggle: { 368 value: 'iframemanager', 369 enabled: false, 370 readonly: false 371 }, 372 cookie_table: [ 373 { 374 col1: 'cc_videos', 375 col2: window.location.hostname, 376 col3: '1 Jahr', 377 } 378 ] 379 },/* { 380 title: 'Advertisement and Targeting cookies', 381 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', 382 toggle: { 383 value: 'targeting', 384 enabled: false, 385 readonly: false 386 } 387 }, /* { 388 title: 'More information', 389 description: 'For any queries in relation to our policy on cookies and your choices, please <a class="cc-link" href="#yourcontactpage">contact us</a>.', 390 } */ 391 ] 392 } 393 } 394 } 395});
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.