Server IP : 108.170.25.35 / Your IP : 3.133.157.133 Web Server : Apache/2 System : Linux gains.winzonesoftech.com 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : teamspirit ( 1601) PHP Version : 8.1.28 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/teamspirit/domains/teamspiritacademy.com/public_html/assets/js/ |
Upload File : |
(function($){"use strict";$("#contactForm").validator().on("submit",function(event){if(event.isDefaultPrevented()){formError();submitMSG(false,"Did you fill in the form properly?");} else{event.preventDefault();submitForm();}});function submitForm(){var name=$("#name").val();var email=$("#email").val();var msg_subject=$("#msg_subject").val();var phone_number=$("#phone_number").val();var message=$("#message").val();var gridCheck=$("#gridCheck").val();$.ajax({type:"POST",url:"assets/php/form-process.php",data:"name="+name+"&email="+email+"&msg_subject="+msg_subject+"&phone_number="+phone_number+"&message="+message+"&gridCheck="+gridCheck,success:function(statustxt){if(statustxt=="success"){formSuccess();} else{formError();submitMSG(false,statustxt);}}});} function formSuccess(){$("#contactForm")[0].reset();submitMSG(true,"Message Submitted!")} function formError(){$("#contactForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',function(){$(this).removeClass();});} function submitMSG(valid,msg){if(valid){var msgClasses="h4 tada animated text-success";} else{var msgClasses="h4 text-danger";} $("#msgSubmit").removeClass().addClass(msgClasses).text(msg);}}(jQuery));