1// obtain cookieconsent plugin 2var cc = initCookieConsent(); 3 4// example logo 5var logo = '<img src="/resources/skin/releasedAssets/images/logo.png" alt="Logo" loading="lazy" style="margin-left: 263px; margin-bottom: -5px; height: 80px">'; 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 right', // 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 + ' We use cookies! ', 57 description: 'We use cookies to make sure that our website works properly, as well as some âoptionalâ cookies to personalise content and advertising, provide social media features and analyse how people use our site. By accepting some or all optional cookies you give consent to the processing of your personal data, including transfer to third parties, some in countries outside of the European Economic Area that do not offer the same data protection standards as the country where you live. You can decide which optional cookies to accept by clicking on â<button type="button" data-cc="c-settings" class="cc-link">Manage Settings</button>â, where you can also find more information about how your personal data is processed. Further information can be found in our <a style="color:#ec125b;" target="_blank" href="/privacy-policy.php">Privacy Policy.', 58 primary_btn: { 59 text: 'Accept all', 60 role: 'accept_all' // 'accept_selected' or 'accept_all' 61 }, 62 secondary_btn: { 63 text: 'Reject all', 64 role: 'accept_necessary' // 'settings' or 'accept_necessary' 65 } 66 67 }, 68 settings_modal: { 69 title: logo, 70 save_settings_btn: 'Save settings', 71 accept_all_btn: 'Accept all', 72 reject_all_btn: 'Reject all', 73 close_btn_label: 'Close', 74 cookie_table_headers: [ 75 {col1: 'Name'}, 76 {col2: 'Domain'}, 77 {col3: 'Expiration'}, 78 {col4: 'Description'} 79 ], 80 blocks: [ 81 { 82 title: 'Cookie usage ð¢', 83 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="/privacy-policy.php" target="_blank" class="cc-link">privacy policy</a>.' 84 }, { 85 title: 'Strictly necessary cookies', 86 description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly', 87 toggle: { 88 value: 'necessary', 89 enabled: true, 90 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 91 } 92 }, { 93 title: 'Performance and Analytics cookies', 94 description: 'These cookies allow the website to remember the choices you have made in the past', 95 toggle: { 96 value: 'analytics', // there are no default categories => you specify them 97 enabled: false, 98 readonly: false 99 }, 100 cookie_table: [ 101 { 102 col1: '^_ga', 103 col2: 'google.com', 104 col3: '3 years', 105 col4: 'description ...', 106 is_regex: true 107 }, 108 { 109 col1: '_gid', 110 col2: 'google.com', 111 col3: '1 day', 112 col4: 'description ...', 113 } 114 ] 115 }, {
116 title: 'Advertisement and Targeting cookies', 117 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', 118 toggle: { 119 value: 'targeting', 120 enabled: false, 121 readonly: false 122 } 123 }, { 124 title: 'More information', 125 description: 'For any queries in relation to my policy on cookies and your choices, please <a class="cc-link" href="./index.php">contact me</a>.', 126 } 127 ] 128 } 129 } 130 } 131 132});
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.