1// obtain cookieconsent plugin 2var cc = initCookieConsent(); 3 4// example logo 5var logo = '<img src="https://fontmeme.com/permalink/220805/3b90158d204fdd325173a5c7873e7cc1.png" alt="Logo" loading="lazy" style="margin-left: -4px; margin-bottom: -5px; height: 35px">'; 6var cookie = 'ðª'; 7 8// run plugin with config object 9cc.run({ 10 current_lang : 'en', 11 autoclear_cookies : true, // default: false 12 cookie_name: 'cc_cookie_demo1', // default: 'cc_cookie' 13 cookie_expiration : 365, // default: 182 14 page_scripts: true, // default: false 15 16 // auto_language: null, // default: null; could also be 'browser' or 'document' 17 // autorun: true, // default: true 18 // delay: 0, // default: 0 19 // force_consent: false, 20 // hide_from_bots: false, // default: false 21 // remove_cookie_tables: false // default: false 22 // cookie_domain: location.hostname, // default: current domain 23 // cookie_path: "/", // default: root 24 // cookie_same_site: "Lax", 25 // use_rfc_cookie: false, // default: false 26 // revision: 0, // default: 0 27 28 gui_options: { 29 consent_modal: { 30 layout: 'box', // box,cloud,bar 31 position: 'bottom left', // bottom,middle,top + left,right,center 32 transition: 'slide' // zoom,slide 33 }, 34 settings_modal: { 35 layout: 'box', // box,bar 36 // position: 'left', // right,left (available only if bar layout selected) 37 transition: 'slide' // zoom,slide 38 } 39 }, 40 41 onFirstAction: function(){ 42 console.log('onFirstAction fired'); 43 }, 44 45 onAccept: function (cookie) { 46 console.log('onAccept fired ...'); 47 }, 48 49 onChange: function (cookie, changed_preferences) { 50 console.log('onChange fired ...'); 51 }, 52 53 languages: { 54 'en': { 55 consent_modal: { 56 title: cookie + ' Ãerez Politikamız! ', 57 description: 'Size daha iyi hizmet verebilmek için sitemizde çerezlere yer veriyoruz. Sitemizi kullandıÄınız sürece <a href="/aydinlatma-metni">Aydınlatma Metni</a> ve <a href="/cerez-politikamiz">Ãerez Politikamızı</a> kabul etmektesiniz.', 58 primary_btn: { 59 text: 'Kabul Et', 60 role: 'accept_all' // 'accept_selected' or 'accept_all' 61 }, 62 63 }, 64 settings_modal: { 65 title: logo, 66 save_settings_btn: 'Save settings', 67 accept_all_btn: 'Kabul Et', 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="#" class="cc-link">privacy 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: 'Performance and Analytics cookies', 90 description: 'These cookies allow the website to remember the choices you have made in the past', 91 toggle: { 92 value: 'analytics', // there are no default categories => you specify them 93 enabled: false, 94 readonly: false 95 }, 96 cookie_table: [ 97 { 98 col1: '^_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: 'Advertisement and Targeting cookies', 113 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', 114 toggle: { 115 value: 'targeting', 116 enabled: false, 117 readonly: false 118 } 119 }, { 120 title: 'More information', 121 description: 'For any queries in relation to my policy on cookies and your choices, please <a class="cc-link" href="https://orestbida.com/contact">contact me</a>.', 122 } 123 ] 124 } 125 } 126 } 127 128});
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.