PageSourceSearch

https://sailotech.com/js/contact.js

js sailotech.com collected 2026-10-08 12:50:10 UTC 1,422 bytes, 46 lines download raw bytes

1$(function() {
2
3    window.verifyRecaptchaCallback = function(response) {
4        $('input[data-recaptcha]').val(response).trigger('change');
5    }
6
7    window.expiredRecaptchaCallback = function() {
8        $('input[data-recaptcha]').val("").trigger('change');
9    }
10
11    $('#contact-form').validator();
12
13    $('#contact-form').on('submit', function(e) {
14
15        if (!e.isDefaultPrevented()) {
16
17            var url = "php/contact.php";
18
19            $('#gifct').css('display', 'block');
20
21
22
23            $.ajax({
24                type: "POST",
25                url: url,
26                data: $(this).serialize(),
27                success: function(data) {
28                    var messageAlert = 'alert-' + data.type;
29                    var messageText = data.message;
30
31                    var alertBox = '<div class="alert ' + messageAlert + ' alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>' + messageText + '</div>';
32                    if (messageAlert && messageText) {
33                        $('#gifct').css('display', 'none');
34                        $('#contact-form').find('.messages').html(alertBox);
35                        $('#contact-form')[0].reset();
36                        grecaptcha.reset();
37                    }
38                }
39            });
40
41
42            return false;
43
44        }
45    })
46});

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.