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

Sites Pertecentes a (o) SE

Endereço Nota Erros Avisos

dat.cbm.se.gov.br/Portal/simulador

80.13 5 78
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 5 72 77 224 231 475
72 <![CDATA[<script type="text/javascript"> if ('ontouchstart' in document.documentElement) document.write("<script src='/templateNew/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>"); </script>]]>
77 <![CDATA[<script type="text/javascript"> jQuery(function ($) { $(document).on('click', '.toolbar a[data-target]', function (e) { e.preventDefault(); var target = $(this).data('target'); $('.widget-box.visible').removeClass('visible');//hide others $(target).addClass('visible');//show target }); $('form .required label').after("<i class='fa fa-asterisk text-danger' data-rel='popover' data-trigger='hover' data-placement='right' title='Campo Obrigat�rio' data-original-title='Campo Obrigat�rio'></i>"); $('[data-rel=tooltip]').tooltip({container: 'body'}); $('[data-rel=popover]').popover({container: 'body'}); $('#num_processo').mask('99999999999999-9'); $('input[mask="lat"]').mask("-99.999999"); $('input[mask="long"]').mask("-99.999999"); $('input[mask="cpf"]').mask("99999999999"); $('#cpf_cnpj').mask("99999999999999"); $('input[mask="decimal"]').maskMoney({symbol: "", decimal: ".", thousands: ""}); $('input[mask="cnpj"]').mask("99999999999999"); $('input[mask="cep"]').mask("99999-999"); $('input[mask="data"]').mask("99-99-9999"); $('input[mask="hora"]').mask("99:99"); $('input[mask="tel1"]').mask("(99)9999-9999"); $('.date-picker').datepicker({ language: 'pt-BR', autoclose: true, format: 'dd-mm-yyyy' }); $('input[mask="tel"]').focusout(function () { var aux = $('input[mask="tel"]').val(); aux = aux.replace(/[^\d]+/g, ''); if (aux.length > 10) { $('input[mask="tel"]').mask("(99)99999-9999"); $('input[mask="tel"]').val(aux); } else if (aux.length <= 10) { $('input[mask="tel"]').mask("(99)9999-9999"); $('input[mask="tel"]').val(aux); } }); var cpf_cnpj = $('#cpf_cnpj'); cpf_cnpj.focusout(function () { var aux = cpf_cnpj.val(); aux = aux.replace(/[^\d]+/g, ''); if (aux.length > 11) { cpf_cnpj.mask("99999999999999"); cpf_cnpj.val(aux); } else if (aux.length <= 11) { cpf_cnpj.mask("99999999999"); cpf_cnpj.val(aux); } }); $('input[mask="tel"]').focusin(function () { var aux = $('input[mask="tel"]').val(); aux = aux.replace(/[^\d]+/g, ''); $('input[mask="tel"]').mask("(99)99999-9999"); }); cpf_cnpj.focusin(function () { var aux = cpf_cnpj.val(); aux = aux.replace(/[^\d]+/g, ''); cpf_cnpj.mask("99999999999999"); }); $('input[mask="certificado"]').focusout(function () { var aux = $('input[mask="certificado"]').val(); aux = aux.replace(/[^\d]+/g, ''); if (aux.length > 5) { $('input[mask="certificado"]').mask("99999999999999-9"); $('input[mask="certificado"]').val(aux); } else if (aux.length <= 5) { $('input[mask="certificado"]').mask("99999"); $('input[mask="certificado"]').val(aux); } }); $('input[mask="certificado"]').focusin(function () { $('input[mask="certificado"]').mask("99999999999999-9"); }); $('.chosen').chosen({width: '100%'}); $('.date-time').datetimepicker({ // format: 'DD/MM/YYYY h:mm',//use this option to display seconds icons: { time: 'fa fa-clock-o', date: 'fa fa-calendar', up: 'fa fa-chevron-up', down: 'fa fa-chevron-down', previous: 'fa fa-chevron-left', next: 'fa fa-chevron-right', today: 'fa fa-arrows ', clear: 'fa fa-trash', close: 'fa fa-times' } }).next().on(ace.click_event, function () { $(this).prev().focus(); }); }); window.Parsley .addValidator('cpfCnpj', { requirementType: 'string', validateString: function (value, requirement) { return valida_cpf_cnpj(value); } }); </script>]]>
224 <![CDATA[<script type="text/javascript"> try { ace.settings.loadState('main-container') } catch (e) { } </script>]]>
231 <![CDATA[<script type="text/javascript"> try { ace.settings.loadState('sidebar') } catch (e) { } </script>]]>
475 <![CDATA[<script> function calcularAnalise() { var coeficiente = 0; var cargaIncendio = 0; var area = $('#areaA').val(); var valUfp = $('#ValorUFp').val(); var fatorrisco = $('#fatorRiscoA').val(); var valor = 0; var qtdUFP = 0; if(area <= 750) { coeficiente = 0.03; } if(area > 750 && area <= 10000){ coeficiente = 0.02; } if(area > 10000){ coeficiente = 0.01; } qtdUFP = 3 + (area*fatorrisco*coeficiente); valor = valUfp * qtdUFP; $('#totalA').text(new Intl.NumberFormat('pt-BR', {style: 'currency', currency: 'BRL'}).format(valor)); $('#quantiUFP').text(qtdUFP); } function calcularVistoria() { var coeficiente = 0; var cargaIncendio = 0; var area = $('#areaV').val(); var valUFPV = $('#ValorUFPVIS').val(); var fatorRisco = $('#fatorRiscoV').val(); var botijoes = $('#botijoes').val(); var tc = 0; var publico = $('#publico').val(); var valor = 0; var qtdUFPVis = 0; if(botijoes <= 40) { tc = 1; } if(botijoes > 40 && botijoes >= 120) { tc = 2; } if(botijoes > 120 && botijoes >= 480) { tc = 3; } if(botijoes > 480 && botijoes >= 960) { tc = 4; } if(botijoes > 960 && botijoes >= 1920) { tc = 5; } if(botijoes > 1920 && botijoes >= 3840) { tc = 6; } if(botijoes > 3840 && botijoes >= 7680) { tc = 7; } if(botijoes > 7680) { tc = 8; } if(area <= 750){ qtdUFPVis = 2 valor = qtdUFPVis * valUFPV; } if(area > 750){ qtdUFPVis = 0.003 * area; valor = qtdUFPVis * valUFPV; } if($('#glp').is(":checked")){ qtdUFPVis = 8 + ((tc - 1)*1.5); valor = qtdUFPVis * valUFPV; } if($('#evento').is(":checked")){ qtdUFPVis = publico * 0.003; valor = qtdUFPVis * valUFPV; } $('#totalV').text(new Intl.NumberFormat('pt-BR', {style: 'currency', currency: 'BRL'}).format(valor)); $('#quantiUFPVis').text(qtdUFPVis); } function limparAnalise() { document.getElementById("areaA").value = ''; document.getElementById("fatorRiscoA").value = ''; } function limparVistoria() { $('#areaV').value = ''; $('#cargaIncendioV').value = ''; $('#glp').prop("checked", false); $('#evento').prop("checked", false); $('#botijoes').hide(); $('#publico').hide(); } function checkEvent() { if( $('#evento').is(":checked")){ $('#glp').prop("checked", false); $('#publico').show(); $('#botijoes').hide(); $('#areaV').val(''); $('#areaV').hide(); }else{ $('#publico').hide(); $('#areaV').show(); } } function checkGlp() { if( $('#glp').is(":checked")){ $('#evento').prop("checked", false); $('#botijoes').show(); $('#publico').hide(); $('#areaV').val(''); $('#areaV').hide(); }else{ $('#botijoes').hide(); $('#areaV').show(); } } </script>]]>