PageSourceSearch

https://saomigueldoscampos.al.gov.br/assets/js/global.js

js saomigueldoscampos.al.gov.br collected 2026-10-02 14:17:17 UTC 2,337 bytes, 74 lines download raw bytes

1$('form').on('focus',':input', function(){
2  $(this).attr('autocomplete','off');
3});
4
5// AUTOCOMPLETE - FALSE
6if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0) {
7    $(window).load(function(){
8        $('input:-webkit-autofill').each(function(){
9            var text = $(this).val();
10            var name = $(this).attr('name');
11            $(this).after(this.outerHTML).remove();
12            $('input[name=' + name + ']').val(text);
13        });
14    });
15}
16
17
18/*
19
20
21
22MASCARAS
23
24
25
26*/
27
28$(function() {
29    $('.data').mask('00/00/0000');
30    $('.time').mask('00:00:00');
31    $('.date_time').mask('00/00/0000 00:00:00');
32    $('.cep').mask('00000000');
33    $('#cartaoVencimento').mask('00/0000');
34    $('.telefone').mask('(00) 0000-0000');
35    $('.percent').mask('##0,00%', {reverse: true});
36    $('.clear-if-not-match').mask("00/00/0000", {clearIfNotMatch: true});
37    $('.placeholder').mask("00/00/0000", {placeholder: "__/__/____"});
38
39
40    $('.selectonfocus').mask("00/00/0000", {selectOnFocus: true});
41
42    $('.cep_with_callback').mask('00000-000', {onComplete: function(cep) {
43        console.log('Mask is done!:', cep);
44    },
45    onKeyPress: function(cep, event, currentField, options){
46        console.log('An key was pressed!:', cep, ' event: ', event, 'currentField: ', currentField.attr('class'), ' options: ', options);
47    },
48    onInvalid: function(val, e, field, invalid, options){
49        var error = invalid[0];
50        console.log ("Digit: ", error.v, " is invalid for the position: ", error.p, ". We expect something like: ", error.e);
51    }
52});
53    $('.crazy_cep').mask('00000-000', {onKeyPress: function(cep, e, field, options){
54        var masks = ['00000-000', '0-00-00-00'];
55        mask = (cep.length>7) ? masks[1] : masks[0];
56        $('.crazy_cep').mask(mask, options);
57    }});
58
59    $('.cnpj').mask('00.000.000/0000-00', {reverse: true});
60    $('.cpf').mask('000.000.000-00', {reverse: true});
61    $('.money').mask('#.##0,00', {reverse: true});
62
63    var SPMaskBehavior = function (val) {
64        return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009';
65    },
66    spOptions = {
67        onKeyPress: function(val, e, field, options) {
68            field.mask(SPMaskBehavior.a
68pply({}, arguments), options);
69        }
70    };
71
72    $('.telefone').mask(SPMaskBehavior, spOptions);
73});
74

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.