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/job-board.corals.io/public/assets/themes/marketplace-dragon/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/job-board.corals.io/public/assets/themes/marketplace-dragon/js/side-menu.js
(function($) {
	var $shadow_film = $('.shadow-film'),
		$mobile_menu_handler = $('.mobile-menu-handler'),
		$mobile_menu = $('#mobile-menu'),
		$side_list_handler = $('.dropdown.interactive'),
		$mobile_account_options_handler = $('.mobile-account-options-handler'),
		$account_options_menu = $('#account-options-menu'),
		$db_sidemenu_handler = $('.db-side-menu-handler'),
		$dashboard_options_menu = $('#dashboard-options-menu');

	$mobile_menu_handler.on('click', { id: '#mobile-menu' }, showSideMenu );
	$mobile_menu.children('.svg-plus').on('click', { id: '#mobile-menu' }, showSideMenu );

	$mobile_account_options_handler.on('click', { id: '#account-options-menu' }, showSideMenu );
	$account_options_menu.children('.svg-plus').on('click', { id: '#account-options-menu' }, showSideMenu );

	$db_sidemenu_handler.on('click', { id: '#dashboard-options-menu' }, showSideMenu );
	$dashboard_options_menu.children('.svg-plus').on('click', { id: '#dashboard-options-menu' }, showSideMenu );	

	function showSideMenu(e) {
		var $menu = $(e.data.id);

		toggleVisibility( $menu );
		toggleVisibility( $shadow_film );
	}

	function toggleVisibility( togglableItem ) {
		if( togglableItem.hasClass('closed') ) {
			togglableItem
				.removeClass('closed')
				.addClass('open');
		} else {
			togglableItem
				.removeClass('open')
				.addClass('closed');
		}
	}

	$side_list_handler
		.children('.dropdown-item.interactive')
		.on( 'click', toggleInnerMenu )
		.children('a').click(function(e) {
			e.preventDefault();
		});


	function toggleInnerMenu(e) {
		var $this = $(this);

		$this
			.toggleClass('active')
			.children('.inner-dropdown')
			.slideToggle(600);
	}
})(jQuery);

Spamworldpro Mini