File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pabloaso/public_html/wp-content/plugins/ithemes-security-pro/pro/recaptcha/js/optin.js
( function( $, config ) {
	$( function() {
		$( document ).on( 'click', '.itsec-recaptcha-opt-in__agree', function( e ) {
			e.preventDefault();

			var $optins = $( '.itsec-recaptcha-opt-in' )
				.addClass( 'itsec-recaptcha-opt-in--loading' );

			$.ajax( {
				url     : config[ 'googlejs' ],
				dataType: 'script',
				cache   : true,
				success : function() {
					$optins.each( function() {
						var $optin = $( this );
						$optin.parents( 'form' ).append( $( '<input type="hidden">' ).attr( {
							name : 'recaptcha-opt-in',
							value: 'true',
						} ) );

						var $template = $( '.itsec-recaptcha-opt-in__template', $optin );
						$optin.replaceWith( $template.html() );
					} );

					if ( window.grecaptcha && window.grecaptcha.render && config.onload && window[ config.onload ] ) {
						window[ config.onload ]();
					}
				},
			} );
		} );
	} );
} )( jQuery, window[ 'ITSECRecaptchaOptIn' ] );