Server IP : 150.95.80.236 / Your IP : 18.220.200.30 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/authentication/sign-up/ |
Upload File : |
"use strict";var KTSignupComingSoon=function(){var e,t,o,n,i,r,a;return{init:function(){var s,u,l;e=document.querySelector("#kt_coming_soon_form"),t=document.querySelector("#kt_coming_soon_submit"),n=document.querySelector("#kt_coming_soon_counter_days"),i=document.querySelector("#kt_coming_soon_counter_hours"),r=document.querySelector("#kt_coming_soon_counter_minutes"),a=document.querySelector("#kt_coming_soon_counter_seconds"),o=FormValidation.formValidation(e,{fields:{email:{validators:{notEmpty:{message:"Email address is required"},emailAddress:{message:"The value is not a valid email address"}}}},plugins:{trigger:new FormValidation.plugins.Trigger,bootstrap:new FormValidation.plugins.Bootstrap5({rowSelector:".fv-row",eleInvalidClass:"",eleValidClass:""})}}),t.addEventListener("click",(function(n){n.preventDefault(),o.validate().then((function(o){"Valid"==o?(t.setAttribute("data-kt-indicator","on"),t.disabled=!0,setTimeout((function(){t.removeAttribute("data-kt-indicator"),t.disabled=!1,Swal.fire({text:"You have successfully subscribed !",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}}).then((function(t){t.isConfirmed&&(e.querySelector('[name="email"]').value="")}))}),2e3)):Swal.fire({text:"Sorry, looks like there are some errors detected, please try again.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn btn-primary"}})}))})),s=new Date,u=new Date(s.getTime()+1296e6+36e6+9e5).getTime(),l=function(){var e=(new Date).getTime(),t=u-e,o=Math.floor(t/864e5),s=Math.floor(t%864e5/36e5),l=Math.floor(t%36e5/6e4),c=Math.floor(t%6e4/1e3);n.innerHTML=o,i.innerHTML=s,r.innerHTML=l,a.innerHTML=c},setInterval(l,1e3),l()}}}();KTUtil.onDOMContentLoaded((function(){KTSignupComingSoon.init()}));