PageSourceSearch

https://equipos.com.uy/assets/js/subscribeform.js

js equipos.com.uy collected 2026-10-02 11:10:55 UTC 1,297 bytes, 34 lines download raw bytes

1$(document).ready(function() {
2    // Function to handle form submission
3    $("#subscribe-form").submit(function(event) {
4        // Prevent the default form submission
5        event.preventDefault();
6
7        // Get the form data
8        var formData = $(this).serialize();
9
10        // Send an AJAX request
11        $.ajax({
12            type: "POST",
13            url: "assets/mail/subscribe.php",
14            data: formData,
15            success: function(response) {
16                console.log(response);  // Log the response to the console
17                var resultElement = $("#result1");
18            
19                if (response.success === true) {
20                    resultElement.text("Thank you for subscribing!").removeClass("text-error").addClass("text-success");
21                    $("#subscribe-form")[0].reset();
22                } else {
23                    resultElement.text("Failed to subscribe. Please try again later.").removeClass("text-success").addClass("text-error");
24                }
25            },
26
27            error: function() {
28                // Display error message if AJAX request fails
29                $("#result1").text("Failed to subscribe. Please try again later.").removeClass("text-success").addClass("text-error");
30            }
31        });
32    });
33});
34

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.