var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $k.fn.maskInput = function (config) { var obj = function (selector, config) { this.selector = selector; this.config = $.extendEx({}, this.defConfig, config); } obj.prototype.defConfig = { color:'gray' }; obj.prototype.setPosition = function () { var _obj = this; var maskPanel = _obj.maskPanel; maskPanel.css('left', _obj.selector.offset().left); maskPanel.css('top', _obj.selector.offset().top); maskPanel.css('width', _obj.selector.width()); maskPanel.css('height', _obj.selector.outerHeight()); }; obj.prototype.maskInput = function () { var _obj = this; var maskPanel = $('