1$(document).ready(function($) { 2 /* Máscaras */ 3 var SPMaskBehavior = function (val) { 4 return val.replace(/\D/g, '').length === 11 ? '(00) 0 0000-0000' : '(00) 0000-00009'; 5 }, 6 spOptions = { 7 onKeyPress: function(val, e, field, options) { 8 field.mask(SPMaskBehavior.apply({}, arguments), options); 9 } 10 }; 11 12 $('.mask-telefone').mask(SPMaskBehavior, spOptions); 13 $('.mask-cpf').mask('000.000.000-00'); 14 $('.mask-cnpj').mask('00.000.000/0000-00'); 15 $('.mask-data').mask('00/00/0000'); 16 $('.mask-monetario').mask('000.000.000.000.000,00', {reverse: true}); 17 $('.mask-cep').mask('00000-000'); 18 $('.mask-protocolo').mask('000000000000000'); 19});
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.