PageSourceSearch

https://www.hongfanglaw.com/wp-content/themes/hongfanglaw/assets/js/ajax-script.js?ver=70894924420

js hongfanglaw.com collected 2026-10-02 14:15:49 UTC 1,567 bytes, 43 lines download raw bytes

1jQuery(document).ready(function() {
2	var request;
3	$("form.newsletter").on("submit", function( event ) {
4		if ( request ) {
5            request.abort();
6        }
7        var
8            $form = $(this),
9            $inputs = $form.find("input, select, button, textarea"),
10            serializedData = $form.serialize();
11
12        request = $.ajax({
13            url: ajax_object.ajax_url,
14            type: 'post',
15            data: {
16                action: 'hfl_ajax_subscribe',
17                nonce: ajax_object.ajax_nonce,
18                ne: $form.find('.tnp-email').val(), //THIS IS IMPORTANT TO SUBMIT!! ITS REQUIRED BY THE subscribe() METHOD
19                data: serializedData
20            },
21            beforeSend: function () {
22                //disable all field
23                $inputs.prop( "disabled", true );
24            },
25            success: function ( response ) {
26                //we have an answer. it will be placed right after our form
27                $('.newsletter-success').remove();
28                $('.newsletter-error').remove();
29                if ( response.status == 'success' ) {
30                    $('.tnp-email').val('');
31                }
32                var text = $( '<p class="newsletter-' + response.status + '">' + response.msg + '</p>' ).hide();
33                $form.after( text ).next().slideDown();
34            },
35            complete: function() {
36                //we are done, reenable all fields
37                $inputs.prop( "disabled", false );
38            }
39        });
40
41        event.preventDefault();
42	});
43});

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.