1var TEXTO_ACEITE = '<iframe class="texto_aceite" frameborder="0" scrolling="yes" src="https://www.tce.mg.gov.br/cookies/texto_aceite.html" width="100%" height="55"></iframe>'; 2 3var TEXTO_DEFINICOES = '<iframe class="texto_definicoes" frameborder="0" scrolling="yes" src="https://www.tce.mg.gov.br/cookies/texto_definicoes.html" width="100%" height="105"></iframe>'; 4 5var TEXTO_ANALYTICS = '<iframe class="texto_analytics" frameborder="0" scrolling="yes" src="https://www.tce.mg.gov.br/cookies/texto_analytics.html" width="100%" height="175"></iframe>'; 6 7var TEXTO_PESQUISA = '<iframe class="texto_pesquisa" frameborder="0" scrolling="yes" src="https://www.tce.mg.gov.br/cookies/texto_pesquisa.html" width="100%" height="90"></iframe>'; 8 9var TEXTO_SESSAO = '<iframe class="texto_sessao" frameborder="0" scrolling="yes" src="https://www.tce.mg.gov.br/cookies/texto_sessao.html" width="100%" height="125"></iframe>'; 10 11// obtain cookieconsent plugin 12var cc = initCookieConsent(); 13 14// run plugin with config object 15cc.run({ 16 current_lang: 'en', 17 autoclear_cookies: true, // default: false 18 cookie_name: 'cc_cookie', // default: 'cc_cookie' 19 cookie_expiration: 7, // default: 182 20 page_scripts: true, // default: false 21 force_consent: true, // default: false 22 23 // auto_language: null, // default: null; could also be 'browser' or 'document' 24 //autorun: true, // default: true 25 // delay: 0, // default: 0 26 // hide_from_bots: false, // default: false 27 // remove_cookie_tables: false // default: false 28 // cookie_domain: location.hostname, // default: current domain 29 // cookie_path: '/', // default: root 30 // cookie_same_site: 'Lax', 31 // use_rfc_cookie: false, // default: false 32 // revision: 0, // default: 0 33 34 gui_options: { 35 consent_modal: { 36 layout: 'cloud', // box,cloud,bar 37 position: 'bottom center', // bottom,middle,top + left,right,center 38 transition: 'slide' // zoom,slide 39 }, 40 settings_modal: { 41 layout: 'bar', // box,bar 42 position: 'left', // right,left (available only if bar layout selected) 43 transition: 'slide' // zoom,slide 44 } 45 }, 46 47 onFirstAction: function () { 48 console.log('onFirstAction fired'); 49 }, 50 51 onAccept: function (cookie) { 52 console.log('onAccept fired!'); 53 54 55 }, 56 57 onChange: function (cookie, changed_preferences) { 58 console.log('onChange fired!'); 59 60 // If analytics category is disabled => disable google analytics 61 if (!cc.allowedCategory('analytics')) { 62 typeof gtag === 'function' && gtag('consent', 'update', { 63 'analytics_storage': 'denied' 64 }); 65 } 66 67 }, 68 69 languages: { 70 'en': { 71 consent_modal: { 72 title: 'Aceite de cookies', 73 description: TEXTO_ACEITE, 74 primary_btn: { 75 text: 'Aceitar todos', 76 role: 'accept_all' //'accept_selected' or 'accept_all' 77 }, 78 secondary_btn: { 79 text: 'Definições de Cookies', 80 role: 'settings' //'settings' or 'accept_necessary' 81 }, 82 tertiary_btn: { 83 text: 'Rejeitar todos', 84 role: 'accept_necessary' // 'settings' or 'accept_necessary' 85 }, 86 revision_message: '<br><br> Caro usuário, os termos e condições mudaram desde a última vez que você visitou!' 87 }, 88 settings_modal: { 89 title: 'Definições de Cookies', 90 save_settings_btn: 'Confirmar minhas escolhas', 91 accept_all_btn: 'Aceitar todos', 92 reject_all_btn: 'Rejeitar todos', 93 close_btn_label: 'Fechar', 94 cookie_table_headers: [ 95 {col1: 'Descrição'}, 96 ], 97 blocks: [ 98 { 99 100 description: TEXTO_DEFINICOES 101 }, 102 { 103 title: 'Cookies de sessão', 104 toggle: { 105 value: 'sessao', 106 enabled: true, 107 readonly: true 108 }, 109 cookie_table: [ 110 { 111 col1: TEXTO_SESSAO,
112 is_regex: true 113 } 114 115 ] 116 }, 117 { 118 title: 'Cookies de pesquisa', 119 toggle: { 120 value: 'pesquisa', 121 enabled: false, 122 readonly: false 123 }, 124 cookie_table: [ 125 { 126 col1: TEXTO_PESQUISA, 127 is_regex: true 128 } 129 130 ] 131 }, 132 { 133 title: 'Cookies de desempenho e estatÃsticas', 134 toggle: { 135 value: 'analytics', 136 enabled: false, 137 readonly: false 138 }, 139 cookie_table: [ 140 { 141 col1: TEXTO_ANALYTICS, 142 is_regex: true 143 } 144 145 ] 146 }, 147 { 148 title: 'Mais Informações', 149 description: '<iframe frameborder="0" scrolling="no" src="https://www.tce.mg.gov.br/cookies/texto_responsavel.html" width="100%" height="70"></iframe>', 150 } 151 ] 152 } 153 } 154 } 155});
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.