1/** 2 * Cria a mascara 3 */ 4jQuery(function() { 5 6 var SPMaskBehavior = function (val) { 7 return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009'; 8 }, 9 spOptions = { 10 onKeyPress: function(val, e, field, options) { 11 field.mask(SPMaskBehavior.apply({}, arguments), options); 12 } 13 }; 14 jQuery('form input[type=tel]').mask(SPMaskBehavior, spOptions); 15 16});
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.