1// obtain plugin 2// var cc = initCookieConsent(); 3 4// run plugin with your configuration 5cc.run({ 6 current_lang: 'sr', 7 autoclear_cookies: true, // default: false 8 page_scripts: true, // default: false 9 10 // mode: 'opt-in' // default: 'opt-in'; value: 'opt-in' or 'opt-out' 11 // delay: 0, // default: 0 12 // auto_language: 'document', // default: null; could also be 'browser' or 'document' 13 autorun: false, // default: true 14 // force_consent: false, // default: false 15 hide_from_bots: true, // default: false 16 // remove_cookie_tables: false // default: false 17 // cookie_name: 'cc_cookie', // default: 'cc_cookie' 18 // cookie_expiration: 182, // default: 182 (days) 19 // cookie_necessary_only_expiration: 182 // default: disabled 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 categories: { 27 necessary: { 28 enabled: true, 29 readOnly: true, 30 }, 31 analytics: { 32 enabled: false, 33 readOnly: false, 34 } 35 }, 36 37 gui_options: { 38 consent_modal: { 39 layout: 'bar', // box/cloud/bar 40 position: 'bottom center', // bottom/middle/top + left/right/center 41 // transition: 'slide', // zoom/slide 42 swap_buttons: true // enable to invert buttons 43 }, 44 settings_modal: { 45 layout: 'box', // box/bar 46 // position: 'left', // left/right 47 transition: 'slide' // zoom/slide 48 } 49 }, 50 51 onFirstAction: function(user_preferences, cookie) { 52 // callback triggered only once 53 localStorage.setItem('cookieconsent-shown', true); 54 }, 55 56 onAccept: function (cookie) { 57 // console.log('onAccept triggered'); 58 59 // IMPORTANT: Add delay to ensure GA is ready 60 setTimeout(function() { 61 if (window.gtag && cc.allowedCategory('analytics')) { 62 // console.log('Analytics allowed, updating consent...'); 63 gtag('consent', 'update', { 64 'analytics_storage': 'granted', 65 }); 66 } else { 67 console.log('Analytics denied'); 68 } 69 }, 100); 70 }, 71 72 onChange: function (cookie, changed_preferences) { 73 // Check if analytics preference changed 74 if (changed_preferences && changed_preferences.hasOwnProperty('analytics')) { 75 console.log('Analytics preference changed to:', changed_preferences.analytics); 76 77 setTimeout(function() { 78 if (window.gtag) { 79 gtag('consent', 'update', { 80 'analytics_storage': cc.allowedCategory('analytics') ? 'granted' : 'denied' 81 }); 82 } 83 console.log('Consent updated to:', cc.allowedCategory('analytics') ? 'granted' : 'denied'); 84 }, 100); 85 } 86 }, 87 88 languages: { 89 'en': { 90 consent_modal: { 91 title: 'We use cookies!', 92 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>', 93 primary_btn: { 94 text: 'Accept all', 95 role: 'accept_all' // 'accept_selected' or 'accept_all' 96 }, 97 secondary_btn: { 98 text: 'Necessary only', 99 role: 'accept_necessary' // 'settings' or 'accept_necessary' 100 } 101 }, 102 settings_modal: { 103 title: 'Cookie preferences', 104 save_settings_btn: 'Save settings', 105 accept_all_btn: 'Accept all', 106 // reject_all_btn: 'Reject all', 107 close_btn_label: 'Close', 108 cookie_table_headers: [ 109 {col1: 'Name'}, 110 {col2: 'Domain'}, 111 {col3: 'Expiration'}, 112 // {col4: 'Description'} 113 ], 114 blocks: [ 115 { 116 title: 'Cookie usage ð¢', 117 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>.' 118 }, { 119 title: 'Strictly necessary cookies', 120 description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly', 121 toggle: { 122 value: 'necessary', 123 enabled: true, 124 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 125 } 126 }, { 127 title: 'Performance and Analytics cookies', 128 description: 'These cookies allow the website to remember the choices you have made in the past', 129 toggle: { 130 value: 'analytics', // your cookie category 131 enabled: false, 132 readonly: false 133 }, 134 // cookie_table: [ // list of all expected cookies 135 // { 136 // col1: '^_ga', // match all cookies starting with "_ga" 137 // col2: 'google.com', 138 // col3: '2 years', 139 // // col4: 'description ...', 140 // is_regex: true 141 // }, 142 // { 143 // col1: '_gid', 144 // col2: 'google.com', 145 // col3: '1 day', 146 // // col4: 'description ...', 147 // } 148 // ] 149 }, 150 // {
151 // title: 'Advertisement and Targeting cookies', 152 // 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', 153 // toggle: { 154 // value: 'targeting', 155 // enabled: false, 156 // readonly: false 157 // } 158 // }, 159 // { 160 // title: 'More information', 161 // description: 'For any queries in relation to our policy on cookies and your choices, please <a class="cc-link" href="#yourcontactpage">contact us</a>.', 162 // } 163 ] 164 } 165 }, 166 'sr': { 167 consent_modal: { 168 title: 'Ova veb-stranica koristi kolaÄiÄe', 169 description: 'Koristimo kolaÄiÄe kako bismo bolje razumeli kako posetioci koriste naÅ¡e digitalne medije i pružene alate i usluge, kao i radi poboljÅ¡anja njihove upotrebe i funkcionalnosti. <button type="button" data-cc="c-settings" class="cc-link">Podesi</button>', 170 primary_btn: { 171 text: 'Prihvati sve', 172 role: 'accept_all' // 'accept_selected' or 'accept_all' 173 }, 174 secondary_btn: { 175 text: 'Samo neophodni', 176 role: 'accept_necessary' // 'settings' or 'accept_necessary' 177 } 178 }, 179 settings_modal: { 180 title: 'Pregled privatnosti', 181 save_settings_btn: 'SaÄuvaj', 182 accept_all_btn: 'Prihvati sve', 183 // reject_all_btn: 'Odbij sve', 184 close_btn_label: 'Zatvori', 185 cookie_table_headers: [ 186 {col1: 'Naziv'}, 187 {col2: 'Domen'}, 188 {col3: 'Trajanje'}, 189 // {col4: 'Opis'} 190 ], 191 blocks: [ 192 { 193 // title: 'Upotreba kolaÄiÄa', 194 // description: 'KolaÄiÄi su mali fajlovi koji se postavljaju na VaÅ¡ ureÄaj i koji služe za razliÄite svrhe, kao Å¡to su kolaÄiÄi koji bi Vam omoguÄili da se kreÄete meÄu web stranicama efikasno, pamte VaÅ¡e preferencije i generalno poboljÅ¡avaju VaÅ¡e korisniÄno iskustvo na internetu. KoriÅ¡Äenje kolaÄiÄa na naÅ¡im digitalnim medijima omoguÄava Vam da uživate u kvalitetnijim posetama i preciznije beleže VaÅ¡e aktivnosti na naÅ¡oj internet lokaciji. ViÅ¡e o kolaÄiÄima koje koristimo možete saznati na stranici <a href="/cookie.html" target="_blank" class="cc-link">politika kolaÄiÄa</a>.', 195 title: '', 196 description: 'Ova veb lokacija koristi kolaÄicÌe da poboljÅ¡a vaÅ¡e iskustvo dok se krecÌete kroz veb lokaciju. Od ovih kolaÄicÌa, kolaÄicÌi koji su kategorisani prema potrebama Äuvaju se u vaÅ¡em pretraživaÄu jer su neophodni za rad osnovne funkcionalnosti veb stranice. TakoÄe koristimo kolaÄicÌe trecÌe strane koji nam pomažu da analiziramo i razumemo kako koristite ovu veb lokaciju. Ovi kolaÄicÌi cÌe biti saÄuvani u vaÅ¡em pretraživaÄu samo uz vaÅ¡u saglasnost. TakoÄe imate opciju da iskljuÄite ove kolaÄicÌe. Ali odustajanje od nekih od ovih kolaÄicÌa može uticati na vaÅ¡e iskustvo pregleda.' 197 }, { 198 title: 'Neophodni', 199 description: 'Neophodni kolaÄicÌi su apsolutno neophodni za pravilno funkcionisanje veb stranice. Ovi kolaÄicÌi anonimno obezbeÄuju osnovne funkcionalnosti i bezbednosne karakteristike veb stranice.', 200 toggle: { 201 value: 'necessary', 202 enabled: true, 203 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 204 } 205 }, { 206 title: 'AnalitiÄki', 207 description: 'Ovi kolaÄiÄi prikupljaju informacije o tome kako koristite i kako se kreÄete kroz naÅ¡e digitalne medije.', 208 toggle: { 209 value: 'analytics', // your cookie category 210 enabled: false, 211 readonly: false 212 }, 213 // cookie_table: [ // list of all expected cookies 214 // { 215 // col1: '^_ga', // match all cookies starting with "_ga" 216 // col2: 'google.com', 217 // col3: '2 years', 218 // // col4: 'description ...', 219 // is_regex: true 220 // }, 221 // { 222 // col1: '_gid', 223 // col2: 'google.com', 224 // col3: '1 day', 225 // // col4: 'description ...', 226 // } 227 // ] 228 }, 229 // {
230 // title: 'Advertisement and Targeting cookies', 231 // 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', 232 // toggle: { 233 // value: 'targeting', 234 // enabled: false, 235 // readonly: false 236 // } 237 // }, 238 // { 239 // title: 'ViÅ¡e informacija', 240 // description: 'Ukoliko imate pitanja u vezi naÅ¡e politike privatnost ili upotrebe kolaÄiÄa, možete nas <a class="cc-link" href="/kontakt.php">kontaktirati</a>.', 241 // } 242 ] 243 } 244 }, 245 } 246}); 247 248// For returning visitors, update GA consent immediately 249if (window.gtag && cc.allowedCategory('analytics')) { 250 gtag('consent', 'update', { 251 'analytics_storage': 'granted', 252 }); 253} 254 255if (!localStorage.getItem('cookieconsent-shown')) { 256 cc.show(); 257}
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.