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

Sites Pertecentes a (o) PB

Endereço Nota Erros Avisos

www.pocodantas.pb.gov.br/pagina/acompanhe-sua-solici
tacao

91.91 7 91
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 1570 1640
1570 <![CDATA[<script> var token = 'b9UpWU9O6ltarC5IUQaoGlKwPrX9uD4zpK7K6KIr'; $('button[id="btn-submit"]').on('click', function () { var protocol = $('input[name="protocol"]').val(); $('#progress').empty(); $('p[id="error"]').empty(); if(check_string($("#protocol")) === false){ return; }else{ $.ajax({ type: 'POST', url: "https://www.pocodantas.pb.gov.br/cms/ajax/get/information/by/protocol", data: {_token: token, protocol: protocol}, beforeSend: function () { $('#progress').append("<p class='text-muted'>Carregando...</p>"); $('button[id="btn-submit"]').prop('disabled', 'true'); $('ul[id="list_answers"]').empty(); }, success: function (response) { var data = response.created_at.split('-'); var dia = data[2].split(' '); $('#progress').empty(); $('button[id="btn-submit"]').removeAttr("disabled"); $('table[id="info_details"]').css('display', 'table'); if (response.status_id == 1) { $('th[id="status"]').empty(); $('th[id="status"]').html('EM TRAMITAÇÃO'); $('tr[id="thead"]').css('background-color', '#FDC02F'); } else if (response.status_id == 2) { $('th[id="status"]').empty(); $('th[id="status"]').html('ATENDIDO'); $('tr[id="thead"]').css('background-color', '#30A64A'); } else if (response.status_id == 4) { $('th[id="status"]').empty(); $('th[id="status"]').html('PRORROGADO'); $('tr[id="thead"]').css('background-color', '#25A2B7'); } else if (response.status_id == 3) { $('th[id="status"]').empty(); $('th[id="status"]').html('INDEFERIDO'); $('tr[id="thead"]').css('background-color', '#DA3849'); } $('td[id="protocol"]').empty(); $('td[id="protocol"]').html(response.protocol); $('td[id="person"]').empty(); $('td[id="person"]').html(response.person.name); $('td[id="created_at"]').empty(); $('td[id="created_at"]').html(dia[0] + '/' + data[1] + '/' + data[0] + ' ' + dia[1]); $('td[id="request"]').empty(); $('td[id="request"]').html(response.request); }, error: function (error) { $('ul[id="list_answers"]').empty(); $('button[id="btn-submit"]').removeAttr("disabled"); $('#progress').empty(); $('p[id="error"]').empty(); $('p[id="error"]').html('Não foi possível encontrar o pedido solicitado.'); } }); } }); </script>]]>
1640 <![CDATA[<script> var token = 'b9UpWU9O6ltarC5IUQaoGlKwPrX9uD4zpK7K6KIr'; $('button[id="btn-submit"]').on('click', function () { var protocol = $('input[name="protocol"]').val(); $('table[id="info_details"]').css('display', 'none'); if(check_string($("#protocol")) === false){ return; }else { $.ajax({ type: 'POST', url: "https://www.pocodantas.pb.gov.br/cms/ajax/get/answer/by/information", data: {_token: token, protocol: protocol}, success: function (response) { $('ul[id="list_answers"]').empty(); $('button[id="btn-submit"]').removeAttr("disabled"); $('ul[id="list_answers"]').append('<li class="list-group-item list-group-item-secondary">Resposta(s)</li><div id="answers"></div>'); $.each(response, function (i, val) { var data = val.answer.created_at.split('-'); var dia = data[2].split(' '); $('div[id="answers"]').append('<li class="list-group-item"><div class="row"><div class="col-md-3 text-muted py-1"><b>Respondido em: </b></div><div class="col-md-9 text-muted">' + dia[0] + '/' + data[1] + '/' + data[0] + ' ' + dia[1] + '</div></div><div class="row"><div class="col-md-3 text-muted py-1"><b>Resposta: </b> </div><div class="col-md-9 text-muted " >' + val.answer.answer + '</div></div><div id="archives-' + val.answer.id + '"></div></li>'); $('#archives-' + val.answer.id).html(val.view); }); }, error: function (error) { $('ul[id="list_answers"]').empty(); $('button[id="btn-submit"]').removeAttr("disabled"); } }); } }); </script>]]>