Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/core/dropDownSearch.js
var $j = jQuery.noConflict();

$j( document ).on( 'ready', function() {
	"use strict";
	// Drop down search
	acmthemesDropDownSearch();
} );

/* ==============================================
DROP DOWN SEARCH
============================================== */
function acmthemesDropDownSearch() {
	"use strict"

	// Return if is the not this search style
	if ( 'drop_down' != acmthemesLocalize.menuSearchStyle ) {
		return;
	}

	var $searchDropdownToggle = $j( 'a.search-dropdown-toggle' ),
		$searchDropdownForm   = $j( '#searchform-dropdown' );

	$searchDropdownToggle.click( function( event ) {
		// Display search form
		$searchDropdownForm.toggleClass( 'show' );
		// Active menu item
		$j( this ).parent( 'li' ).toggleClass( 'active' );
		// Focus
		var $transitionDuration = $searchDropdownForm.css( 'transition-duration' );
		$transitionDuration = $transitionDuration.replace( 's', '' ) * 1000;
		if ( $transitionDuration ) {
			setTimeout( function() {
				$searchDropdownForm.find( 'input.field' ).focus();
			}, $transitionDuration );
		}
		// Return false
		return false;
	} );

	// Close on doc click
	$j( document ).on( 'click', function( event ) {
		if ( ! $j( event.target ).closest( '#searchform-dropdown.show' ).length ) {
			$searchDropdownToggle.parent( 'li' ).removeClass( 'active' );
			$searchDropdownForm.removeClass( 'show' );
		}
	} );

}

Spamworldpro Mini