text: var cargobay=cargobay||{};cargobay.floatLabelForm=function(a){var r,o="form__label--active",e="form__label--focus",l=a(".js-form__field");return r=function(){l.bind("checkval",function(){var r=a(this).prev(".form__label");0!==a(this).val().length?r.addClass(o):r.removeClass(o)}).on("keyup",function(){a(this).trigger("checkval")}).on("focus",function(){a(this).prev(".form__label").addClass(e)}).on("blur",function(){a(this).prev(".form__label").removeClass(e)}).trigger("checkval")},{init:r}}(jQuery,window);