403Webshell
Server IP : 77.39.210.126  /  Your IP : 216.73.216.203
Web Server : Apache
System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64
User : artecasarepresti ( 1022)
PHP Version : 7.4.33
Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/artecasarepresti/www/wp-content/themes/Avada/includes/lib/inc/customizer/search/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/artecasarepresti/www/wp-content/themes/Avada/includes/lib/inc/customizer/search/search.js
/* global Fuse, fusionFieldsSearch */
jQuery( document ).ready( function() {
	var fuse = new Fuse( fusionFieldsSearch.fields, {
		shouldSort: true,
		threshold: 0.2,
		location: 0,
		distance: 100,
		maxPatternLength: 32,
		minMatchCharLength: 3,
		keys: [
			'label',
			'description'
		]
	} );

	// Search
	jQuery( '#customize-control-fusion_search input' ).on( 'change keyup paste click focus', function() {
		var searchVal     = jQuery( this ).val(),
			results       = {},
			searchWrapper = jQuery( '#customize-control-fusion_search' ).find( '.fusion-search-results' );

		if ( 1 > searchWrapper.length ) {
			jQuery( '#customize-control-fusion_search' ).append( '<div class="fusion-search-results"></div>' );
		}

		// Clear previous results.
		jQuery( '.fusion-search-results' ).empty();

		if ( 2 < searchVal.length ) {
			results = fuse.search( searchVal );
		}

		// Add search results.
		_.each( results, function( result ) {
			jQuery( '#customize-control-fusion_search .fusion-search-results' ).append( '<span class="fusion-search-result" data-setting="' + result.settings + '">' + result.label + '</span>' );
		} );

		// Actions to run when clicking on a search result.
		jQuery( '.fusion-search-result' ).click( function() {

			// Focus on the clicked setting.
			wp.customize.control( jQuery( this ).data( 'setting' ) ).focus();
		} );
	} );

	wp.customize.section.each( function( section ) {

		// Get the pane element.
		var pane      = jQuery( '#sub-accordion-section-' + section.id ),
			sectionLi = jQuery( '#accordion-section-' + section.id );

		// Check if the section is expanded.
		if ( sectionLi.hasClass( 'control-section-fusion-search-section' ) ) {

			// Move element.
			pane.appendTo( sectionLi );

		}
	} );
} );

Youez - 2016 - github.com/yon3zu
LinuXploit