PageSourceSearch

https://www.ambragaming.com/wp-content/plugins/google-captcha/js/script.js?ver=5.4.23

js ambragaming.com collected 2026-10-06 13:15:23 UTC 1,714 bytes, 55 lines download raw bytes

1(function( $ ) {
2	var gglcptch_match = true;
3	$( document ).ready(function() {
4		$( '#recaptcha_widget_div' ).parent().children( 'input:submit' ).click(function() {
5			click_trigger();
6			return gglcptch_match;
7		});
8		$( '#cntctfrm_contact_form, #cntctfrmpr_contact_form' ).find( 'input:submit' ).click(function() {
9			click_trigger();
10			return gglcptch_match;
11		});
12	});
13
14	function click_trigger() {
15		var req = getXmpHttp();
16		/* fields for checking Google Captcha */
17		var recaptcha_challenge_field = $( '#recaptcha_challenge_field' ).val();
18		var recaptcha_response_field = $( '#recaptcha_response_field' ).val();
19		/* opening asynchronous connection */
20		req.open( 'POST', gglcptch_path, false );
21		req.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
22		/* sending POST parameters */
23		req.send( 'recaptcha_challenge_field=' + recaptcha_challenge_field + '&recaptcha_response_field=' + recaptcha_response_field );
24		
25		if ( req.responseText == 'error' ) {
26			/* wrong captcha */
27			if ( ! $( '#gglcptch_error' ).text() ) {
28				$( '#recaptcha_widget_div' ).after( '<label id="gglcptch_error" style="color:#f00;">' + gglcptch_error_msg + '</label>' );
29				gglcptch_match = false;
30			}
31			$('#recaptcha_reload').click();
32		} else {
33			/* correct catcha */
34			gglcptch_match = true;
35		}
36	}
37
38	/* Creating xmlhttp object */
39	function getXmpHttp() {
40		var xmlhttp;
41		try {
42			xmlhttp = new ActiveXObject( 'Msxml2.XMLHTTP' );
43		} catch ( e ) {
44			try {
45				xmlhttp = new ActiveXObject( 'Microsoft.XMLHTTP' );
46			} catch ( E ) {
47				xmlhttp = false;
48			}
49		}
50		if ( ! xmlhttp && typeof XMLHttpRequest != 'undefined' ) {
51			xmlhttp = new XMLHttpRequest();
52		}
53		return xmlhttp;
54	}
55})(jQuery);

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.