Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Pertecentes a (o) MG

Endereço Nota Erros Avisos

barbacena.mg.gov.br/edob/

80.31 37 92
Recomendações Avaliadas
2.2 Garantir que os objetos programáveis sejam acessíveis.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
2.2.6 Presença do elemento SCRIPT sem o elemento NOSCRIPT 4 6 58 448 547
6 <![CDATA[<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-P1CTFSEFND'); </script>]]>
58 <![CDATA[<script> $(document).ready(function(){ var dataano = $("#ano").val(); var datames = $("#mes").val(); var dataid = dataano+"-"+datames; $.ajax({ url: 'calendario.php', type: 'post', data: {dataid: dataid}, success: function(response){ $('.days').html(response); } }); $('#mes').change(function(e){ e.preventDefault(); var dataano = $("#ano").val(); var datames = $("#mes").val(); var dataid = dataano+"-"+datames; $.ajax({ url: 'calendario.php', type: 'post', data: {dataid: dataid}, success: function(response){ $('.days').html(response); } }); }); $('#ano').change(function(e){ e.preventDefault(); var dataano = $("#ano").val(); var datames = $("#mes").val(); var dataid = dataano+"-"+datames; $.ajax({ url: 'calendario.php', type: 'post', data: {dataid: dataid}, success: function(response){ $('.days').html(response); } }); }); // ------------------------------------------ Keypress ------------------------------- $(function(){ $("#dados").keyup(function(){ var tx = $.trim($('#dados').val()) var txtlen = tx.length if (txtlen>2){ $.ajax({ url : 'consulta_edob.php', /* URL que será chamada */ type : 'POST', /* Tipo da requisição */ data: $("#form").serialize(), /* dado que será enviado via POST */ dataType: 'json', /* Tipo de transmissão */ success: function(data){ $(".t1").html(data.t1); $(".edic").hide(); if(data.edobt == true){ $(".tedob").html('') var tedobbase = data.tedob var tedobbasetotal = data.tedobtotal $(".tedobtotal").html(tedobbasetotal) $(".tedob").html(tedobbase) $(".tedobt").show(); $(".tedob").show(); } else { $(".tedobt").hide(); $(".tedob").hide(); } } }); } else { $(".tedob").html('') $(".edic").show(); $(".tedobt").hide(400); $(".tedob").hide(400); } }); }); // ------------------------------------------ Keypress ------------------------------- $('input').keypress(function (e) { var code = null; code = (e.keyCode ? e.keyCode : e.which); return (code == 13) ? false : true; }); $(".iframe").colorbox({iframe:true, width:"80%", height:"90%"}); }); </script>]]>
448 <![CDATA[<script> (function () { var Contrast = { storage: 'contrastState', cssClass: 'contrast', currentState: null, check: checkContrast, getState: getContrastState, setState: setContrastState, toogle: toogleContrast, updateView: updateViewContrast }; window.toggleContrast = function () { Contrast.toogle(); }; Contrast.check(); function checkContrast() { this.updateView(); } function getContrastState() { return localStorage.getItem(this.storage) === 'true'; } function setContrastState(state) { localStorage.setItem(this.storage, '' + state); this.currentState = state; this.updateView(); } function updateViewContrast() { var body = document.body; if (!body) return; if (this.currentState === null) this.currentState = this.getState(); if (this.currentState) body.classList.add(this.cssClass); else body.classList.remove(this.cssClass); } function toogleContrast() { this.setState(!this.currentState); } })(); </script>]]>
547 <![CDATA[<script> $(document).ready(function () { //localStorage.removeItem('pureJavaScriptCookies'); (() => { if (!localStorage.pureJavaScriptCookies) { document.querySelector(".box-cookies").classList.remove('hide'); } const acceptCookies = () => { document.querySelector(".box-cookies").classList.add('hide'); localStorage.setItem("pureJavaScriptCookies", "accept"); }; const btnCookies = document.querySelector(".btn-cookies"); btnCookies.addEventListener('click', acceptCookies); })(); }); </script>]]>