403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.216.209.235
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/recaptcha/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/recaptcha/js/hcaptcha.js
/* global hcaptcha */

window.itsecHCaptchaLoad = () => (function ( $, config ) {
	const submit = function ( $form, id ) {
		return function ( e ) {
			const token = hcaptcha.getResponse( id );

			if ( !token ) {
				e.preventDefault();
				return;
			}

			$form.off( 'submit.itsecRecaptcha' );
			$form.off( 'click.itsecRecaptcha' );

			const $input = $( ':input[name="h-captcha-response"]', $form );

			if ( $input.length ) {
				$input.val( token );
			} else {
				$( '<input type="hidden">' ).attr( {
					name : 'h-captcha-response',
					value: token,
				} ).appendTo( $form );
			}
		}
	};

	$( function () {
		$( '.itsec-h-captcha' ).each( function () {
			const $captcha = $( this );
			const $form = $captcha.parents( 'form' ),
				captchaId = $captcha.attr( 'id' );

			const clientId = hcaptcha.render( captchaId, {
				...config,
			} );

			$form.on( 'submit.itsecRecaptcha', submit( $form, clientId ) );
		} );
	} );
})( jQuery, window.itsecRecaptcha.config );

Youez - 2016 - github.com/yon3zu
LinuXploit