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

Sites Atualizados

Lista dos novos sites adicionados a plataforma na última atualização

Endereço Nota Erros Avisos

municipio.jaguariuna.sp.gov.br/home.html

74.7 39 163
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 36 286 352 368 373 378 383 388 393 398 403 408 748 916 921 921 951 956 956 986 991 1049 1069 1134 1141 1148 1155 1162 1169 1176 1305 1334 1363 1753 1773 1837 2274
1.1.4 Presença de CSS(s) interno 1 50
1.1.6 Presença de javascript(s) interno 2 132 2421
286 <![CDATA[<div class="col-lg-12" style="text-align: center"> <a href="https://municipio.jaguariuna.sp.gov.br/servicos/84/jaguariuna-69-anos.html" target="_selfk"> <img src="/arquivos/banners/37/IMAGEM_BANNER.gif" alt="JAGUARIUNA 69 ANOS" > </a> </div>]]>
352 <![CDATA[<img class="img-fluid" src="/images/logo.png" alt="Prefeitura Municipal de Jaguariúna" style="padding: 10px;">]]>
368 <![CDATA[<a href="/noticias/turismo-e-cultura/2449/mais-de-20-estabelecimentos-participam-do-3-festival-gastronomico-de-jaguariuna.html" target="_self" style="text-transform: uppercase;">MAIS DE 20 ESTABELECIMENTOS PARTICIPAM DO 3º ...</a>]]>
373 <![CDATA[<a href="/noticias/mobilidade-urbana/2448/mobilidade-urbana-realiza-acoes-na-semana-nacional-de-transito.html" target="_self" style="text-transform: uppercase;">MOBILIDADE URBANA REALIZA AÇÕES NA SEMANA NACIONAL ...</a>]]>
378 <![CDATA[<a href="/noticias/assistencia-social/2447/fundo-social-forma-nova-turma-no-curso-de-bolo-de-pote-e-sobremesas.html" target="_self" style="text-transform: uppercase;">FUNDO SOCIAL FORMA NOVA TURMA NO CURSO ...</a>]]>
383 <![CDATA[<a href="/noticias/turismo-e-cultura/2446/estreia-do-espetaculo-mamma-mia-lota-teatro-municipal-de-jaguariuna.html" target="_self" style="text-transform: uppercase;">ESTREIA DO ESPETÁCULO ‘MAMMA MIA’ LOTA TEATRO ...</a>]]>
388 <![CDATA[<a href="/noticias/assistencia-social/2445/1-edicao-do-cadastro-unico-itinerante-acontece-no-bairro-tanquinho.html" target="_self" style="text-transform: uppercase;">1ª EDIÇÃO DO CADASTRO ÚNICO ITINERANTE ACONTECE ...</a>]]>
393 <![CDATA[<a href="/noticias/governo/2444/jovens-de-jaguariuna-devem-prestar-compromisso-a-bandeira-nesta-sexta-feira.html" target="_self" style="text-transform: uppercase;">JOVENS DE JAGUARIÚNA DEVEM PRESTAR COMPROMISSO À ...</a>]]>
398 <![CDATA[<a href="/noticias/assistencia-social/2443/hoje-tem-edicao-especial-do-baile-da-terceira-idade.html" target="_self" style="text-transform: uppercase;">HOJE TEM EDIÇÃO ESPECIAL DO BAILE DA ...</a>]]>
403 <![CDATA[<a href="/noticias/assistencia-social/2442/cras-centro-realiza-2-workshop-gratuito-de-automaquiagem-hoje-e-amanha.html" target="_self" style="text-transform: uppercase;">CRAS CENTRO REALIZA 2º WORKSHOP GRATUITO DE ...</a>]]>
408 <![CDATA[<a href="/noticias/mobilidade-urbana/2441/prefeitura-de-jaguariuna-amplia-para-5-anos-validade-do-cartao-de-estacionamento-de-idosos-e-pessoas-com-deficiencia.html" target="_self" style="text-transform: uppercase;">PREFEITURA DE JAGUARIÚNA AMPLIA PARA 5 ANOS ...</a>]]>
748 <![CDATA[<div class="ts-submit-btn" style="padding-left: 20px; padding-top: 20px;"> <a href="/servico.html" target="_self" class="btn btn-primary" >TODOS OS SERVIÇOS</a> </div>]]>
916 <![CDATA[<div class="item" style="background-image:url(/fotos/noticias/2449/FOTO_NOTICIA_0.jpg)"> <div class="ec-tags"> <a href="#" style="text-transform: uppercase;">Turismo e Cultura</a><a href="#" style="text-transform: uppercase;"> Festival Gastronômico</a> </div> <div class="overlay-post-content"> <div class="post-content"> <h2 class="post-title lg"> <a href="/noticias/turismo-e-cultura/2449/mais-de-20-estabelecimentos-participam-do-3-festival-gastronomico-de-jaguariuna.html"> MAIS DE 20 ESTABELECIMENTOS PARTICIPAM DO 3º FESTIVAL GASTRONÔMICO DE JAGUARIÚNA</a> </h2> <ul class="post-meta-info"> <li class="author"> <a href="/noticias/turismo-e-cultura/2449/mais-de-20-estabelecimentos-participam-do-3-festival-gastronomico-de-jaguariuna.html"> TURISMO E CULTURA </a> </li> <li> <i class="fa fa-clock-o"></i> 22/09/2023 </li> </ul> </div> </div> </div>]]>
921 <![CDATA[<a href="#" style="text-transform: uppercase;">Turismo e Cultura</a>]]>
921 <![CDATA[<a href="#" style="text-transform: uppercase;"> Festival Gastronômico</a>]]>
951 <![CDATA[<div class="item" style="background-image:url(/fotos/noticias/2448/FOTO_NOTICIA_0.jpg)"> <div class="ec-tags"> <a href="#" style="text-transform: uppercase;">Mobilidade Urbana</a><a href="#" style="text-transform: uppercase;"> Semana do Trânsito</a> </div> <div class="overlay-post-content"> <div class="post-content"> <h2 class="post-title lg"> <a href="/noticias/mobilidade-urbana/2448/mobilidade-urbana-realiza-acoes-na-semana-nacional-de-transito.html"> MOBILIDADE URBANA REALIZA AÇÕES NA SEMANA NACIONAL DE TRÂNSITO</a> </h2> <ul class="post-meta-info"> <li class="author"> <a href="/noticias/mobilidade-urbana/2448/mobilidade-urbana-realiza-acoes-na-semana-nacional-de-transito.html"> MOBILIDADE URBANA </a> </li> <li> <i class="fa fa-clock-o"></i> 22/09/2023 </li> </ul> </div> </div> </div>]]>
956 <![CDATA[<a href="#" style="text-transform: uppercase;">Mobilidade Urbana</a>]]>
956 <![CDATA[<a href="#" style="text-transform: uppercase;"> Semana do Trânsito</a>]]>
986 <![CDATA[<div class="item" style="background-image:url(/fotos/noticias/2447/FOTO_NOTICIA_0.jpg)"> <div class="ec-tags"> <a href="#" style="text-transform: uppercase;">Cursos</a> </div> <div class="overlay-post-content"> <div class="post-content"> <h2 class="post-title lg"> <a href="/noticias/assistencia-social/2447/fundo-social-forma-nova-turma-no-curso-de-bolo-de-pote-e-sobremesas.html"> FUNDO SOCIAL FORMA NOVA TURMA NO CURSO DE BOLO DE POTE E SOBREMESAS</a> </h2> <ul class="post-meta-info"> <li class="author"> <a href="/noticias/assistencia-social/2447/fundo-social-forma-nova-turma-no-curso-de-bolo-de-pote-e-sobremesas.html"> ASSISTÊNCIA SOCIAL </a> </li> <li> <i class="fa fa-clock-o"></i> 21/09/2023 </li> </ul> </div> </div> </div>]]>
991 <![CDATA[<a href="#" style="text-transform: uppercase;">Cursos</a>]]>
1049 <![CDATA[<a href="/noticias/turismo-e-cultura/2446/estreia-do-espetaculo-mamma-mia-lota-teatro-municipal-de-jaguariuna.html" style="text-transform: capitalize">ESTREIA DO ESPETÁCULO ‘MAMMA MIA’ LOTA TEATRO MUNICIPAL ...</a>]]>
1069 <![CDATA[<a href="/noticias/assistencia-social/2445/1-edicao-do-cadastro-unico-itinerante-acontece-no-bairro-tanquinho.html" style="text-transform: capitalize">1ª EDIÇÃO DO CADASTRO ÚNICO ITINERANTE ACONTECE NO ...</a>]]>
1134 <![CDATA[<img src="/fotos/modulo_botons/5/FOTO_BOT_original.png" alt="TELEFONES ÚTEIS" style="padding-bottom: 5px;">]]>
1141 <![CDATA[<img src="/fotos/modulo_botons/11/FOTO_BOT_original.png" alt="Qualifica Jaguariúna" style="padding-bottom: 5px;">]]>
1148 <![CDATA[<img src="/fotos/modulo_botons/1/FOTO_BOT_original.png" alt="Vagas de Emprego" style="padding-bottom: 5px;">]]>
1155 <![CDATA[<img src="/fotos/modulo_botons/10/FOTO_BOT_original.png" alt="Casa da Memória" style="padding-bottom: 5px;">]]>
1162 <![CDATA[<img src="/fotos/modulo_botons/8/FOTO_BOT_original.png" alt="Atendimento DAE" style="padding-bottom: 5px;">]]>
1169 <![CDATA[<img src="/fotos/modulo_botons/6/FOTO_BOT_original.png" alt="ESTRELA FM" style="padding-bottom: 5px;">]]>
1176 <![CDATA[<img src="/fotos/modulo_botons/2/FOTO_BOT_original.png" alt="Galeria de Imagens" style="padding-bottom: 5px;">]]>
1305 <![CDATA[<div class="item" style="background-image: url(/fotos/videos/217/IMAGEM_VIDEO_0.jpg)"> <div class="ec-tags"> <a href="#"></a> </div> <a href="https://www.youtube.com/watch?v=OWG9KadNGzA" class="ts-video-btn"> <i class="fa fa-play-circle-o"></i> </a> <div class="overlay-post-content"> <div class="post-content"> <h3 class="post-title md"> <a href="#">PARABÉNS, JAGUARIÚNA!</a> </h3> <ul class="post-meta-info"> <li> <i class="fa fa-clock-o"></i> 14/09/2023 </li> </ul> </div> </div> </div>]]>
1334 <![CDATA[<div class="item" style="background-image: url(/fotos/videos/216/IMAGEM_VIDEO_0.jpg)"> <div class="ec-tags"> <a href="#"></a> </div> <a href="https://www.youtube.com/watch?v=zBucEqlIwE8" class="ts-video-btn"> <i class="fa fa-play-circle-o"></i> </a> <div class="overlay-post-content"> <div class="post-content"> <h3 class="post-title md"> <a href="#">VIVA JAGUARIÚNA!</a> </h3> <ul class="post-meta-info"> <li> <i class="fa fa-clock-o"></i> 13/09/2023 </li> </ul> </div> </div> </div>]]>
1363 <![CDATA[<div class="item" style="background-image: url(/fotos/videos/215/IMAGEM_VIDEO_0.jpg)"> <div class="ec-tags"> <a href="#"></a> </div> <a href="https://www.youtube.com/watch?v=eftpW9_7mdU" class="ts-video-btn"> <i class="fa fa-play-circle-o"></i> </a> <div class="overlay-post-content"> <div class="post-content"> <h3 class="post-title md"> <a href="#">NINGUÉM SUPERA JAGUARIÚNA!</a> </h3> <ul class="post-meta-info"> <li> <i class="fa fa-clock-o"></i> 13/09/2023 </li> </ul> </div> </div> </div>]]>
1753 <![CDATA[<a href="#" style="text-transform: uppercase;">VACINÔMETRO </a>]]>
1773 <![CDATA[<a href="#" style="text-transform: uppercase;">BOLETIM </a>]]>
1837 <![CDATA[<div class="tab-content" style="text-transform: uppercase;"> <div role="tabpanel" class="tab-pane active ts-grid-box post-tab-list" id="cidadao"> <div class="post-content media "> <h4 class="post-title"> <a href="/servico.html" target="_self">TODOS OS SERVIÇOS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/repositorio.html" target="_self">TODAS AS NOTÍCIAS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://cartcid.jaguariuna.sp.gov.br/assist/pmj_cartcid/busca_medicamento/" target="_BLANK">Lista de Medicamentos fornecida pela Rede Pública</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/10/vagas-de-emprego-pat.html" target="_self">Vagas de Emprego PAT</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/82/festival-gastronomico.html" target="_self">FESTIVAL GASTRONÔMICO</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/44/portal-da-ouvidoria.html" target="_self">PORTAL DA OUVIDORIA</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/55/revisao-plano-diretor.html" target="_self">REVISÃO PLANO DIRETOR</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://www.jaguariuna.sp.gov.br/atendimento/wp-content/uploads/2022/08/PMSB-e-PMGIRS-do-Município-de-Jaguariúna-volumes-I-e-II.pdf" target="_BLANK">Plano Municipal de Saneamento Básico e Plano Municipal de Gestão Integrada de Resíduos Sólidos.</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://municipio.jaguariuna.sp.gov.br/conselhos_municipais/grid_conselhos/" target="_BLANK">Portal dos Conselhos Municipais</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/8/auto-atendimento-online.html" target="_self">Auto Atendimento Online</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/84/jaguariuna-69-anos.html" target="_self">Jaguariúna 69 anos</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://municipio.jaguariuna.sp.gov.br/mapa-site.html" target="_SELF">Mapa do Site</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://cohabbandeirante.com.br/precadastro_jaguariuna/" target="_SELF">PRÉ CADASTRO HABITACIONAL</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/87/festival-gastronomico.html" target="_self">FESTIVAL GASTRONOMICO</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://tinyurl.com/2-via-agua" target="_BLANK">2º Via - Conta de Água e Esgoto</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/53/atendimento-dae.html" target="_self">ATENDIMENTO DAE</a> </h4> </div> </div> <!--ts-grid-box end --> <div role="tabpanel" class="tab-pane fade ts-grid-box post-tab-list" id="empresa"> <!-- <div class="post-content media "> <h4 class="post-title"> <a href="https://municipio.jaguariuna.sp.gov.br/mei.html" target="_self">MEI INSCRIÇÃO / ALTERAÇÃO / REATIVAÇÃO</a> </h4> </div> --> <div class="post-content media "> <h4 class="post-title"> <a href="https://tinyurl.com/taxa-licenca-iss" target="_BLANK">Taxa de Licença e ISS fixo</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://municipio.jaguariuna.sp.gov.br/mei2022.html" target="_BLANK">MEI INSCRIÇÃO / ALTERAÇÃO / REATIVAÇÃO</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://tinyurl.com/comp-inscr" target="_BLANK">COMPROVANTE DE INSCRIÇÃO MUNICIPAL</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://www.nfe-cidades.com.br/" target="_BLANK">Nota Fiscal Eletrônica</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://www.nfse.gov.br/EmissorNacional" target="_BLANK">NOTA FISCAL - MEI</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://www.jaguariuna.sp.gov.br/portais/licitacoes/" target="_BLANK">Licitações</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servico.html" target="_self">TODOS OS SERVIÇOS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/23/manual-para-licitacoes.html" target="_self">Manual para Licitações</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://tinyurl.com/cert-deb-mob" target="_BLANK">Certidão Negativa Mobiliária</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://tinyurl.com/verifica-cert-jagua" target="_BLANK">Verificação de Certidões</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="https://traznegocios.jaguariuna.sp.gov.br" target="_BLANK">Portal Traz Negócios RMC</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servico.html" target="_self">TODOS OS SERVIÇOS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/59/parceria-publico-privada.html" target="_self">PARCERIA PÚBLICO-PRIVADA</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servico.html" target="_self">TODOS OS SERVIÇOS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/21/posto-atendimento-sebrae.html" target="_self">POSTO ATENDIMENTO SEBRAE</a> </h4> </div> </div> <!--ts-grid-box end --> <div role="tabpanel" class="tab-pane fade ts-grid-box post-tab-list" id="servidor"> <div class="post-content media "> <h4 class="post-title"> <a href="/servico.html" target="_self">TODOS OS SERVIÇOS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/repositorio.html" target="_self">TODAS AS NOTÍCIAS</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/26/deesmt.html" target="_self">DEESMT</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/27/estatuto-do-servidor.html" target="_self">Estatuto do Servidor</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="/servicos/28/holerite.html" target="_self">Holerite</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://www.jaguariuna.sp.gov.br/jaguarprev/" target="_BLANK">JaguarPrev</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://www.jaguariuna.sp.gov.br/intranet/" target="_BLANK">Intranet</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://www.jaguariuna.sp.gov.br/intranet/?page_id=851" target="_BLANK">Estágio Probatório</a> </h4> </div> <div class="post-content media "> <h4 class="post-title"> <a href="http://www.jaguariuna.sp.gov.br/intranet/?page_id=849" target="_BLANK">Evolução Funcional</a> </h4> </div> </div> <!--ts-grid-box end --> </div>]]>
2274 <![CDATA[<img src="/images/logo_footer.png" alt="Prefeitura Municipal de Jaguariúna" style="width: 236px;">]]>
50 <![CDATA[<style> .responsivo { max-width: 1080px; width: 100%; height: auto; } .responsivo img{ max-width: 1080px; /* Máximo da largura da imagem */ width: 100%; max-height: 500px; /* Máximo da altura da imagem */ min-height: auto; /* Mínimo da altura, por padrão “auto” */ background-size:100%; background-repeat: no-repeat; } #container-da-imagem { position: relative; } #container-da-imagem img { width: 100% } img { width: 100% } </style>]]>
132 <![CDATA[<script> function data(){ Hoje = new Date(); Data = Hoje.getDate(); Dia = Hoje.getDay(); Mes = Hoje.getMonth(); Ano = Hoje.getFullYear(); if(Data < 10) { Data = "0" + Data; } NomeDia = new Array(7) NomeDia[0] = "domingo" NomeDia[1] = "segunda-feira" NomeDia[2] = "terça-feira" NomeDia[3] = "quarta-feira" NomeDia[4] = "quinta-feira" NomeDia[5] = "sexta-feira" NomeDia[6] = "sábado" NomeMes = new Array(12) NomeMes[0] = "JANEIRO" NomeMes[1] = "FEVEREIRO" NomeMes[2] = "MARÇO" NomeMes[3] = "ABRIL" NomeMes[4] = "MAIO" NomeMes[5] = "JUNHO" NomeMes[6] = "JULHO" NomeMes[7] = "AGOSTO" NomeMes[8] = "SETEMBRO" NomeMes[9] = "OUTUBRO" NomeMes[10] = "NOVEMBRO" NomeMes[11] = "DEZEMBRO" document.write(" "+ Data + " / " + NomeMes[Mes] + " / " + Ano+ " " ); } </script>]]>
2421 <![CDATA[<script> $(function(){ $("#enviar").click(function(){ if(grecaptcha && grecaptcha.getResponse().length == 0) { alert('Oops, precisamos ter certeza que você não é um rôbo !'); return false; } }) }) function check1(checkbox) { var checkboxes = document.getElementsByName('declaro') checkboxes.forEach((item) => { if (item !== checkbox) item.checked = false }) } function check2(checkbox) { var checkboxes = document.getElementsByName('horario') checkboxes.forEach((item) => { if (item !== checkbox) item.checked = false }) } function check3(checkbox) { var checkboxes = document.getElementsByName('publicidade') checkboxes.forEach((item) => { if (item !== checkbox) item.checked = false }) } var currentDate = new Date(), currentDay = currentDate.getDate() < 10 ? '0' + currentDate.getDate() : currentDate.getDate(), currentMonth = currentDate.getMonth() < 9 ? '0' + (currentDate.getMonth() + 1) : (currentDate.getMonth() + 1); document.getElementById("data").innerHTML = currentDay + '/' + currentMonth + '/' + currentDate.getFullYear(); function verificaExtensao($input) { var extPermitidas = ['jpg', 'png', 'pdf']; var extArquivo = $input.value.split('.').pop(); if(typeof extPermitidas.find(function(ext){ return extArquivo == ext; }) == 'undefined') { alert('Extensão "' + extArquivo + '" não permitida!'); return false; } else { // alert('Ok!'); } } //$(document).on("input", "#metragem", function (e) { // this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); //}); function handleNumber(event, mask) { /* numeric mask with pre, post, minus sign, dots and comma as decimal separator {}: positive integer {10}: positive integer max 10 digit {,3}: positive float max 3 decimal {10,3}: positive float max 7 digit and 3 decimal {null,null}: positive integer {10,null}: positive integer max 10 digit {null,3}: positive float max 3 decimal {-}: positive or negative integer {-10}: positive or negative integer max 10 digit {-,3}: positive or negative float max 3 decimal {-10,3}: positive or negative float max 7 digit and 3 decimal */ with (event) { stopPropagation() preventDefault() if (!charCode) return var c = String.fromCharCode(charCode) if (c.match(/[^-\d,]/)) return with (target) { var txt = value.substring(0, selectionStart) + c + value.substr(selectionEnd) var pos = selectionStart + 1 } } var dot = count(txt, /\./, pos) txt = txt.replace(/[^-\d,]/g,'') var mask = mask.match(/^(\D*)\{(-)?(\d*|null)?(?:,(\d+|null))?\}(\D*)$/); if (!mask) return // meglio exception? var sign = !!mask[2], decimals = +mask[4], integers = Math.max(0, +mask[3] - (decimals || 0)) if (!txt.match('^' + (!sign?'':'-?') + '\\d*' + (!decimals?'':'(,\\d*)?') + '')) return txt = txt.split(',') if (integers && txt[0] && count(txt[0],/\d/) > integers) return if (decimals && txt[1] && txt[1].length > decimals) return txt[0] = txt[0].replace(/\B(?=(\d{3})+(?!\d))/g, '.') with (event.target) { value = mask[1] + txt.join(',') + mask[5] selectionStart = selectionEnd = pos + (pos==1 ? mask[1].length : count(value, /\./, pos) - dot) } function count(str, c, e) { e = e || str.length for (var n=0, i=0; i<e; i+=1) if (str.charAt(i).match(c)) n+=1 return n } } function mascaraData(val) { var pass = val.value; var expr = /[0123456789]/; for (i = 0; i < pass.length; i++) { // charAt -> retorna o caractere posicionado no índice especificado var lchar = val.value.charAt(i); var nchar = val.value.charAt(i + 1); if (i == 0) { // search -> retorna um valor inteiro, indicando a posição do inicio da primeira // ocorrência de expReg dentro de instStr. Se nenhuma ocorrencia for encontrada o método retornara -1 // instStr.search(expReg); if ((lchar.search(expr) != 0) || (lchar > 3)) { val.value = ""; } } else if (i == 1) { if (lchar.search(expr) != 0) { // substring(indice1,indice2) // indice1, indice2 -> será usado para delimitar a string var tst1 = val.value.substring(0, (i)); val.value = tst1; continue; } if ((nchar != '/') && (nchar != '')) { var tst1 = val.value.substring(0, (i) + 1); if (nchar.search(expr) != 0) var tst2 = val.value.substring(i + 2, pass.length); else var tst2 = val.value.substring(i + 1, pass.length); val.value = tst1 + '/' + tst2; } } else if (i == 4) { if (lchar.search(expr) != 0) { var tst1 = val.value.substring(0, (i)); val.value = tst1; continue; } if ((nchar != '/') && (nchar != '')) { var tst1 = val.value.substring(0, (i) + 1); if (nchar.search(expr) != 0) var tst2 = val.value.substring(i + 2, pass.length); else var tst2 = val.value.substring(i + 1, pass.length); val.value = tst1 + '/' + tst2; } } if (i >= 6) { if (lchar.search(expr) != 0) { var tst1 = val.value.substring(0, (i)); val.value = tst1; } } } if (pass.length > 10) val.value = val.value.substring(0, 10); return true; } </script>]]>