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

Sites Pertecentes a (o) MG

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 11 73 74 107 112 178 293 324 397 470 834 837
73 <![CDATA[<script type="text/javascript">jQuery.noConflict();</script>]]>
74 <![CDATA[<script type="text/javascript"> jQuery(document).on("mobileinit",function(){ jQuery.mobile.pageLoadErrorMessage = "Um erro aconteceu, tente novamente."; jQuery.mobile.loader.prototype.options.text = "Carregando..."; jQuery.mobile.loader.prototype.options.textVisible = true; jQuery.mobile.loader.prototype.options.theme = "a"; jQuery.mobile.loader.prototype.options.html = ""; }); </script>]]>
107 <![CDATA[<script type="text/javascript"> jQuery(document).bind("contextmenu",function(event){ return true; }); </script>]]>
112 <![CDATA[<script type="text/javascript"> var validNavigation = false; function wireUpEvents() { window.onbeforeunload = function() { if (!validNavigation) { return ''; } }; } jQuery(document).ready(function(){ jQuery(document).bind('keypress', function(event) { if (event.keyCode == 116){ validNavigation = true; } }); jQuery("input[type='text']").bind("change", function(event) { validNavigation = false; }); jQuery("select").bind("change", function(event) { validNavigation = false; jQuery.mobile.activePage.focus(); }); jQuery("a").bind("vclick", function(event) { //event.preventDefault(); validNavigation = true; //return false; }); jQuery("form").bind("submit", function(event) { validNavigation = true; }); jQuery("input[type=submit]").bind("vclick", function(event) { //event.preventDefault(); validNavigation = true; //return false; }); wireUpEvents(); }); var RecaptchaOptions = { theme : 'red', lang: 'pt', callback: function(){ jQuery("#container_recaptcha_a").find('a').removeClass("ui-link"); jQuery("#container_recaptcha_a").find('a').attr("data-role","none"); jQuery("#recaptcha_response_field").removeClass("ui-input-text ui-body-a"); jQuery("#recaptcha_response_field").attr("data-role","none"); jQuery(".recaptcha_input_area").find("div").removeClass("ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-a"); jQuery(".recaptcha_input_area").find("div").attr("data-role","none"); jQuery("#recaptcha_image").css('line-height', '110%'); } }; jQuery(document).ready(function($){ var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/); if (agentID) { jQuery("#footer_container").hide(); } else { jQuery("#footer_container").show(); } }); </script>]]>
178 <![CDATA[<script type="text/javascript"> jQuery(window).load(function(){ try{ if(Recaptcha){ Recaptcha.reload("t"); } }catch(ex){ } }); // Desabilita o clique duplo no menu. jQuery(document).ready(function(){ jQuery("*").dblclick(function(e){ e.preventDefault(); }); }); </script>]]>
293 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#alertamensagem").find("a:first").bind("vclick",function(event){ event.preventDefault(); var collapsible = jQuery("#alertamensagem"); var collapsed = collapsible.collapsible("option","collapsed"); //se estiver aberto, entao fechar-lo!!! if( collapsed == false ){ jQuery("#errosPlaceholder").fadeOut("slow"); collapsible.collapsible("option","collapsed",true); }else{ collapsible.collapsible("option","collapsed",false); } return false; }); }); </script>]]>
324 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function(){ var btnReset = jQuery("#limpar"); btnReset.bind("vclick",function(event){ event.preventDefault(); jQuery("#formulario").get(0).reset(); return false; }); var btnSubmit = jQuery("#submit"); btnSubmit.bind("vclick",function(event){ jQuery(this).addClass("ui-disabled"); jQuery(".ui-loader").loader("resetHtml"); jQuery(".ui-loader").loader("option","text","Carregando..."); jQuery(".ui-loader").loader("show"); //jQuery("body").addClass("ui-loading"); event.preventDefault(); var formulario = jQuery("#formulario"); formulario.validate(); if(formulario.valid()){ jQuery("#formulario").submit(); //prevents too many submits. jQuery(this).addClass("ui-disabled"); return true; }else{ // Controlando abertura do painel de mensagem de alertas jQuery("#errosContainerServidor").remove(); jQuery("#errosPlaceholder").show(); jQuery(this).removeClass("ui-disabled"); jQuery(".ui-loader").loader("hide"); //jQuery("body").removeClass("ui-loading"); return false; } }); jQuery('#formulario').validate({ rules: { recaptcha_response_field: "required" }, messages: { recaptcha_response_field : "O campo 'Recaptcha' é de preenchimento obrigatório." }, errorContainer: jQuery('#errosContainer'), errorLabelContainer: jQuery('#errosContainer ul'), wrapper: 'li', showErrors:function(errorMap, errorList){ var collapsible = jQuery("#alertamensagem"); var collapsed = collapsible.collapsible("option","collapsed"); if(errorList.length != 0){ this.defaultShowErrors(); collapsible.trigger("expand"); jQuery("html,body").animate({ scrollTop: 0 }, "slow"); }else{ //se estiver aberto, entao fechar-lo!!! if( collapsed == false ){ jQuery("#errosPlaceholder").fadeOut("slow"); } } } }); }); </script>]]>
397 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function(){ var containerTipoIdentificador = jQuery("#container_tipo_identificador"); containerTipoIdentificador.css('display', 'none'); var containerIdentificador = jQuery("#container_identificador"); containerIdentificador.css('display', 'none'); var nossoNumero = jQuery("#nossoNumero"); nossoNumero.attr("maxlength", "13"); nossoNumero.val(""); jQuery("#formulario").validate(); jQuery("#nossoNumero").rules("add",{ required : true , validarTamanhoNossoNumero: true , messages:{ required : "O campo 'Número do Documento' é de preenchimento obrigatório." } }); jQuery.validator.addMethod("validarTamanhoNossoNumero", function(value, element) { if(value.length != 13){ return false; } return true; },"O campo 'Número do Documento' deve ter 13 posições."); nossoNumero.keydown(function(event){ return isDigitsOnKeyDownEvent(this,event); }); nossoNumero.keyup(function(event){ return isDigitsOnKeyUpEvent(this,event); }); //resolver problema de copia arraste mouse nossoNumero.bind("focusout",function(){ jQuery(this).val(this.value.match(/[0-9]*/)); }); nossoNumero.bind("drop", function(event){ event.preventDefault(); return false; }); var orgaoPublico = jQuery("#orgaoPublico"); orgaoPublico.val(""); orgaoPublico.selectmenu("refresh",true); jQuery("#formulario").validate(); jQuery("#orgaoPublico").rules("add",{ required: true , messages: { required : "O campo 'Orgão Público' é de preenchimento obrigatório." } }); var btnSubmit = jQuery("#submit"); btnSubmit.attr('target', '_new'); btnSubmit.bind("vclick",function(event){ event.preventDefault(); var formulario = jQuery("formulario"); formulario.submit(); return false; }); }); </script>]]>
470 <![CDATA[<script type="text/javascript"> create_selectmenu_dialog_filterable("orgaoPublico","Filtrar orgãos públicos...",true); </script>]]>
834 <![CDATA[<script type="text/javascript"> jQuery("#recaptcha_area").css({"margin-left":"auto","margin-right":"auto","text-align":"center"}); </script>]]>
837 <![CDATA[<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#comandoRetornar").bind("vclick",function(event){ event.preventDefault(); var action = jQuery("#actionRetornar").val(); var formulario = jQuery("#formulario"); if(formulario.length > 0){ formulario.validate().cancelSubmit = true; formulario.attr('action', action); formulario.submit(); } return false; }); jQuery("#comandoHome").bind("vclick",function(event){ var link = jQuery(this); link.attr("href","/daeonline/Home.action"); return true; }); }); </script>]]>