Sites Pertecentes a (o) SP
Endereço | Nota | Erros | Avisos |
---|---|---|---|
www.guaranidoeste.sp.gov.br/?pag=T1RVPU9EZz1PV0k9T1R
|
55.43 | 106 | 222 |
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 | 9 | 151 361 469 554 620 667 686 741 1315 |
151 | <![CDATA[<script> $(document).ready(function(){ //***********************************************************************************Faz o aumentar e diminuir a fonte********************* function aumentaFonte(sinal) { if(sinal == '+') { novoTamanho = parseInt(sessionStorage.fonte_atual)+ 2; } else { novoTamanho = parseInt(sessionStorage.fonte_atual)- 2; } if(novoTamanho >= 12 && novoTamanho <= 18){ sessionStorage.fonte_atual = novoTamanho; $("*").css('font-size' , novoTamanho); } } if(!sessionStorage.fonte_atual > 0){ sessionStorage.fonte_atual = $('body').css('font-size'); } $('.acess-texto').click(function(){ aumentaFonte($(this).attr('data-sinal')) }); //*********************************************************************************************************Fim acessibilida fonte********** //***********************************************************************************Contraste********************************************* function mudaContraste(contraste){ if(typeof sessionStorage.contraste != "undefined"){ var padrao = JSON.parse(sessionStorage.contrastePadrao); } if(contraste == 1){ location.reload(); $('body').css('background-color' , padrao.body ); $('.navbar-default').css('background-color' , padrao.navbardefault ); $('header').css('background-color' , padrao.header ); $('.bgAzulescuro').css('background-color' , padrao.bgAzulescuro ); $('.tituloBox ').css('color' , padrao.tituloBox ); $('.textoBox ').css('color' , padrao.textoBox ); $('.box').css('background' , padrao.box ); $('.box2').css('background' , padrao.box2 ); $('.mapa_site').css('background-color' , padrao.mapa_site ); $('.copy').css('background-color' , padrao.copy ); $('.panel-heading').css('background-color' , padrao.panelheading ); $('.border5pxAzul').css('border-top' , padrao.border5pxAzul ); $('#areaMeioPag *').css('color' , padrao.areaMeioPag ); $('.linksNoticias ').css('color' , padrao.linksNoticias ); $('#legendas a').css('color' , padrao.legendas_a ); $('.listaVereadores').css('color' , padrao.listaVereadores ); $('.dropdown-menu').css('background' , padrao.dropdownmenu ); $('.titulo_noticia').css('color' , padrao.tituloNoticia ); $('.subtitulo_noticia').css('color' , padrao.subtituloNoticia ); $('.chamada_noticia').css('color' , padrao.chamadaNoticia ); $('.tituloPagina').css('color' , padrao.tituloPagina ); $('.listaUltimasGalerias div').css('color' , padrao.listaUltimasGalerias ); $( "tr" ).css( "background-color", "" ); $( ".table-striped > tbody > tr:nth-of-type(odd)" ).css( "background-color", "" ); $('.tiposBuscador').css('color' , padrao.tiposBuscador ); $('.dropdown-toggle').css('color' , padrao.dropdown-toggle ); $('.paddingLeft0px').css('color' , padrao.paddingLeft0px); $('.breadcrumb').css('color' , padrao.breadcrumb); $('.form-control').css('color' , padrao.form-control); $('.pagination > li > a, .pagination > li > span').css("background-color", ""); $('.list-group-item').css("background-color", ""); $('.numberDiaAcess').css('color', padrao.numberDiaAcess); $('.legendaAcess').css('color', padrao.legendaAcess); $('img').each(function(){ //percorre todas imagens da tela e se tiver image de contraste retorna para normal if($(this).attr("data-contraste") == 1){//adicionar na tag da imagem que tiver outra de contraste var arraySrc = $(this).attr("src").split('/'); Newarray = arraySrc.filter((value)=>value!='contraste'); neWarraySrc = Newarray.join("/"); $(this).attr("src" , neWarraySrc ); } }); }else if(contraste == 0){ $('body').css('background-color' ,'#000'); $('.navbar-default').css('background-color' ,'transparent' ); $('header').css('background-color' , '#585858' ); $('.bgAzulescuro').css('background-color' ,'#000' ); $('.tituloBox').css('color' ,'yellow' ); $('.textoBox').css('color' ,'yellow' ); $('.box').css('background' ,'transparent' ); $('.box2').css('background' ,'transparent' ); $('.mapa_site').css('background-color' , '#585858' ); $('.copy').css('background-color' ,'#000' ); $('.panel-heading').css('background-color' ,'#585858' ); $('.border5pxAzul').css('border-top' ,'0' ); $('#areaMeioPag *').css('color' ,'#FFF' ); $('.linksNoticias ').css('color' ,'#FFF' ); $('#legendas a').css('color' ,'#FFF' ); $('.listaVereadores').css('color' ,'#FFF' ); $('.titulo_noticia').css('color' ,'#FFF' ); $('.subtitulo_noticia').css('color' ,'#FFF' ); $('.chamada_noticia').css('color' ,'#FFF' ); $('.listaUltimasGalerias div').css('color' ,'yellow' ); $('.tituloPagina').css('color' ,'#FFF' ); $('.dropdown-menu').css('background-image', 'url( "https://www.weblinesistemas.com/responsivo/imagens/submenu_preto.png" )'); $( "tr" ).css( "background-color", "#000000" ); $( ".table-striped > tbody > tr:nth-of-type(odd)" ).css( "background-color", "#42545d" ); $('.tiposBuscador').css('color' , '#FFF'); $('.btn-default').css('color' , '#333'); $('.dropdown-toggle').css('color' , 'white' ); $('.paddingLeft0px').css('color' , '#FFF'); $('.breadcrumb').css('background-color' , 'transparent'); $('.form-control').css('color' , '#555'); $('.pagination > li > a, .pagination > li > span').css("background-color", "transparent"); $('.list-group-item').css("background-color", "transparent"); $('.numberDiaAcess').css('color', '#FFF'); $('.legendaAcess').css('color', '#FFF'); $('img').each(function(){ //percorre todas imagens da tela e se tiver image de contraste retorna para normal if($(this).attr("data-contraste") == 1){//adicionar na tag da imagem que tiver outra de contraste var arraySrc = $(this).attr("src").split('/'); arraySrc.splice( arraySrc.length-1 ,0 ,'contraste'); neWarraySrc = arraySrc.join("/"); $(this).attr("src" , neWarraySrc ); } }); } } if(sessionStorage.contraste == 0){ mudaContraste(sessionStorage.contraste); } if(typeof sessionStorage.contraste == "undefined"){ sessionStorage.contraste = 1; //inicializa a session sessionStorage.contrastePadrao = JSON.stringify({ body:$('body').css('background-color'), header:$('header').css('background-color'), navbardefault:$('.navbar-default').css('background-color'), bgAzulescuro:$('.bgAzulescuro').css('background-color'), tituloBox :$('.tituloBox ').css('color'), textoBox :$('.textoBox ').css('color'), box :$('.box').css('background'), box2 :$('.box2').css('background'), mapa_site :$('.mapa_site').css('background-color'), border5pxAzul :$('.border5pxAzul').css('border-top'), panelheading :$('.panel-heading ').css('background-color'), copy :$('.copy ').css('background-color'), areaMeioPag :$('#areaMeioPag ').css('color'), linksNoticias :$('.linksNoticias ').css('color'), legendas_a : $('#legendas a').css('color'), listaVereadores : $('.listaVereadores').css('color'), dropdownmenu : $('.dropdown-menu').css('background'), tituloNoticia : $('.titulo_noticia').css('color'), subtituloNoticia : $('.subtitulo_noticia').css('color'), chamadaNoticia : $('.chamada_noticia').css('color'), listaUltimasGalerias : $('.listaUltimasGalerias div').css('color'), tituloPagina : $('.tituloPagina').css('color'), }); //Obj com as tags para mudar a cor e guardar o valor padrao. } $('.acess-contraste').click(function(){ sessionStorage.contraste = sessionStorage.contraste == 1 ? 0 : 1 ; mudaContraste(sessionStorage.contraste); }); //*********************************************************************************************************Fim Contraste********** }); </script>]]> |
361 | <![CDATA[<script> /*$('#carouselTopo').carousel();*/ </script>]]> |
469 | <![CDATA[<script> $(document).ready(function(){ $('.click-link').click(function(){ window.location = $(this).data('link'); }) }) </script>]]> |
554 | <![CDATA[<script> $(document).ready(function(){ // Envia o form******************************************************************************************************************************************************* var form = $('#frm_cad_erro'); form.submit(function(event){ event.preventDefault(); $('#bot_cad_erro').attr('disabled' ,'false'); if($('#nome-erro').val() == ''){ $('.alert').addClass('alert-warning'); $('.alert').html('<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a><strong>Aviso!</strong> Campo obrigat�rio n�o preenchido!').fadeIn().delay(6000).fadeOut(); $('#bot_cad_erro').removeAttr('disabled'); return false; }else if($('#email-erro').val() == ''){ $('.alert').addClass('alert-warning'); $('.alert').html('<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a><strong>Aviso!</strong> Campo obrigat�rio n�o preenchido!').fadeIn().delay(6000).fadeOut(); $('#bot_cad_erro').removeAttr('disabled'); return false; }else if($('#descricao-email').val() == ''){ $('.alert').addClass('alert-warning'); $('.alert').html('<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a><strong>Aviso!</strong> Campo obrigat�rio n�o preenchido!').fadeIn().delay(6000).fadeOut(); $('#bot_cad_erro').removeAttr('disabled'); return false; } $.ajax({ url: $(this).attr('action'), method:'POST', dataType:'json', data:{ nomeEnv:$('#nome-erro').val() , emailEnv:$('#email-erro').val() , descricaoEnv:$('#descricao-email').val() , idEnvAmigo :$('#id-env-amigo').val() , tipo_envio:'envio-erro-noticia' }, beforeSend: function(){ form.prepend( $('<p><span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> Enviando email...</p>').delay(6000).fadeOut()).fadeIn() ; } }).done(function(data){ if(data.sucess){ $('.alert').addClass('alert-success'); $('.alert').html('<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a><strong>Sucesso!</strong> Mensagem enviada com sucesso!!').fadeIn().delay(6000).fadeOut(); $('#nome-erro').val(''); $('#email-erro').val(''); $('#descricao-email').val(''); $('#bot_cad_erro').removeAttr('disabled'); }else{ $('.alert').addClass('alert-danger'); $('.alert').html('<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a><strong>Erro!</strong> Houve um erro ao enviar o email!').fadeIn().delay(6000).fadeOut(); $('#bot_cad_erro').removeAttr('disabled'); } }); }); //******************************************************************************************************************************************************************** }) </script>]]> |
620 | <![CDATA[<script> $(document).ready(function(){ //*******************************************************************************Mostra e esconde os forms ****************************************** $('#btn-open-form-env-not').click(function(){ $('#frm-env-erro').addClass('displaynone'); if($('#frm-env-noticia').hasClass( "displaynone" )){ $('#frm-env-noticia').removeClass('displaynone'); }else{ $('#frm-env-noticia').addClass('displaynone'); } }); $('#btn-open-form-env-erro').click(function(){ $('#frm-env-noticia').addClass('displaynone'); if($('#frm-env-erro').hasClass( "displaynone" )){ $('#frm-env-erro').removeClass('displaynone'); }else{ $('#frm-env-erro').addClass('displaynone'); } }); //***************************************************************************************************************************************************** }) </script>]]> |
667 | <![CDATA[<script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>]]> |
686 | <![CDATA[<script> $(document).ready(function() { var $lightbox = $('#lightbox'); $('[data-target="#lightbox"]').on('click', function(event) { var $img = $(this).find('img'), src = $img.attr('src'), alt = $img.attr('alt'), css = { 'maxWidth': $(window).width() - 100, 'maxHeight': $(window).height() - 100 }; $lightbox.find('.close').addClass('hidden'); $lightbox.find('img').attr('src', src); $lightbox.find('img').attr('alt', alt); $lightbox.find('img').css(css); }); $lightbox.on('shown.bs.modal', function (e) { var $img = $lightbox.find('img'); $lightbox.find('.modal-dialog').css({'width': $img.width()}); $lightbox.find('.close').removeClass('hidden'); }); }); </script>]]> |
741 | <![CDATA[<script> $(document).ready(function(){ $('#pag1').click(function(){ $('#form-escolha-busca').attr('action' ,'?pag=T0RNPU9UZz1PVFk9T0RnPU9EWT1OelU9T1RZPU9XUT1PVEk9T0dVPU9UUT1PR1U9WVRBPQ==' ); }); $('#pag2').click(function(){ $('#form-escolha-busca').attr('action' ,'?pag=T0RNPU9UZz1PVFk9T0RnPU9EWT1Oamc9T1dRPU9HRT1PVGM9T0dVPU9HTT1PVEU9T0dVPU4yST1PVFE9T1dFPVlUUT0=' ); }); $('#pag3').click(function(){ $('#form-escolha-busca').attr('action' ,'?pag=T0RNPU9UZz1PVFk9T0RnPU9EWT1Oamc9T1dRPU9HRT1PVGM9T0dVPU9HTT1PVEU9T0dVPU4yWT1ZVEU9WVRBPVlURT1ZVEk9WVRZPU9XVT1ZVGs9WVdNPVlUaz1PV0U9WVdNPQ==' ); }); }); </script>]]> |
1315 | <![CDATA[<script type="text/javascript"> (function () { "use strict"; var cookieAlert = document.querySelector(".cookiealert"); var acceptCookies = document.querySelector(".acceptcookies"); if (!cookieAlert) { return; } cookieAlert.offsetHeight; // Force browser to trigger reflow // Show the alert if we cant find the "acceptCookies" cookie if (!getCookie("acceptCookies")) { cookieAlert.classList.add("show"); } // When clicking on the agree button, create a 1 year // cookie to remember user's choice and close the banner acceptCookies.addEventListener("click", function () { setCookie("acceptCookies", true, 365); cookieAlert.classList.remove("show"); // dispatch the accept event window.dispatchEvent(new Event("cookieAlertAccept")); $.ajax({ url: "indexAjax.php?pag=T1RRPU9EUT1PR1k9T1dJPU9EWT1ObUk9T0RnPU9HUT1PVGc9T1dVPU5tVT1PV009T1dNPU9XRT1PVGc9T1RZPVlUUT0=", context: document.body }).done(function() { $( this ).addClass( "done" ); }); }); // Cookie functions from w3schools function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); var expires = "expires=" + d.toUTCString(); if(location.protocol == 'https:'){ document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=None;Secure"; }else{ document.cookie = cname + "=" + cvalue + ";" + expires + ";"; } } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) === ' ') { c = c.substring(1); } if (c.indexOf(name) === 0) { return c.substring(name.length, c.length); } } return ""; } })(); </script>]]> |