chess/public/assets/js/pages/crud/forms/widgets/bootstrap-maxlength.min.js
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

1 line
2.7 KiB
JavaScript
Vendored

var KTBootstrapMaxlength={init:function(){$("#kt_maxlength_1").maxlength({warningClass:"label label-warning label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline"}),$("#kt_maxlength_2").maxlength({threshold:5,warningClass:"label label-warning label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline"}),$("#kt_maxlength_3").maxlength({alwaysShow:!0,threshold:5,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_4").maxlength({threshold:3,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline",separator:" of ",preText:"You have ",postText:" chars remaining.",validate:!0}),$("#kt_maxlength_5").maxlength({threshold:5,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_6_1").maxlength({alwaysShow:!0,threshold:5,placement:"top-left",warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_6_2").maxlength({alwaysShow:!0,threshold:5,placement:"top-right",warningClass:"label label-success label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_6_3").maxlength({alwaysShow:!0,threshold:5,placement:"bottom-left",warningClass:"label label-warning label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_6_4").maxlength({alwaysShow:!0,threshold:5,placement:"bottom-right",warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline"}),$("#kt_maxlength_1_modal").maxlength({warningClass:"label label-warning label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline",appendToParent:!0}),$("#kt_maxlength_2_modal").maxlength({threshold:5,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline",appendToParent:!0}),$("#kt_maxlength_5_modal").maxlength({threshold:5,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-primary label-rounded label-inline",appendToParent:!0}),$("#kt_maxlength_4_modal").maxlength({threshold:3,warningClass:"label label-danger label-rounded label-inline",limitReachedClass:"label label-success label-rounded label-inline",appendToParent:!0,separator:" of ",preText:"You have ",postText:" chars remaining.",validate:!0})}};jQuery(document).ready(function(){KTBootstrapMaxlength.init()});