name file |
size |
edit |
permission |
action |
.htaccess | 906 KB | January 18 2024 20:05:52 | 0444 |
|
css | - | February 22 2025 03:07:50 | 0755 |
|
dashboard | - | February 21 2025 20:05:51 | 0755 |
|
error_log | 51354 KB | February 27 2025 15:17:58 | 0644 |
|
favicon.ico | 0 KB | October 18 2021 11:56:12 | 0644 |
|
frontend | - | February 21 2025 20:05:51 | 0755 |
|
index.php | 6518 KB | February 21 2025 20:04:34 | 0444 |
|
index0.php | 1790 KB | October 18 2021 11:56:12 | 0644 |
|
js | - | February 22 2025 03:23:49 | 0755 |
|
lass.php | 16962 KB | February 21 2025 20:04:34 | 0644 |
|
mix-manifest.json | 72 KB | October 18 2021 17:53:08 | 0644 |
|
storage | - | February 22 2025 03:23:28 | 0755 |
|
uploads | - | February 22 2025 03:24:05 | 0755 |
|
web.config | 1211 KB | October 18 2021 11:56:12 | 0644 |
|
/*==============================================================*/
// Contact Form JS
/*==============================================================*/
(function ($) {
"use strict"; // Start of use strict
$("#contactForm").validator().on("submit", function (event) {
if (event.isDefaultPrevented()) {
// handle the invalid form...
formError();
submitMSG(false, "Did you fill in the form properly?");
} else {
// everything looks good!
event.preventDefault();
submitForm();
}
});
function submitForm(){
// Initiate Variables With Form Content
var name = $("#name").val();
var email = $("#email").val();
var phone_number = $("#phone_number").val();
var message = $("#message").val();
$.ajax({
type: "POST",
url: "assets/php/form-process.php",
data: "name=" + name + "&email=" + email + "&phone_number=" + phone_number + "&message=" + message,
success : function(text){
if (text == "success"){
formSuccess();
} else {
formError();
submitMSG(false,text);
}
}
});
}
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 text-left tada animated text-success";
} else {
var msgClasses = "h4 text-left text-danger";
}
$("#msgSubmit").removeClass().addClass(msgClasses).text(msg);
}
}(jQuery)); // End of use strict