hand-detection/assets/scripts/form.wizard.init.min.js

2 lines
773 B
JavaScript

!function(r){"use strict";if(r("#rootwizard").length&&r("#rootwizard").bootstrapWizard(),r("#rootwizard-pill").length&&r("#rootwizard-pill").bootstrapWizard({tabClass:"nav nav-tabs"}),r("#rootwizard-progress").length&&r("#rootwizard-progress").bootstrapWizard({tabClass:"nav nav-pills",debug:!1,onTabShow:function(a,t,i){var o=t.find("li").length,e=i+1,n=e/o*100;r("#rootwizard-progress").find(".bar").css({width:n+"%"})}}),r("#tabsleft").length){var a=r("#commentForm").validate({rules:{emailfield:{required:!0,email:!0,minlength:3},namefield:{required:!0,minlength:3},urlfield:{required:!0,minlength:3,url:!0}}});r("#tabsleft").bootstrapWizard({tabClass:"nav nav-tabs",onNext:function(){var t=r("#commentForm").valid();return t?void 0:(a.focusInvalid(),!1)}})}}(jQuery);