minify js

parent 6791801f
...@@ -5,14 +5,16 @@ ...@@ -5,14 +5,16 @@
<script src="/js/libs/respond/respond.min.js"></script> <script src="/js/libs/respond/respond.min.js"></script>
<![endif]--> <![endif]-->
<?php $this->registerJsFile('/js/libs/bootstrap/js/bootstrap.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/modernizr.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/libs/bootstrap/js/bootstrap.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/libs/waypoints/waypoints.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/libs/waypoints/waypoints.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/libs/magnific/jquery.magnific-popup.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/libs/magnific/jquery.magnific-popup.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/libs/bxslider/jquery.bxslider.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/libs/bxslider/jquery.bxslider.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/jquery.parallax.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery.parallax.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/parallax.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/parallax.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/wow.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/wow.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/jquery-validate.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery-validate.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/jquery.mb.YTPlayer.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery.mb.YTPlayer.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/jquery.PageScroll2id.min.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery.PageScroll2id.min.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/common.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/common.js', ['position' => yii\web\View::POS_END ]);?>
\ No newline at end of file
!function(a){a.validation||(a.validation={_defaultOptions:{container:"",fieldSelector:".field-input",liveCheck:!0,submitSelector:".save-button",submitHandler:null,errorClass:"input-error",okClass:"input-ok",validators:{required:function(a){return a.length>0},numeric:function(a){var b=new RegExp("\\-?\\d+((\\.|\\,)\\d{0,})?");return b.test(a)||!a},alpha:function(a){var b=new RegExp("^[\u0430-\u044f\u0410-\u042f\u0451\u0401a-zA-Z\\s]+$");return b.test(a)||!a},alphanumeric:function(a){var b=new RegExp("^[\u0430-\u044f\u0410-\u042f\u0451\u0401a-zA-Z0-9\\s]+$");return b.test(a)||!a},date:function(a){var b=new RegExp("(19|20)\\d\\d-((0[1-9]|1[012])-(0[1-9]|[12]\\d)|(0[13-9]|1[012])-30|(0[13578]|1[02])-31)"),c=new RegExp("((0[1-9]|[12]\\d)\\.(0[1-9]|1[012])|30\\.(0[13-9]|1[012])|31\\.(0[13578]|1[02]))\\.(19|20)\\d\\d");return b.test(a)|c.test(a)||!a},datetime:function(a){var b=new RegExp("(19|20)\\d\\d-((0[1-9]|1[012])-(0[1-9]|[12]\\d)|(0[13-9]|1[012])-30|(0[13578]|1[02])-31) (\\d+):(\\d+)"),c=new RegExp("((0[1-9]|[12]\\d)\\.(0[1-9]|1[012])|30\\.(0[13-9]|1[012])|31\\.(0[13578]|1[02]))\\.(19|20)\\d\\d (\\d+):(\\d+)");return b.test(a)|c.test(a)||!a},time:function(a){var b=new RegExp("(\\d+):(\\d+)");return b.test(a)||!a},digit:function(a){var b=new RegExp("^[0-9]+$");return b.test(a)||!a},password:function(a){var b=new RegExp("^[\u0430-\u044f\u0410-\u042f\u0451\u0401a-zA-Z0-9\\s]+$");return b.test(a)||!a},email:function(a){var b=new RegExp("^([a-z0-9_-]+\\.)*[a-z0-9_-]+@[a-z0-9_-]+(\\.[a-z0-9_-]+)*\\.[a-z]{2,6}$");return b.test(a)||!a},url:function(a){var b=new RegExp("^((https?|ftp)\\:\\/\\/)?([a-z0-9]{1})((\\.[a-z0-9-])|([a-z0-9-]))*\\.([a-z]{2,6})(\\/?)$");return b.test(a)||!a}}},init:function(a){var b=$.extend({},this._defaultOptions,a||{}),c=this;b.container&&b.fieldSelector&&(b.submitSelector&&$(b.container).find(b.submitSelector).on("click",function(){return c.isValid(b)?("function"==typeof b.submitHandler&&b.submitHandler(),!0):!1}),b.liveCheck&&$(b.container).find(b.fieldSelector).each(function(a,d){$(d).on("click",function(){c.validItem($(d),b)}).on("blur",function(){c.validItem($(d),b)}).on("change",function(){c.validItem($(d),b)}).on("keyup",function(){c.validItem($(d),b)})}))},validItem:function(a,b){var c=$.extend({},this._defaultOptions,b||{}),d=$(a).attr("class").split(/\s+/),e=!0;return $.each(d,function(b,d){"confirmfield"===d?e&=$(c.container).find('[Name="'+$(a).attr("confirm-field")+'"]').val()==$(a).val():"function"==typeof c.validators[d]&&(e&=c.validators[d](a.val()))}),e?$(a).addClass(c.okClass).removeClass(c.errorClass):$(a).addClass(c.errorClass).removeClass(c.okClass),e},isValid:function(a){var b=$.extend({},this._defaultOptions,a||{}),c=!0,d=this;return b.container&&b.fieldSelector&&$(b.container).find(b.fieldSelector).each(function(a,e){c&=d.validItem($(e),b)}),c},clear:function(a){var b=$.extend(!0,{},this._defaultOptions,a||{});b.container&&b.fieldSelector&&$(b.container).find(b.fieldSelector).removeClass(b.errorClass).removeClass(b.okClass)}})}(window);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment