// obtain plugin const cc = initCookieConsent(); // the papermod theme uses "dark" to determin dark mode while // cookieconsent uses c_darkmode so we sync it: var bodyclasses = document.body.classList if (bodyclasses.contains("dark")) { bodyclasses.add('c_darkmode'); } else { bodyclasses.remove('c_darkmode'); } // run plugin with your configuration cc.run({ current_lang: 'en', autoclear_cookies: true, // default: false page_scripts: true, // default: false // mode: 'opt-in' // default: 'opt-in'; value: 'opt-in' or 'opt-out' // delay: 0, // default: 0 // auto_language: null // default: null; could also be 'browser' or 'document' // autorun: true, // default: true force_consent: true, // default: false // hide_from_bots: false, // default: false // remove_cookie_tables: false // default: false // cookie_name: 'cc_cookie', // default: 'cc_cookie' // cookie_expiration: 182, // default: 182 (days) // cookie_necessary_only_expiration: 182 // default: disabled // cookie_domain: location.hostname, // default: current domain // cookie_path: '/', // default: root // cookie_same_site: 'Lax', // default: 'Lax' // use_rfc_cookie: false, // default: false // revision: 0, // default: 0 onFirstAction(user_preferences, cookie) { // callback triggered only once }, onAccept(cookie) { // ... }, onChange(cookie, changed_preferences) { location.reload(); }, gui_options: { consent_modal: { layout: 'cloud', // box/cloud/bar position: 'top center', // bottom/middle/top + left/right/center transition: 'slide', // zoom/slide swap_buttons: true, // enable to invert buttons }, settings_modal: { layout: 'box', // box/bar position: 'left', // left/right transition: 'zoom', // zoom/slide }, }, languages: { en: { consent_modal: { title: 'We use cookies! ', description: 'Hi, this website uses essential cookies to ensure its proper operation and tracking cookies and comparable technologies like web beacons to understand how you interact with this website and to provide you with targeted ads. The latter will be set only after consent.
', primary_btn: { text: 'Accept all', role: 'accept_all', // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Reject all', role: 'accept_necessary', // 'settings' or 'accept_necessary' }, }, settings_modal: { title: 'Cookie preferences', save_settings_btn: 'Save settings', accept_all_btn: 'Accept all', reject_all_btn: 'Reject all', close_btn_label: 'Close', cookie_table_headers: [ { col1: 'Name' }, { col2: 'Domain' }, { col3: 'Expiration' }, { col4: 'Description' }, ], blocks: [ { title: 'Cookie usage 📢', description: 'We use cookies and comparable technologies like web-beacons 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 related to cookies and other sensitive data, please read the full privacy policy.', }, { title: 'Strictly necessary cookies', description: 'These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly', toggle: { value: 'necessary', enabled: true, readonly: true, // cookie categories with readonly=true are all treated as "necessary cookies" }, cookie_table: [ // list of all expected cookies { col1: 'cc_cookie', // match all cookies starting with "_ga" col2: 'batchest.com', col3: '6 months', col4: 'Stores your answers to this cookie consent tool.', }, ], }, { title: 'Advertisement and Targeting cookies and web beacons', description: 'These cookies collect information about how you use the website, which pages you visited and which links you clicked on. ', toggle: { value: 'ads', enabled: false, readonly: false, }, }, { title: 'Performance and Analytics cookies and web beacons', description: 'These cookies and web beacons can collect information about you (IP Address, Browser information etc.) or about which pages you visited and which links you clicked.', toggle: { value: 'analytics', // your cookie category enabled: false, readonly: false, }, }, { title: 'External resources', description: 'This website does not use external resources that might misuse your data. However if you don\'t want us to load external resources under any circumstances, feel free to disable this checkbox. This might impact your experience on this website as it will disable serval things such as images (like Imgur), videos (like YouTube) or embedded streams (like Twitch).', toggle: { value: 'analytics', // your cookie category enabled: false, readonly: false, }, }, { title: 'More information', description: 'For any queries in relation to our policy on cookies and your choices, please contact us.', }, ], }, }, }, });