PageSourceSearch

https://www.fiergs.org.br/sites/all/themes/fiergs3/js/custom/jquery.mask/jquery.mask-custom.js?tkslu7

js fiergs.org.br collected 2026-10-02 03:35:19 UTC 2,008 bytes, 60 lines download raw bytes

1
2(function ($, Drupal, window, document, undefined) {
3  Drupal.behaviors.formmask = {
4    attach: function(context, settings) {
5
6    	// Phone
7    	var SPMaskBehavior = function (val) {
8    	  return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009';
9    	},
10    	spOptions = {
11    	  onKeyPress: function(val, e, field, options) {
12    	      field.mask(SPMaskBehavior.apply({}, arguments), options);
13    	    }
14    	};
15    	$('.mask-phone').mask(SPMaskBehavior, spOptions);
16    	// /Phone
17
18    	$('.mask-cnpj').mask('00.000.000/0000-00', {reverse: true});
19    	$('.mask-cpf').mask('000.000.000-00', {reverse: true});
20    	$('.mask-cep').mask('00000-000');
21
22
23    	// $('.mask-date').mask('00/00/0000');
24    	// $('.mask-time').mask('00:00:00');
25    	// $('.mask-date_time').mask('00/00/0000 00:00:00');
26    	// $('.mask-phone').mask('0000-0000');
27    	// $('.mask-phone_with_ddd').mask('(00) 0000-0000');
28    	// $('.mask-phone_us').mask('(000) 000-0000');
29    	// $('.mask-mixed').mask('AAA 000-S0S');
30    	// $('.mask-money').mask('000.000.000.000.000,00', {reverse: true});
31    	// $('.mask-money2').mask("#.##0,00", {reverse: true});
32    	// $('.mask-ip_address').mask('0ZZ.0ZZ.0ZZ.0ZZ', {
33    	//   translation: {
34    	//     'Z': {
35    	//       pattern: /[0-9]/, optional: true
36    	//     }
37    	//   }
38    	// });
39    	// $('.mask-ip_address').mask('099.099.099.099');
40    	// $('.mask-percent').mask('##0,00%', {reverse: true});
41    	// $('.mask-clear-if-not-match').mask("00/00/0000", {clearIfNotMatch: true});
42    	// $('.mask-placeholder').mask("00/00/0000", {placeholder: "__/__/____"});
43    	// $('.mask-fallback').mask("00r00r0000", {
44    	//     translation: {
45    	//       'r': {
46    	//         pattern: /[\/]/,
47    	//         fallback: '/'
48    	//       },
49    	//       placeholder: "__/__/____"
50    	//     }
51    	//   });
52    	// $('.selectonfocus').mask("00/00/0000", {selectOnFocus: true});
53      
54    }
55  };
56
57
58})(jQuery, Drupal, this, this.document);
59
60

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.