NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 3.141.45.179
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/dist/assets/js/custom/documentation/forms/formvalidation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/dist/assets/js/custom/documentation/forms/formvalidation/advanced.js
"use strict";var KTFormValidationDemoAdvanced={init:function(){!function(){const t=document.getElementById("kt_docs_formvalidation_daterangepicker");$("#kt_daterangepicker").daterangepicker();var e=FormValidation.formValidation(t,{fields:{daterangepicker_input:{validators:{notEmpty:{message:"Date range input is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});const i=document.getElementById("kt_docs_formvalidation_daterangepicker_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}(),function(){const t=document.getElementById("kt_docs_formvalidation_flatpickr");$("#kt_flatpickr").flatpickr();var e=FormValidation.formValidation(t,{fields:{flatpickr_input:{validators:{date:{format:"YYYY-MM-DD",message:"The value is not a valid date"},notEmpty:{message:"Flatpickr input is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});const i=document.getElementById("kt_docs_formvalidation_flatpickr_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}(),function(){const t=document.getElementById("kt_docs_formvalidation_image_input");var e=FormValidation.formValidation(t,{fields:{avatar:{validators:{notEmpty:{message:"Please select an image"},file:{extension:"jpg,jpeg,png",type:"image/jpeg,image/png",message:"The selected file is not valid"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});const i=document.getElementById("kt_docs_formvalidation_image_input_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}(),function(){const t=document.getElementById("kt_docs_formvalidation_password");var e=FormValidation.formValidation(t,{fields:{current_password:{validators:{notEmpty:{message:"Current password is required"}}},new_password:{validators:{notEmpty:{message:"The password is required"},callback:{message:"Please enter valid password",callback:function(t){if(t.value.length>0)return validatePassword()}}}},confirm_password:{validators:{notEmpty:{message:"The password confirmation is required"},identical:{compare:function(){return t.querySelector('[name="new_password"]').value},message:"The password and its confirm are not the same"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});const i=document.getElementById("kt_docs_formvalidation_password_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}(),function(){const t=document.getElementById("kt_docs_formvalidation_select2");var e=FormValidation.formValidation(t,{fields:{select2_input:{validators:{notEmpty:{message:"Select2 input is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});$(t.querySelector('[name="select2_input"]')).on("change",(function(){e.revalidateField("select2_input")}));const i=document.getElementById("kt_docs_formvalidation_select2_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}(),function(){const t=document.getElementById("kt_docs_formvalidation_tagify");new Tagify(document.querySelector("#kt_tagify"),{whitelist:["Tag 1","Tag 2","Tag 3","Tag 4","Tag 5","Tag 6","Tag 7","Tag 8","Tag 9","Tag 10","Tag 11","Tag 12"],maxTags:6,dropdown:{maxItems:20,classname:"tagify__inline__suggestions",enabled:0,closeOnSelect:!1}});var e=FormValidation.formValidation(t,{fields:{tagify_input:{validators:{notEmpty:{message:"Tagify input is required"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}});const i=document.getElementById("kt_docs_formvalidation_tagify_submit");i.addEventListener("click",(function(t){t.preventDefault(),e&&e.validate().then((function(t){console.log("validated!"),"Valid"==t&&(i.setAttribute("data-kt-indicator","on"),i.disabled=!0,setTimeout((function(){i.removeAttribute("data-kt-indicator"),i.disabled=!1,Swal.fire({text:"Form has been successfully submitted!",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}),2e3))}))}))}()}};KTUtil.onDOMContentLoaded((function(){KTFormValidationDemoAdvanced.init()}));

Anon7 - 2022
AnonSec Team