/home/vianto5/tcorporation.com/js
NameSizeModeActions
.DS_Store61480644editdlrm
bootstrap.min.js370450755editdlrm
contact-me.js27560755editdlrm
jquery.countdown.js95500755editdlrm
jquery.easings.min.js129260755editdlrm
jquery.fullpage-min.js297300644editdlrm
jquery.fullpage.js1194440755editdlrm
jquery.min.js971620644editdlrm
jquery.swipebox.js252740755editdlrm
main-essential-2-bonus.js46760755editdlrm
main-essential-bonus.js78540755editdlrm
main-fullscreen-min.js49570644editdlrm
main-fullscreen.js49550755editdlrm
main-min.js30590644editdlrm
main-minimal.js27490755editdlrm
main-slideshow-min.js49590644editdlrm
main-slideshow.js49570755editdlrm
main.js57420755editdlrm
modernizr.custom.js83720644editdlrm
notifyMe.js52410755editdlrm
placeholder.js43460644editdlrm
vegas.js222000755editdlrm
Edit: /home/vianto5/tcorporation.com/js/contact-me.js (2756B)
$(document).ready(function() { $("#contact-form [type='submit']").click(function(e) { e.preventDefault(); $('#valid-form').html('Sending '); // Message displayed in the submit button during the sending // Get input field values of the contact form var user_checking = $('input[name=checking]').val(); // Anti-spam field var user_name = $('input[name=name]').val(); var user_email = $('input[name=email-address]').val(); var user_reason = $('select[name=reason]').val(); var user_phone = $('input[name=phone]').val(); var user_message = $('textarea[name=message]').val(); var user_newsletter = $('input[name=newsletter]').val(); // Datadata to be sent to server post_data = { 'userChecking':user_checking, 'userName':user_name, 'userEmail':user_email, 'userSubject':user_reason, 'userPhone':user_phone, 'userMessage':user_message, 'userNewsletter':user_newsletter, }; // Ajax post data to server $.post('php/contact-me.php', post_data, function(response){ // Load json data from server and output message if(response.type == 'error') { output = '

'+response.text+'

'; $('#valid-form').html('Send my Message'); // Message displayed in the submit button if an error has occured } else { output = '

'+response.text+'

'; // After, all the fields are reseted $('#contact-form input').val(''); $('#contact-form textarea').val(''); $('#contact-form select').val('placeholder').addClass('no-selection'); $('#valid-form').html('Sent!'); // Message displayed in the submit button when the submission is successfull } $("#answer").hide().html(output).fadeIn(); }, 'json'); }); // Reset and hide all messages on .keyup() $("#contact-form input, #contact-form textarea").keyup(function() { $("#answer").fadeOut(); }); // Accept only figure from 0 to 9 and + ( ) in the phone field $("#contact-form #phone").keyup(function() { $("#phone").val(this.value.match(/[0-9+() -]*/)); }); $('#contact-form').on('change', 'input#ios', function() { this.checked ? this.value = 'Yes' : this.value = 'No'; }); });