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

Sites Pertecentes a (o) PR

Endereço Nota Erros Avisos

pmp.pr.gov.br/IluminacaoPublica/views/IluminaPalmas.
php

77.61 13 45
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 10 105 110 117 123 129 135 141 147 163 168
1.1.4 Presença de CSS(s) interno 1 20
1.1.6 Presença de javascript(s) interno 4 57 77 202 375
105 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
110 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
117 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
123 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
129 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
135 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
141 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
147 <![CDATA[<b style="color:red">(Campo Obrigatório)</b>]]>
163 <![CDATA[<b style="color:blue">(Campo não Obrigatório)</b>]]>
168 <![CDATA[<b style="color:blue">(Campo não Obrigatório)</b>]]>
20 <![CDATA[<style> #progress { position:relative; width:100%; border: 1px solid #ddd; padding: 1px; border-radius: 3px;text-align: center; } #progress .progress-text { position:absolute; z-index:2; right:0; color:black; text-align: center; } .bar { background-color: #B4F5B4; width:0%; height:20px; border-radius: 3px; color:#black; text-align: center; } hr{ border-color:#aaa; box-sizing:border-box; width:100%; } span.infoFormulario{ float: right; color: red; font-size: 13px; } #map-canvas{ overflow:hidden; padding-bottom:56.25%; position:relative; height:0; } </style>]]>
57 <![CDATA[<script> function removeArquivos(id){ //alert(id); //$('#id').val(id); //$('#action').val('finalizar'); $("#atendimento"+id).submit(); } </script>]]>
77 <![CDATA[<script> $(function () { $('#informacaoSistema').DataTable( { "language": { "url": "../assets/css/Portuguese-Brasil.json" } } ); }) </script>]]>
202 <![CDATA[<script> function removeArquivos(id){ $('#myModal').modal('show'); $('#ind').val(id); $('#action').val('removePDF2'); $("#sample_form2" ).submit(); } $(document).ready(function(){ let inputFile = $('#files'); let button = $('#myButton'); button.click(function() { inputFile.click(); }); // }); $("#telefone").bind('input propertychange',function(){ var texto = $(this).val(); texto = texto.replace(/[^\d]/g, ''); if (texto.length > 0){ texto = "(" + texto; if (texto.length > 3){ texto = [texto.slice(0, 3), ") ", texto.slice(3)].join(''); } if (texto.length > 12){ if (texto.length > 13) texto = [texto.slice(0, 10), "-", texto.slice(10)].join(''); else texto = [texto.slice(0, 9), "-", texto.slice(9)].join(''); } if (texto.length > 15) texto = texto.substr(0,15); } $(this).val(texto); }) $(".btn-toggle").click(function(e){ e.preventDefault(); el = $(this).data('element'); $(el).toggle(); }); $('#cadastrarSolicitacao2').on('click', function(event){ event.preventDefault(); var fd = new FormData(); $.each($("input[type='file']")[0].files, function(i, file) { fd.append('file', file); }) var nome = $("#solicitante").val(); var endereco = $("#endereco").val(); var cpf = $("#cpf").val(); var celular = $("#telefone").val(); var bairro = $("#bairro").val(); var numeroPoste = $("#numeroPoste").val().trim(); var pontoReferencia = $("#pontoReferencia").val().trim(); var arquivos = $("#files").val(); var idDefeito = $("#idDefeito").val(); var lat = $("#lat").val(); //alert(pontoReferencia); if(!idDefeito){ $("#idDefeito").val(""); $("#idDefeito").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#idDefeito").focus(); }else if(!nome){ $("#solicitante").val(""); $("#solicitante").attr("placeholder", "CAMPO OBRIGATÓRIO!"); $("#solicitante").addClass('has-warning has-feedback'); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); $("#solicitante").focus(); }else if(!cpf){ $("#cpf").val(""); $("#cpf").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#cpf").focus(); }else if(!celular){ $("#telefone").val(""); $("#telefone").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#telefone").focus(); }else if(!endereco){ $("#endereco").val(""); $("#endereco").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#endereco").focus(); }else if(!bairro){ $("#bairro").val(""); $("#bairro").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#bairro").focus(); }else if(!numeroPoste){ $("#numeroPoste").val(""); $("#numeroPoste").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#numeroPoste").focus(); }else if(!pontoReferencia){ $("#pontoReferencia").val(""); $("#pontoReferencia").attr("placeholder", "CAMPO OBRIGATÓRIO!"); // $("#iconRemove").removeClass('glyphicon-ok form-control-feedback'); // $("#iconRemove").addClass('glyphicon-warning-sign form-control-feedback'); // $("#iconRemove").css("display", "block"); // $("#descricaoForm").removeClass('has-success has-feedback'); // $("#descricaoForm").addClass('has-warning has-feedback'); $("#pontoReferencia").focus(); }else{ $("#sample_form2").submit(); $.ajax({ url: '.', type: 'POST', processData: false, contentType: false, data: fd, xhr: function() { var xhr = $.ajaxSettings.xhr(); xhr.upload.addEventListener('progress', function(ev) { $('#myModal4').modal({backdrop: 'static', keyboard: false}) //$('#progress').removeClass('hidden'); $('.bar').css('width', (ev.loaded/(ev.total/100))+'%'); $('#progress .progress-text').text(Math.round(ev.loaded/(ev.total/100))+'%'); }, false); return xhr; }, beforeStart: function() { $('.bar').css('width', '0%'); $('#progress .progress-text').text('0%'); }, success: function() { $('#progress').addClass('hidden'); } }); } }); function formatarCampo(campoTexto) { if (campoTexto.value.length <= 11) { campoTexto.value = mascaraCpf(campoTexto.value); } else { campoTexto.value = mascaraCnpj(campoTexto.value); } } function retirarFormatacao(campoTexto) { campoTexto.value = campoTexto.value.replace(/(\.|\/|\-)/g,""); } function mascaraCpf(valor) { return valor.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/g,"\$1.\$2.\$3\-\$4"); } function mascaraCnpj(valor) { return valor.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/g,"\$1.\$2.\$3\/\$4\-\$5"); } </script>]]>
375 <![CDATA[<script type="text/javascript"> //<![CDATA[ // global "map" variable //var map = null; var marker = null; //var imagem = new GGroundOverlay("img/cemiterio.JPG", limites_imagem); var infowindow = new google.maps.InfoWindow({ size: new google.maps.Size(350, 800) }); // A function to create the marker and set up the event window function function createMarker(latlng, name, html) { var contentString = html; var data_quebrada = html.split(','); var marker = new google.maps.Marker({ position: latlng, map: map, zIndex: Math.round(latlng.lat() * -100000) << 5 }); google.maps.event.addListener(marker, 'click', function () { //infowindow.setContent("<b>LOCALIZAÇÃO:</b><br>latitude: " + data_quebrada[0].replace(/\(/g, "") + '<br>longitude:' + data_quebrada[1].replace(/\)/g, "")); document.getElementById('lat').value = data_quebrada[0].replace(/\(/g, ""); document.getElementById('lng').value = data_quebrada[1].replace(/\)/g, ""); //infowindow.open(map, marker); }); google.maps.event.trigger(marker, 'click'); return marker; } function initialize(lat, lon) { // create the map //alert(lat); //var nome = al //lat = "-26.483415732615235"; //lon = "-51.992383726695294"; //alert(nome); var myCenter = new google.maps.LatLng(lat, lon); var myOptions = { zoom: 17, // center: new google.maps.LatLng(lat, lon), center: myCenter, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU}, navigationControl: true, mapTypeId: google.maps.MapTypeId.SATELLITE } var imageBounds = new google.maps.LatLngBounds( new google.maps.LatLng(-26.481070, -51.985363), new google.maps.LatLng(-26.479712, -51.983318) ); // overlay = new google.maps.GroundOverlay( // 'https://cemiterio.pmp.pr.gov.br/img/cemiterio.png', // imageBounds,{clickable:false}); //overlay = new google.maps.GroundOverlay.setClickable(true); map = new google.maps.Map(document.getElementById("map-canvas"), myOptions); var marker = new google.maps.Marker({ position: myCenter, }); //overlay.setMap(map); marker.setMap(map); //var infowindow = new google.maps.InfoWindow({ // content:document.getElementById('nome').value; // }); google.maps.event.addListener(marker, 'click', function () { infowindow.setContent(document.getElementById('nome').value); infowindow.open(map, marker); }); google.maps.event.addListener(map, 'click', function () { infowindow.close(); }); //google.maps.event.addListener(map, 'center_changed', centerChanged); google.maps.event.addListener(map, 'click', function (event) { //call function to create marker if (marker) { marker.setMap(null); marker = null; } marker = createMarker(event.latLng, "name", "" + event.latLng); // marker = createMarker(event.latLng, "name", "<b>Location</b><br>"+event.latLng); }); } </script>]]>