|
16 | 16 | <body> |
17 | 17 | <div id="app"></div> |
18 | 18 | <div id="modal-app"></div> |
| 19 | +<div id="cookie"></div> |
19 | 20 | <!-- built files will be auto injected --> |
20 | 21 | </body> |
21 | 22 | <script> |
22 | 23 | createApp('app', '<BrowserCheck :hidePageIfUnSupportedBrowser="false"><TitleBar v-slot:content :projectlistVisible="true"/></BrowserCheck>', 'modal-app'); |
| 24 | + |
| 25 | + var opt = { |
| 26 | + current_lang: 'en', |
| 27 | + autoclear_cookies: true, |
| 28 | + page_scripts: true, |
| 29 | + languages: { |
| 30 | + 'en': { |
| 31 | + consent_modal: { |
| 32 | + title: 'We use cookies!', |
| 33 | + description: 'Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to ' + |
| 34 | + 'understand how you interact with it. The latter will be set only after ' + |
| 35 | + 'consent. <button type="button" data-cc="c-settings" class="cc-link">Let me choose</button>', |
| 36 | + primary_btn: { |
| 37 | + text: 'Accept all', |
| 38 | + role: 'accept_all', |
| 39 | + }, |
| 40 | + secondary_btn: { |
| 41 | + text: 'Reject all', |
| 42 | + role: 'accept_necessary', |
| 43 | + } |
| 44 | + }, |
| 45 | + settings_modal: { |
| 46 | + title: 'Cookie preferences', |
| 47 | + save_settings_btn: 'Save settings', |
| 48 | + accept_all_btn: 'Accept all', |
| 49 | + reject_all_btn: 'Reject all', |
| 50 | + close_btn_label: 'Close', |
| 51 | + cookie_table_headers: [ |
| 52 | + {col1: 'Name'}, |
| 53 | + {col2: 'Domain'}, |
| 54 | + {col3: 'Expiration'}, |
| 55 | + {col4: 'Description'} |
| 56 | + ], |
| 57 | + blocks: [ |
| 58 | + { |
| 59 | + title: 'Cookie usage 📢', |
| 60 | + description: 'I use cookies to ensure the basic functionalities of the website and to enhance your ' + |
| 61 | + 'online experience. You can choose for each category to opt-in/out whenever you want. For more ' + |
| 62 | + 'details relative to cookies and other sensitive data, please read ' + |
| 63 | + 'the full <a href="#" class="cc-link">privacy policy</a>.' |
| 64 | + }, { |
| 65 | + title: 'Strictly necessary cookies', |
| 66 | + description: 'These cookies are essential for the proper functioning of my website. ' + |
| 67 | + 'Without these cookies, the website would not work properly', |
| 68 | + toggle: { |
| 69 | + value: 'necessary', |
| 70 | + enabled: true, |
| 71 | + readonly: true |
| 72 | + } |
| 73 | + }, { |
| 74 | + title: 'Performance and Analytics cookies', |
| 75 | + description: 'These cookies allow the website to remember the choices you have made in the past', |
| 76 | + toggle: { |
| 77 | + value: 'analytics', |
| 78 | + enabled: false, |
| 79 | + readonly: false |
| 80 | + }, |
| 81 | + cookie_table: [ |
| 82 | + { |
| 83 | + col1: '^_ga', |
| 84 | + col2: 'google.com', |
| 85 | + col3: '2 years', |
| 86 | + col4: 'description ...', |
| 87 | + is_regex: true |
| 88 | + }, |
| 89 | + { |
| 90 | + col1: '_gid', |
| 91 | + col2: 'google.com', |
| 92 | + col3: '1 day', |
| 93 | + col4: 'description ...', |
| 94 | + } |
| 95 | + ] |
| 96 | + }, { |
| 97 | + title: 'Advertisement and Targeting cookies', |
| 98 | + description: 'These cookies collect information about how you use the website, which pages you ' + |
| 99 | + 'visited and which links you clicked on. All of the data is anonymized and ' + |
| 100 | + 'cannot be used to identify you', |
| 101 | + toggle: { |
| 102 | + value: 'targeting', |
| 103 | + enabled: false, |
| 104 | + readonly: false |
| 105 | + } |
| 106 | + }, { |
| 107 | + title: 'More information', |
| 108 | + description: 'For any queries in relation to our policy on cookies and your ' + |
| 109 | + 'choices, please <a class="cc-link" href="#yourcontactpage">contact us</a>.', |
| 110 | + } |
| 111 | + ] |
| 112 | + } |
| 113 | + } |
| 114 | + } |
| 115 | + }; |
| 116 | + createApp('cookie', '<CookieNotice/>', 'modal-app', opt); |
23 | 117 | </script> |
24 | 118 | </html> |
0 commit comments