PageSourceSearch

https://prognomi.com/mail_hm/mail-script.js

js prognomi.com collected 2026-10-05 03:54:16 UTC 1,902 bytes, 64 lines download raw bytes

1jQuery(function($) {
2    
3//Validition
4$("#contactForm").validator().on("submit", function (event) {
5    if (event.isDefaultPrevented()) {
6        // handle the invalid form...
7        formError();
8        submitMSG(false, "fill in the form properly?");
9    } else {
10        // everything looks good!
11        event.preventDefault();
12        submitForm();
13    }
14});
15
16
17//from submition
18function submitForm(){
19    // Initiate Variables With Form Content
20    var first_name = $("#first_name").val();
21    var last_name = $("#last_name").val();
22    var email = $("#email").val();
23	var interst = $("#interst").val();
24    $.ajax({
25        type: "POST",
26        //url: "https://script.google.com/macros/s/AKfycbz9DHr8p0j2Xki8o8MdHbiwxDTACwc0eVhMK6qjtiC6S92k0GdzW8ViMp6fcWccv42K/exec",
27        url:"mail_hm/contact_mail.php",
28        data: "first_name=" + first_name + "&last_name=" + last_name + "&email=" + email + "&interst=" + interst,
29        success : function(data,text){
30            $('#msgSubmit').html(data);
31            if (text == "success"){
32                formSuccess();
33            } else {
34                formError();
35                submitMSG(false,text);
36                
37            }
38            
39        }
40    });
41}
42
43//msgs
44function formSuccess(){
45    $("#contactForm")[0].reset();
46    submitMSG(true, "Thanks For the Booking request!")
47}
48
49function formError(){
50    $("#contactForm").removeClass().addClass('shake animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
51        $(this).removeClass();
52    });
53}
54
55function submitMSG(valid, msg){
56    if(valid){
57        var msgClasses = "h3 text-center tada animated text-success";
58    } else {
59        var msgClasses = "h3 text-center text-danger";
60    }
61    $("#msgSubmit").removeClass().addClass(msgClasses).text(msg);
62}
63	
64})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.