1/*!************************************************************** 2 * Package: floating-form-labels 3 * Version: v1.2.4 4 * Built : Thu Jul 05 2018 20:51:51 GMT+0200 (CEST) 5 * URL : https://github.com/Baedda/floating-form-labels 6 ***************************************************************/ 7 8!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?i(require("jquery")):i(t.jQuery)}(this,function(e){var l="floatingFormLabels",s={label:".ffl-label",formElements:"input, textarea",floatedClass:"ffl-floated"};function o(t,i){this._name=l,this.el=e(t),this.options=e.extend({},s,i),this.label=this.el.find(this.options.label),this.input=this.el.find(this.options.formElements),this.floated=!1,this._init()}o.prototype={_init:function(){var t=this;this._toggleClass(this._isFloated()),this._hasPlaceholder()?this._toggleClass(!0):(this.input.on({"focus.ffl":function(){t._toggleClass(!0)},"blur.ffl":function(){t._toggleClass(t._isFloated())},"change.ffl":function(){t._toggleClass(!0)}}),this.el.trigger("init.ffl",this))},_hasPlaceholder:function(){return""!==e.trim(this.input.attr("placeholder"))},_isFloated:function(){return""!==this.input.val()&&null!==this.input.val()&&0!==this.input.val().length},_toggleClass:function(t){t?(this.el.addClass(this.options.floatedClass),this.floated=!0):(this.el.removeClass(this.options.floatedClass),this.floated=!1),this.label.trigger("toggle.ffl",this)},destroy:function(){this.input.off(".ffl"),this.el.removeClass(this.options.floatedClass).removeData(l)}},e.fn[l]=function(t){var i,s=Array.prototype.slice.call(arguments,1);return this.each(function(){e.data(this,l)?"string"==typeof t&&(i=e.data(this,l))[t].apply(i,s):e.data(this,l,new o(this,t))})}});
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.