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

Sites Pertecentes a (o) AM

Endereço Nota Erros Avisos

afi.sefaz.am.gov.br/portfolio/detalhe.asp?id=89

80.8 18 62
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 2 40 545
40 <![CDATA[<script> function exibir(id){ if ($("#"+id).css("display") == 'none') { $("#"+id).css("display",""); }else{ $("#"+id).css("display","none"); } } </script>]]>
545 <![CDATA[<script type="text/javascript"> var inputText; var $matching = $(); // Delay function var delay = (function(){ var timer = 0; return function(callback, ms){ clearTimeout (timer); timer = setTimeout(callback, ms); }; }); $(function () { var filterList = { init: function () { // MixItUp plugin // http://mixitup.io $('#portfoliolist').mixItUp({ selectors: { target: '.portfolio', //filter: '.filter' }, load: { filter: '.todos' } }); } }; // Run the show! filterList.init(); }); $("#frm-buscar").keyup(function(e){ // Delay function invoked to make sure user stopped typing inputText = $("#frm-buscar").val().toLowerCase(); // Check to see if input field is empty if ((inputText.length) > 0) { $( '.portfolio').each(function() { $this = $("this"); // add item to be filtered out if input text matches items inside the title if($(this).find('.busca').text().toLowerCase().match(inputText)) { $matching = $matching.add(this); } else { // removes any previously matched item $matching = $matching.not(this); } }); $("#portfoliolist").mixItUp('filter', $matching); } else { // resets the filter to show all item if input is empty $("#portfoliolist").mixItUp('filter', '.todos'); } }); $(".portfolio").click(function(e){ var titulo = $(this).find('.text-title-in').text(); var telefone = $(this).find('.telefone').html(); var email = $(this).find('.email').html(); var chat = $(this).find('.chat').html(); $('#exampleModalCenter').find('.modal-title').text(titulo); if (titulo != "Protocolo") { $('#exampleModalCenter').find('.linha-telefone').hide(); $('#exampleModalCenter').find('.linha-email').hide(); $('#exampleModalCenter').find('.linha-chat').hide(); $('#exampleModalCenter').find('.linha-agencias').hide(); $('#exampleModalCenter').find('.linha-fiscalizacao').hide(); if (titulo == "Agências do Interior") { $('#exampleModalCenter').find('.linha-agencias').show(); } else if (titulo == "Gerência de Fiscalização - GFIS") { $('#exampleModalCenter').find('.linha-fiscalizacao').show(); } else if (titulo == "Serviços Cadastrais" || titulo == "IPVA" || titulo == "Débitos e Parcelamentos" || titulo == "ITCMD" || titulo == "NF-e Avulsa" || titulo == "Secretaria Executiva de Orçamento") { $('#exampleModalCenter').find('.linha-telefone').show(); $('#exampleModalCenter').find('.linha-email').show(); $('#exampleModalCenter').find('.linha-chat').show(); $('#exampleModalCenter').find('.telefone').html(telefone); $('#exampleModalCenter').find('.email').html(email); $('#exampleModalCenter').find('.chat').html(chat); } else { $('#exampleModalCenter').find('.linha-telefone').show(); $('#exampleModalCenter').find('.linha-email').show(); $('#exampleModalCenter').find('.telefone').html(telefone); $('#exampleModalCenter').find('.email').html(email); } $('#exampleModalCenter').modal('show'); } }); function protocolar(id,nome,sigla){ opcoesProcesso = $.parseJSON("{\"tipoCadastro\":\"\",\"jaCarregouApplet\":true,\"secretaria\":{\"id\":\"1\",\"cdGrupo\":\"PROTOCOLO\",\"unSigla\":\"014101\",\"sigla\":\"SEFAZ\",\"nome\":\"SECRETARIA DE ESTADO DA FAZENDA\"},\"assunto\":{\"id\":"+id+",\"assunto\":"+sigla+",\"nome\": \""+nome+"\"},\"solicitacao\":\"\"}"); window.open("https://protocolovirtual.amazonas.am.gov.br/novoAgendamento.asp?assunto="+id,"_blank"); } function openModal(id){ $("#descricao_servico").html($("#"+id).val()); } function setTipo(numero){ if(numero.length==11){ $("#tipo2").val(3); }else{ $("#tipo2").val(2); } } </script>]]>