- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 3.135.219.165
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/puertode/public_html/mesa/scp/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/puertode/public_html/mesa/scp/js/jquery.dropdown.js
/*
 * jQuery dropdown: A simple dropdown plugin
 *
 * Inspired by Bootstrap: http://twitter.github.com/bootstrap/javascript.html#dropdowns
 *
 * Copyright 2011 Cory LaViska for A Beautiful Site, LLC. (http://abeautifulsite.net/)
 *
 * Dual licensed under the MIT or GPL Version 2 licenses
 *
*/
if(jQuery) (function($) {

	$.extend($.fn, {
		dropdown: function(method, data) {

			switch( method ) {
				case 'hide':
					hideDropdowns();
					return $(this);
				case 'attach':
					return $(this).attr('data-dropdown', data);
				case 'detach':
					hideDropdowns();
					return $(this).removeAttr('data-dropdown');
				case 'disable':
					return $(this).addClass('dropdown-disabled');
				case 'enable':
					hideDropdowns();
					return $(this).removeClass('dropdown-disabled');
			}

		}
	});

	function showMenu(event) {

		var trigger = $(this),
			dropdown = $( $(this).attr('data-dropdown') ),
			isOpen = trigger.hasClass('dropdown-open'),
            rtl = $('html').hasClass('rtl'),
            relative = trigger.offsetParent(),
            offset = relative.offset();
        if (relative.get(0) !== document.body)
            offset.top -= relative.scrollTop();

		event.preventDefault();
		event.stopPropagation();

		hideDropdowns();

		if( isOpen || trigger.hasClass('dropdown-disabled') ) return;

        if (rtl && dropdown.hasClass('anchor-right'))
            dropdown.removeClass('anchor-right');

		dropdown.css({
				left: -offset.left + (dropdown.hasClass('anchor-right') ?
				trigger.offset().left - (dropdown.outerWidth() - trigger.outerWidth() - 4) : trigger.offset().left),
				top: -offset.top + trigger.offset().top + trigger.outerHeight()
			}).show();
		trigger.addClass('dropdown-open');
	}

	function hideDropdowns(event) {

		var targetGroup = event ? $(event.target).parents().addBack() : null;
		if( targetGroup && targetGroup.is('.action-dropdown') && !targetGroup.is('a') ) return;

		$('body')
			.find('.action-dropdown').hide().end()
			.find('[data-dropdown]').removeClass('dropdown-open');
	}

	$(function () {
		$('body').on('click.dropdown', '[data-dropdown]', showMenu);
		$('html').on('click.dropdown', hideDropdowns);
		if(document.addEventListener) {
			$(window).on('resize.dropdown', hideDropdowns);
		}
	});

})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit