1// obtain plugin 2var cc = initCookieConsent(); 3 4// run plugin with your configuration 5console.log("initCookieConsent") 6cc.run({ 7 current_lang: document.documentElement.getAttribute('lang'), 8 autoclear_cookies: true, // default: false 9 theme_css: '/static/cookieconsent/cookieconsent.css', // ð¨ replace with a valid path 10 // page_scripts: true, // default: false 11 12 delay: 1, // default: 0 13 // auto_language: null // default: null; could also be 'browser' or 'document' 14 // autorun: true, // default: true 15 // force_consent: true, // default: false 16 hide_from_bots: true, // default: false 17 // remove_cookie_tables: false // default: false 18 // cookie_name: 'cc_cookie', // default: 'cc_cookie' 19 // cookie_expiration: 182, // default: 182 (days) 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 onAccept: function (cookie) { 27 console.log("onAccept", cookie) 28 }, 29 30 onChange: function (cookie, changed_preferences) { 31 console.log("onChange", cookie, changed_preferences) 32 if (cookie.level.includes("analytics")) { 33 // Enable analytics 34 } else { 35 // Disable analytics 36 } 37 }, 38 gui_options: { 39 consent_modal: { 40 layout: 'cloud', // box/cloud/bar 41 position: 'bottom center', // bottom/middle/top + left/right/center 42 transition: 'slide' // zoom/slide 43 }, 44 settings_modal: { 45 layout: 'box', // box/bar 46 // position: 'left', // left/right 47 transition: 'slide' // zoom/slide 48 } 49 }, 50 languages: { 51 'en': { 52 consent_modal: { 53 title: 'We use cookies!', 54 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>', 55 primary_btn: { 56 text: 'Accept all', 57 role: 'accept_all' // 'accept_selected' or 'accept_all' 58 }, 59 secondary_btn: { 60 text: 'Reject all', 61 role: 'accept_necessary' // 'settings' or 'accept_necessary' 62 } 63 }, 64 settings_modal: { 65 title: 'Cookie preferences', 66 save_settings_btn: 'Save settings', 67 accept_all_btn: 'Accept all', 68 reject_all_btn: 'Reject all', 69 close_btn_label: 'Close', 70 cookie_table_headers: [ 71 {col1: 'Name'}, 72 {col2: 'Domain'}, 73 {col3: 'Expiration'}, 74 {col4: 'Description'} 75 ], 76 blocks: [ 77 { 78 title: 'Cookie usage ð¢', 79 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="/legal/cookies-policy/" class="cc-link">cookies policy</a>.' 80 }, { 81 title: 'Strictly necessary cookies', 82 description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly', 83 toggle: { 84 value: 'necessary', 85 enabled: true, 86 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 87 } 88 }, { 89 title: 'Analytics cookies', 90 description: 'These cookies allow the website to remember the choices you have made in the past', 91 toggle: { 92 value: 'analytics', // your cookie category 93 enabled: false, 94 readonly: false 95 }, 96 cookie_table: [ // list of all expected cookies 97 { 98 col1: '^_ga', // match all cookies starting with "_ga" 99 col2: 'google.com', 100 col3: '2 years', 101 col4: 'description ...', 102 is_regex: true 103 }, 104 { 105 col1: '_gid', 106 col2: 'google.com', 107 col3: '1 day', 108 col4: 'description ...', 109 } 110 ] 111 }, { 112 title: 'More information', 113 description: 'For any queries in relation to our policy on cookies and your choices, please refer to our <a class="cc-link" href="/legal/cookies-policy/">cookies policy</a>.', 114 } 115 ] 116 } 117 }, 118 'es': { 119 consent_modal: { 120 title: 'Usamos cookies!', 121 description: 'Hola, este sitio web utiliza cookies sencillas para asegurar su propio funcionamiento y cookies de seguimiento para entender cómo interactuas con él. Estas últimas solo se activan si das tu consentimiento. <button type="button" data-cc="c-settings" class="cc-link">Déjame elegir</button>', 122 primary_btn: { 123 text: 'Aceptar todas', 124 role: 'accept_all' // 'accept_selected' or 'accept_all' 125 }, 126 secondary_btn: { 127 text: 'Rechazar todas', 128 role: 'accept_necessary' // 'settings' or 'accept_necessary' 129 } 130 }, 131 settings_modal: { 132 title: 'Preferencias de Cookies', 133 save_settings_btn: 'Guardar preferencias', 134 accept_all_btn: 'Aceptar todas', 135 reject_all_btn: 'Rechazar todas', 136 close_btn_label: 'Cerrar', 137 cookie_table_headers: [ 138 {col1: 'Nombre'}, 139 {col2: 'Dominio'}, 140 {col3: 'Expiración'}, 141 {col4: 'Descripción'} 142 ], 143 blocks: [ 144 { 145 title: 'Uso de las cookies ð¢', 146 description: 'Usamos cookies para el correcto funcionamiento de este sitio web y para mejorar tu experiencia. Puedes elegir qué categorÃa activar o desactivar en cualquier momento. Para más detalle relativos a las cookies y otros datos sensibles, por favor lee nuestra <a href="/legal/cookies-policy/" class="cc-link">polÃtica de cookies</a>.' 147 }, { 148 title: 'Estrictamente necesarias', 149 description: 'Estas cookies son esenciales para el funcionamiento del sitio web. Sin esas cookies el sitio no podrÃa funcionar correctamente.', 150 toggle: { 151 value: 'necessary', 152 enabled: true, 153 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 154 } 155 }, { 156 title: 'AnalÃtica', 157 description: 'Estas cookies nos permiten recordar las acciones que has realizado en el pasado', 158 toggle: { 159 value: 'analytics', // your cookie category 160 enabled: false, 161 readonly: false 162 }, 163 cookie_table: [ // list of all expected cookies 164 { 165 col1: '^_ga', // match all cookies starting with "_ga" 166 col2: 'google.com', 167 col3: '2 years', 168 col4: 'Esta es la cookie principal de Google Analytics', 169 is_regex: true 170 }, 171 { 172 col1: '_gid', 173 col2: 'google.com', 174 col3: '1 day', 175 col4: 'Identificador automático que genera Google y asocia a tu visita', 176 } 177 ] 178 }, { 179 title: 'Más información', 180 description: 'Para cualquier duda en relación al uso que hacemos de las cookeis, por favor revisa al detalle nuestra <a class="cc-link" href="/legal/cookies-policy/">polÃtica de cookies</a>.', 181 } 182 ] 183 } 184 } 185 } 186});
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.