vendor: 2,621 bytes, lines 1-62
1/*! 2* jquery.inputmask.js 3* https://github.com/RobinHerbots/Inputmask 4* Copyright (c) 2010 - 2017 Robin Herbots 5* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 6* Version: 3.3.11 7*/ 8 9!function(factory) { 10 "function" == typeof define && define.amd ? define([ "jquery", "./inputmask" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery"), require("./inputmask")) : factory(jQuery, window.Inputmask); 11}(function($, Inputmask) { 12 return void 0 === $.fn.inputmask && ($.fn.inputmask = function(fn, options) { 13 var nptmask, input = this[0]; 14 if (void 0 === options && (options = {}), "string" == typeof fn) switch (fn) { 15 case "unmaskedvalue": 16 return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val(); 17 18 case "remove": 19 return this.each(function() { 20 this.inputmask && this.inputmask.remove(); 21 }); 22 23 case "getemptymask": 24 return input && input.inputmask ? input.inputmask.getemptymask() : ""; 25 26 case "hasMaskedValue": 27 return !(!input || !input.inputmask) && input.inputmask.hasMaskedValue(); 28 29 case "isComplete": 30 return !input || !input.inputmask || input.inputmask.isComplete(); 31 32 case "getmetadata": 33 return input && input.inputmask ? input.inputmask.getmetadata() : void 0; 34 35 case "setvalue": 36 $(input).val(options), input && void 0 === input.inputmask && $(input).triggerHandler("setvalue"); 37 break; 38 39 case "option": 40 if ("string" != typeof options) return this.each(function() { 41 if (void 0 !== this.inputmask) return this.inputmask.option(options); 42 }); 43 if (input && void 0 !== input.inputmask) return input.inputmask.option(options); 44 break; 45 46 default: 47 return options.alias = fn, nptmask = new Inputmask(options), this.each(function() { 48 nptmask.mask(this); 49 }); 50 } else { 51 if ("object" == typeof fn) return nptmask = new Inputmask(fn), void 0 === fn.mask && void 0 === fn.alias ? this.each(function() { 52 if (void 0 !== this.inputmask) return this.inputmask.option(fn); 53 nptmask.mask(this); 54 }) : this.each(function() { 55 nptmask.mask(this); 56 }); 57 if (void 0 === fn) return this.each(function() { 58 (nptmask = new Inputmask(options)).mask(this); 59 }); 60 } 61 }), $.fn.inputmask; 62});
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.