1// obtain cookieconsent plugin 2var cc = initCookieConsent(); 3 4// example logo 5var logo = '<img src="data/files/" alt="Logo" loading="lazy" style="margin-left: -4px; margin-bottom: -5px; height: 40px">'; 6var cookie = 'ðª'; 7 8// run plugin with config object 9cc.run({ 10 current_lang : 'de', 11 autoclear_cookies : true, // default: false 12 cookie_name: 'cc_cookie', // default: 'cc_cookie' 13 cookie_expiration : 182, // 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: true, // 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: 'cloud', // box,cloud,bar 31 position: 'bottom center', // 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 'de': { 55 consent_modal: { 56 title: consentVar1, 57 description: consentVar2 + ' <button type="button" data-cc="c-settings" class="cc-link">Cookie-Einstellungen</button>', 58 primary_btn: { 59 text: 'Alle akzeptieren', 60 role: 'accept_all' // 'accept_selected' or 'accept_all' 61 }, 62 secondary_btn: { 63 text: 'Alle ablehnen', 64 role: 'accept_necessary' // 'settings' or 'accept_necessary' 65 } 66 }, 67 settings_modal: { 68 title: 'OOKI Izakaya', 69 save_settings_btn: 'Auswahl speichern', 70 accept_all_btn: 'Alle akzeptieren', 71 reject_all_btn: 'Alle ablehnen', 72 close_btn_label: 'Schliessen', 73 cookie_table_headers: [ 74 {col1: 'Name'}, 75 {col2: 'Domain'}, 76 {col3: 'Expiration'}, 77 {col4: 'Description'} 78 ], 79 blocks: [ 80 { 81 title: consentVar3, 82 description: consentVar4 83 }, { 84 title: consentVar5, 85 description: consentVar6, 86 toggle: { 87 value: 'necessary', 88 enabled: true, 89 readonly: true // cookie categories with readonly=true are all treated as "necessary cookies" 90 } 91 }, { 92 title: consentVar7, 93 description: consentVar8, 94 toggle: { 95 value: 'analytics', // there are no default categories => you specify them 96 enabled: false, 97 readonly: false 98 } 99 }, { 100 title: consentVar9, 101 description: consentVar10, 102 toggle: { 103 value: 'targeting', 104 enabled: false, 105 readonly: false 106 } 107 }, { 108 title: consentVar11, 109 description: consentVar12, 110 } 111 ] 112 } 113 } 114 } 115 116});
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.