PageSourceSearch

https://www.domingosanto.com/tributos/mail/contact.js

js domingosanto.com collected 2026-10-06 06:51:29 UTC 2,598 bytes, 65 lines download raw bytes

1$(function () {
2
3    $("#contactForm input, #contactForm textarea").jqBootstrapValidation({
4        preventSubmit: true,
5        submitError: function ($form, event, errors) {
6        },
7        submitSuccess: function ($form, event) {
8            event.preventDefault();
9            var name = $("input#name").val();
10            var email = $("input#email").val();
11            var subject = $("input#subject").val();
12            var message = $("textarea#message").val();
13
14            $this = $("#sendMessageButton");
15            $this.prop("disabled", true);
16
17            $.ajax({
18                url: "contact.php",
19                type: "POST",
20                data: {
21                    name: name,
22                    email: email,
23                    subject: subject,
24                    message: message
25                },
26                cache: false,
27                success: function () {
28                    $('#success').html("<div class='alert alert-success'>");
29                    $('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
30                            .append("</button>");
31                    $('#success > .alert-success')
32                            .append("<strong>Your message has been sent. </strong>");
33                    $('#success > .alert-success')
34                            .append('</div>');
35                    $('#contactForm').trigger("reset");
36                },
37                error: function () {
38                    $('#success').html("<div class='alert alert-danger'>");
39                    $('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
40                            .append("</button>");
41                    $('#success > .alert-danger').append($("<strong>").text("Sorry " + name + ", it seems that our mail server is not responding. Please try again later!"));
42                    $('#success > .alert-danger').append('</div>');
43                    $('#contactForm').trigger("reset");
44                },
45                complete: function () {
46                    setTimeout(function () {
47                        $this.prop("disabled", false);
48                    }, 1000);
49                }
50            });
51        },
52        filter: function () {
53            return $(this).is(":visible");
54        },
55    });
56
57    $("a[data-toggle=\"tab\"]").click(function (e) {
58        e.preventDefault();
59        $(this).tab("show");
60    });
61});
62
63$('#name').focus(function () {
64    $('#success').html('');
65});

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.