PageSourceSearch

https://www.decadeonrestoration.org/themes/restorationdecade/js/pledge20_footer.js?decade=&tlct1g

js decadeonrestoration.org collected 2026-09-24 08:37:35 UTC 1,963 bytes, 61 lines download raw bytes

1function isEmail(email) {
2    var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
3    return regex.test(email);
4}
5
6function YourOnSubmitFn(token) {
7    //document.getElementById("demo-form").submit();
8    let email = $("#email").val();
9    /*alert(email);
10    console.log(email);*/
11    //console.log($)
12    var data = {
13        'email': $("#email").val()
14    }
15
16    if (isEmail(email)) {
17        //console.log(data);
18
19        //Post data to Drupal
20        $.ajax({
21            url: '/signup_with_us_footer',
22            method: 'POST',
23            headers: {
24                'Content-Type': 'application/json',
25            },
26            data: JSON.stringify(data),
27            success: function(node) {
28                //console.log(node);
29                $('#subscribe_form').fadeToggle();
30
31                $('.footer_subscribe').append("<div class='processing'>Processing...</div>");
32                setTimeout(
33                    function() {
34                        $('.processing').fadeToggle();
35                        $('.subscribe_form_thankyou').fadeToggle();
36                    }, 2500);
37                //window.location = "/thank-you";
38
39            },
40            error: function(XMLHttpRequest, textStatus, errorThrown) {
41                console.log("Status: " + textStatus);
42                console.log("Error: " + errorThrown);
43            }
44        });
45    } else {
46        $(".error_form").css({ 'display': 'block', 'opacity': '1' });
47        $("#FNAME").css('background', 'rgba(255,40,58,0.7)');
48        $("#LNAME").css('background', 'rgba(255,40,58,0.7)');
49        $("#email").css('background', 'rgba(255,40,58,0.7)');
50        setTimeout(function() {
51            $("#FNAME").css('background', '#FFFFFF');
52            $("#LNAME").css('background', '#FFFFFF');
53            $("#email").css('background', '#FFFFFF');
54            $(".error_form").css({ 'display': 'none', 'opacity': '0' });
55        }, 4000);
56    }
57
58
59}
60
61

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.