1// obtain plugin 2var cc = initCookieConsent(); 3 4var element = document.querySelector('body'); 5var dataLangAttribute = element.getAttribute('data-l'); 6 7// run plugin with your configuration 8cc.run({ 9 current_lang: dataLangAttribute, 10 autoclear_cookies: false, // default: false 11 page_scripts: true, // default: false 12 13 // mode: 'opt-in' // default: 'opt-in'; value: 'opt-in' or 'opt-out' 14 // delay: 0, // default: 0 15 // auto_language: null // default: null; could also be 'browser' or 'document' 16 // autorun: true, // default: true 17 // force_consent: false, // default: false 18 // hide_from_bots: false, // default: false 19 // remove_cookie_tables: false // default: false 20 // cookie_name: 'cc_cookie', // default: 'cc_cookie' 21 // cookie_expiration: 182, // default: 182 (days) 22 // cookie_necessary_only_expiration: 182 // default: disabled 23 // cookie_domain: location.hostname, // default: current domain 24 // cookie_path: '/', // default: root 25 // cookie_same_site: 'Lax', // default: 'Lax' 26 // use_rfc_cookie: false, // default: false 27 // revision: 0, // default: 0 28 29 onFirstAction: function(user_preferences, cookie){ 30 // callback triggered only once 31 }, 32 33 onAccept: function (cookie) { 34 //console.log('User accept type:', cc.getUserPreferences()); 35 if (cc.allowedCategory('targeting')) { 36 $('#buttonsModalFooter').show(); 37 } 38 39 if (cc.allowedCategory('analytics')) { 40 $.ajax({ 41 type: "POST", 42 url: "/api/logActivity", 43 data: 't=K4', 44 dataType: "json", 45 async: true, 46 success: function (data) { 47 } 48 }); 49 } 50 }, 51 52 onChange: function (cookie, changed_preferences) { 53 //console.log("onChange:"+cc.allowedCategory('analytics')); 54 if (cc.allowedCategory('targeting')) { 55 $('#buttonsModalFooter').show(); 56 } 57 /* 58 if (cc.allowedCategory('analytics')) { 59 $.ajax({ 60 type: "POST", 61 url: "https://ticketlive.local/app_dev.php/"+"api/logActivity", 62 data: 't=K4', 63 dataType: "json", 64 async: true, 65 success: function (data) { 66 } 67 }); 68 }*/ 69 }, 70 71 languages: { 72 'cs': { 73 consent_modal: { 74 title: 'Nastavenà ochrany vaÅ¡ich osobnÃch údajů', 75 description: 'Pro veÅ¡keré digitálnà projekty je možné ukládat a zpracovávat pouze údaje k jejichž zpracovánà byl udÄlen výslovný souhlas. Mezi tyto údaje patÅà pÅedevÅ¡Ãm identifikátory a dalšà data zÃskaná Äi ukládaná do souborů cookies(<a href="/cs/page/zasady-pouziti-cookies">VÃce informacÃ</a>). <br/><br/>Když kliknete na âPovolit vÅ¡eâ, poskytnete nám souhlas ke zpracovánà výše uvedených údajů. Na našà stránce je využÃváme primárnÄ k identifikaci nejoblÃbenÄjÅ¡Ãho obsahu a nejÄastÄjÅ¡Ãch zdrojů návÅ¡tÄvnosti. <button type="button" data-cc="c-settings" class="cc-link">Nastavenà cookies</button>', 76 primary_btn: { 77 text: 'Povolit vÅ¡e', 78 role: 'accept_all' // 'accept_selected' or 'accept_all' 79 }, 80 secondary_btn: { 81 text: 'ZamÃtnout vÅ¡e', 82 role: 'accept_necessary' // 'settings' or 'accept_necessary' 83 } 84 }, 85 settings_modal: { 86 title: 'PÅizpůsobit nastavenà cookies', 87 save_settings_btn: 'Uložit nastavenÃ', 88 accept_all_btn: 'PÅijmout vÅ¡e', 89 reject_all_btn: 'ZamÃtnout vÅ¡e', 90 close_btn_label: 'ZavÅÃt', 91 cookie_table_headers: [ 92 {col1: 'OznaÄenÃ'}, 93 {col2: 'Doména'}, 94 {col3: 'Expirace'},
95 {col4: 'Popis'} 96 ], 97 blocks: [ 98 { 99 title: 'Jaké cookies použÃváme?', 100 description: 'Na webových stránkách použÃváme funkÄnÃ, analytické a nezbytné cookies.' 101 }, { 102 title: 'Nezbytné cookies', 103 description: 'Nezbytné cookies jsou nutné pro správné fungovánà webových stránek. Tyto soubory cookie zajišťujà anonymnÄ základnà funkce a bezpeÄnostnà funkce webu.', 104 toggle: { 105 value: 'necessary', 106 enabled: true, 107 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 108 } 109 }, { 110 title: 'Analytické cookies', 111 description: 'Analytické soubory cookie se použÃvajà k pochopenà interakce návÅ¡tÄvnÃků s webem. Tyto soubory cookie pomáhajà poskytovat informace o metrikách poÄet návÅ¡tÄvnÃků, mÃru okamžitého opuÅ¡tÄnÃ, zdroj provozu atd.', 112 toggle: { 113 value: 'analytics', // your cookie category 114 enabled: false, 115 readonly: false 116 }, 117 cookie_table: [ // list of all expected cookies 118 { 119 col1: '^_ga', // match all cookies starting with "_ga" 120 col2: 'google.com', 121 col3: '2 years', 122 col4: 'Google Analytics', 123 is_regex: true 124 }, 125 { 126 col1: '_gid', 127 col2: 'google.com', 128 col3: '1 day', 129 col4: 'Google Analytics', 130 } 131 ] 132 }, { 133 title: 'FunkÄnà cookies', 134 description: 'FunkÄnà soubory cookie pomáhajà provádÄt urÄité funkce, jako je sdÃlenà obsahu webových stránek na platformách sociálnÃch médiÃ, shromažÄovánà zpÄtných vazeb a dalšà funkce tÅetÃch stran.', 135 toggle: { 136 value: 'targeting', 137 enabled: false, 138 readonly: false 139 }, 140 cookie_table: [ // list of all expected cookies 141 { 142 col1: '^_fbp', // match all cookies starting with "_ga" 143 col2: 'facebook.com', 144 col3: '3 mÄsÃce', 145 col4: 'Facebook pixel', 146 is_regex: true 147 }, 148 { 149 col1: '_ttp', 150 col2: 'tiktok.com', 151 col3: '3 mÄsÃce', 152 col4: 'Tiktok Pixel', 153 } 154 ] 155 } 156 ] 157 } 158 }, 159 'sk': { 160 consent_modal: { 161 title: 'Nastavenie ochrany vaÅ¡ich osobných údajov', 162 description: 'Pre vÅ¡etky digitálne projekty je možné ukladaÅ¥ a spracovávaÅ¥ iba údaje, ku ktorým bol udelený vyslovený súhlas. Medzi tieto údaje patria predovÅ¡etkým identifikátory a ÄalÅ¡ie dáta zÃskané alebo ukladané do súborov cookies (<a href="/sk/page/zasady-pouzitia-cookies">viac informáciÃ</a>). <br/><br/>KeÄ kliknete na âPovoliÅ¥ vÅ¡etkoâ, poskytnete nám súhlas k spracovaniu vyššie uvedených údajov. Na naÅ¡ej stránke ich využÃvame primárne k identifikácii najobľúbenejÅ¡ieho obsahu a najÄastejÅ¡Ãch zdrojov návÅ¡tevnosti. <button type="button" data-cc="c-settings" class="cc-link">nastavenia cookies</button>', 163 primary_btn: { 164 text: 'PrijaÅ¥ vÅ¡etko', 165 role: 'accept_all' // 'accept_selected' or 'accept_all' 166 }, 167 secondary_btn: { 168 text: 'ZamietnuÅ¥ vÅ¡etko', 169 role: 'accept_necessary' // 'settings' or 'accept_necessary' 170 } 171 }, 172 settings_modal: { 173 title: 'PrispôsobiÅ¥ nastavenia cookies', 174 save_settings_btn: 'UložiÅ¥ nastavenia', 175 accept_all_btn: 'PrijaÅ¥ vÅ¡etko', 176 reject_all_btn: 'ZamietnuÅ¥ vÅ¡etko', 177 close_btn_label: 'ZatvoriÅ¥', 178 cookie_table_headers: [ 179 {col1: 'OznaÄenie'}, 180 {col2: 'Doména'}, 181 {col3: 'Expirácia'},
182 {col4: 'Popis'} 183 ], 184 blocks: [ 185 { 186 title: 'Aké cookies použÃvame?', 187 description: 'Na webových stránkach použÃvame funkÄné, analytické a nevyhnutné cookies.' 188 }, { 189 title: 'Nevyhnutné cookies', 190 description: 'Nevyhnutné cookies sú nutné pre správne fungovanie webových stránok. Tieto súbory cookie zaisÅ¥ujú anonymné základné funkcie a bezpeÄnostné funkcie webu.', 191 toggle: { 192 value: 'necessary', 193 enabled: true, 194 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 195 } 196 }, { 197 title: 'Analytické cookies', 198 description: 'Analytické súbory cookie sa použÃvajú k pochopeniu interakcie návÅ¡tevnÃkov s webom. Tieto súbory cookie pomáhajú poskytovaÅ¥ informácie o metrikách poÄet návÅ¡tevnÃkov, mieru okamžitého opustenia, zdroj prevádzky atÄ.', 199 toggle: { 200 value: 'analytics', // your cookie category 201 enabled: false, 202 readonly: false 203 }, 204 cookie_table: [ // list of all expected cookies 205 { 206 col1: '^_ga', // match all cookies starting with "_ga" 207 col2: 'google.com', 208 col3: '2 years', 209 col4: 'Google Analytics', 210 is_regex: true 211 }, 212 { 213 col1: '_gid', 214 col2: 'google.com', 215 col3: '1 day', 216 col4: 'Google Analytics', 217 } 218 ] 219 }, { 220 title: 'FunkÄné cookies', 221 description: 'FunkÄné súbory cookie pomáhajú vykonávaÅ¥ urÄité funkcie, ako je zdieľanie obsahu webových stránok na platformách sociálnych médiÃ, zhromažÄovanie spätných väzieb a ÄalÅ¡ie funkcie tretÃch strán.', 222 toggle: { 223 value: 'targeting', 224 enabled: false, 225 readonly: false 226 }, 227 cookie_table: [ // list of all expected cookies 228 { 229 col1: '^_fbp', // match all cookies starting with "_ga" 230 col2: 'facebook.com', 231 col3: '3 mÄsÃce', 232 col4: 'Facebook pixel', 233 is_regex: true 234 }, 235 { 236 col1: '_ttp', 237 col2: 'tiktok.com', 238 col3: '3 mÄsÃce', 239 col4: 'Tiktok Pixel', 240 } 241 ] 242 } 243 ] 244 } 245 }, 246 'en': { 247 consent_modal: { 248 title: 'We use cookies!', 249 description: 'For all digital projects, it is possible to store and process only data for which explicit consent has been granted. These data primarily include identifiers and other data obtained or stored in cookie files(<a href="en/page/cookies-policy">More information</a>). <br/><br/>When you click "Allow All", you give us your consent to process the above data. On our site, we use them primarily to identify the most popular content and the most frequent sources of traffic. <button type="button" data-cc="c-settings" class="cc-link">Cookies settings</button>', 250 primary_btn: { 251 text: 'Accept all', 252 role: 'accept_all' // 'accept_selected' or 'accept_all' 253 }, 254 secondary_btn: { 255 text: 'Reject all', 256 role: 'accept_necessary' // 'settings' or 'accept_necessary' 257 } 258 }, 259 settings_modal: { 260 title: 'Cookie preferences', 261 save_settings_btn: 'Save settings', 262 accept_all_btn: 'Accept all', 263 reject_all_btn: 'Reject all', 264 close_btn_label: 'Close', 265 cookie_table_headers: [ 266 {col1: 'Name'}, 267 {col2: 'Domain'}, 268 {col3: 'Expiration'}, 269 {col4: 'Description'} 270 ], 271 blocks: [ 272 { 273 title: 'What cookies do we use?', 274 description: 'We use functional, analytical and necessary cookies on the website.' 275 }, { 276 title: 'Strictly necessary cookies', 277 description: 'Necessary cookies are necessary for the website to function properly. These cookies anonymously provide basic functions and security functions of the website.', 278 toggle: { 279 value: 'necessary', 280 enabled: true, 281 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 282 } 283 }, { 284 title: 'Analytical cookies', 285 description: 'Analytical cookies are used to understand visitor interaction with the website. These
285cookies help provide metrics information such as number of visitors, bounce rate, traffic source, etc.', 286 toggle: { 287 value: 'analytics', // your cookie category 288 enabled: false, 289 readonly: false 290 }, 291 cookie_table: [ // list of all expected cookies 292 { 293 col1: '^_ga', // match all cookies starting with "_ga" 294 col2: 'google.com', 295 col3: '2 years', 296 col4: 'description ...', 297 is_regex: true 298 }, 299 { 300 col1: '_gid', 301 col2: 'google.com', 302 col3: '1 day', 303 col4: 'description ...', 304 } 305 ] 306 }, { 307 title: 'Functional cookies', 308 description: 'Functionality cookies help perform certain functions, such as sharing website content on social media platforms, collecting feedback and other third-party functions.', 309 toggle: { 310 value: 'targeting', 311 enabled: false, 312 readonly: false 313 } 314 } 315 ] 316 } 317 } 318 } 319}); 320if (cc.allowedCategory('targeting')) { 321 $('div#buttonsModalFooter').show(); 322};
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.