PageSourceSearch

https://www.ligamilitarilor.ro/wp-content/plugins/captcha/js/front…?ver=1671ec2bc9e382b04c3775a8909e468a

js ligamilitarilor.ro collected 2026-10-02 12:14:21 UTC 2,454 bytes, 70 lines download raw bytes

1( function( $ ) {
2	$( document ).on( "click", '.cptch_reload_button, .wpcf7-submit', function() {
3		cptch_reload( $( this ) );
4	}).on( "touchstart", function( event ) {
5		event = event || window.event;
6		var item = $( event.target );
7		if ( cptch_vars.enlarge == '1' ) {
8			var element = $( event.target );
9			if ( element.hasClass( 'cptch_img' ) ) {
10				event.preventDefault();
11				element.toggleClass( 'cptch_reduce' );
12				$( '.cptch_img' ).not( element ).removeClass( 'cptch_reduce' );
13			} else {
14				$( '.cptch_img' ).removeClass( 'cptch_reduce' );
15			}
16		}
17		if ( item.hasClass( 'cptch_reload_button' ) || item.attr( 'name' ) == 'ac_form_submit' )
18			cptch_reload( item );
19	}).ready( function() {
20		var ajax_containers = $( '.cptch_ajax_wrap' );
21
22		if ( ! ajax_containers.length )
23			return;
24
25		ajax_containers.each( function() {
26			cptch_reload( $( this ), true );
27		});
28	});
29})(jQuery);
30
31/**
32 * Reload captcha
33 */
34function cptch_reload( object, is_ajax_load ) {
35	is_ajax_load = is_ajax_load || false;
36	(function($) {
37		var captcha = object.hasClass( '.cptch_reload_button' ) ? object.parent().parent( '.cptch_wrap' ) : object.closest( 'form' ).find( '.cptch_wrap' ),
38			button  = captcha.find( '.cptch_reload_button' );
39		if ( ! captcha.length || button.hasClass( 'cptch_active' ) )
40			return false;
41		button.addClass( 'cptch_active' );
42		var captcha_block = captcha.parent(),
43			input         = captcha.find( 'input:text' ),
44			input_name    = is_ajax_load ? captcha.attr( 'data-cptch-input' ) : input.attr( 'name' ),
45			input_class   = is_ajax_load ? captcha.attr( 'data-cptch-class' ) : input.attr( 'class' ).replace( /cptch_input/, '' ).replace( /^\s+|\s+$/g, '' ),
46			form_slug     = is_ajax_load ? captcha.attr( 'data-cptch-form' ) : captcha_block.find( 'input[name="cptch_form"]' ).val();
47		$.ajax({
48			type: 'POST',
49			url: cptch_vars.ajaxurl,
50			data: {
51				action:              'cptch_reload',
52				cptch_nonce:       cptch_vars.nonce,
53				cptch_input_name:  input_name,
54				cptch_input_class: input_class,
55				cptch_form_slug:   form_slug
56			},
57			success: function( result ) {
58				captcha_block.find( '.cptch_to_remove' ).remove();
59				if ( input_class === '' )
60					captcha.replaceWith( result ); /* for default forms */
61				else
62					captcha_block.replaceWith( result ); /* for custom forms */
63			},
64			error : function ( xhr, ajaxOptions, thrownError ) {
65				alert( xhr.status );
66				alert( thrownError );
67			}
68		});
69	})(jQuery);
70}

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.