Server IP : 150.95.80.236 / Your IP : 18.221.34.62 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/documentation/forms/ |
Upload File : |
"use strict"; // Class definition var KTFormsMaxlengthDemos = function () { // Private functions var exampleBasic = function () { // minimum setup $('#kt_docs_maxlength_basic').maxlength({ warningClass: "badge badge-primary", limitReachedClass: "badge badge-success" }); } var exampleThreshold = function () { // Threshold setup $('#kt_docs_maxlength_threshold').maxlength({ threshold: 20, warningClass: "badge badge-primary", limitReachedClass: "badge badge-success" }); } var exampleAlwaysShow = function () { // Always show setup $('#kt_docs_maxlength_always_show').maxlength({ alwaysShow: true, threshold: 20, warningClass: "badge badge-danger", limitReachedClass: "badge badge-info" }); } var exampleCustomText = function () { // Always show setup $('#kt_docs_maxlength_custom_text').maxlength({ threshold: 20, warningClass: "badge badge-danger", limitReachedClass: "badge badge-success", separator: ' of ', preText: 'You have ', postText: ' chars remaining.', validate: true }); } var exampleTextarea = function () { // Textarea setup $('#kt_docs_maxlength_textarea').maxlength({ warningClass: "badge badge-primary", limitReachedClass: "badge badge-success" }); } var examplePosition = function () { // Position setup $('#kt_docs_maxlength_position_top_left').maxlength({ placement: 'top-left', warningClass: "badge badge-danger", limitReachedClass: "badge badge-primary" }); $('#kt_docs_maxlength_position_top_right').maxlength({ placement: 'top-right', warningClass: "badge badge-success", limitReachedClass: "badge badge-danger" }); $('#kt_docs_maxlength_position_bottom_left').maxlength({ placement: 'bottom-left', warningClass: "badge badge-info", limitReachedClass: "badge badge-warning" }); $('#kt_docs_maxlength_position_bottom_right').maxlength({ placement: 'bottom-right', warningClass: "badge badge-primary", limitReachedClass: "badge badge-success" }); } return { // Public Functions init: function () { exampleBasic(); exampleThreshold(); exampleAlwaysShow(); exampleCustomText(); exampleTextarea(); examplePosition(); } }; }(); // On document ready KTUtil.onDOMContentLoaded(function () { KTFormsMaxlengthDemos.init(); });