feat: Add comprehensive documentation suite and reorganize project structure
- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
This commit is contained in:
55
f_offline/assets/js/contact-form-script.min.js
vendored
Normal file
55
f_offline/assets/js/contact-form-script.min.js
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
$("#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 msg_subject = $("#msg_subject").val();
|
||||
var message = $("#message").val();
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "assets/php/form-process.php",
|
||||
data: "name=" + name + "&email=" + email + "&msg_subject=" + msg_subject + "&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 = "h3 text-left tada animated text-success";
|
||||
} else {
|
||||
var msgClasses = "h3 text-left text-danger";
|
||||
}
|
||||
$("#msgSubmit").removeClass().addClass(msgClasses).text(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user