403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.216.4
Web Server : Apache
System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaa ( 38250)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaa/www2024/wp-content/plugins/gravityforms/includes/settings/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaa/www2024/wp-content/plugins/gravityforms/includes/settings/js/select-custom.js
window.addEventListener( 'load' , function() {

	var $selectOptions = document.querySelectorAll( '.gform-settings-field__select_custom select' );
	var $buttons       = document.querySelectorAll( '.gform-settings-select-custom__reset' );

	$selectOptions.forEach( function( $select ) {

		var $inputField = $select.parentNode.nextSibling;

		$select.addEventListener( 'change', function( e ) {

			if ( e.target.value !== 'gf_custom' ) {
				return;
			}

			// Hide drop down, show input.
			$select.style.display     = 'none';
			$inputField.style.display = 'block';

		} );

	} );

	$buttons.forEach( function( $button ) {

		var $inputField = $button.parentNode;

		$button.addEventListener( 'click', function( e ) {

			// Hide input, show drop down.
			$inputField.style.display = 'none';
			jQuery( this )
				.closest('div.gform-settings-field__select_custom')
				.find( 'select' )
				.each( function( index, element ) {
					element.value         = '';
					element.style.display = 'block';
				}
			);

		} );

	} );

} );

Youez - 2016 - github.com/yon3zu
LinuXploit