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VRs3D1 :z#:Wa:%dǟ'`$e=*DoY7 dL#X/Bxh |Mo \jib0HLmT{k< 3- IIx Huk#bt`]b1c傆j=Lmn?'*5ķTl&I ,8Q^=Lj`U *{&ƽ]4@),ɞcj`lCX ?Ui0<,GE4}Zfjih[gO DKY=P }|;e%El7'aljB@>' $}ǀD6==|+e-" 3}'twPCLDCRXӽecXЅ1%@ϒV/|HXm뿚.xL 8ihdʵѣSdu-Q-Y*LMMa=Vp졣PHJnLJ(JaAS}( ;c%ܭ% <˕QQBvAի)j1+HB wErP)UW} L 9p)ʍFB.^@laqd;vL@tr\qFˣ{Bc50B;#Lk(cDYw[ FA=H E Z' Q\"U9SBm A($۷i^n #XbdDer>)ͨHڽ| #gPqe6&p[gk|V3 NJ&FDu0C ^8jcDq ->Msh;*W0.+RzZyQtH^[=L^W6MT``TN+U$^W> S87JÎ't#:TKbEDu2]Xl3bo@k|mLP.\|ԫ#PxMH1"G&JLE^ * Y%1Fąf+t&UfJ+R#u/`(QJb0B ,mc Q}Q!0% %etW abdullahpasa1noluasm.com - UnknownSec

name : jquery.contextMenu.js
/**
 * Enables the context menu for elements bound to the 'contextMenu' event
 */

(function($)
{
	/*
	 * Enable context menu
	 */
	document.oncontextmenu = function(event)
	{
		var e = window.event || event;
		var target = $(e.target || e.srcElement);
		var list = [];
		target.trigger('contextMenu', [list]);
		
		// If some menu elements added
		if (list.length > 0)
		{
			// Mouse position
			var posx = 0;
			var posy = 0;
			if (e.pageX || e.pageY)
			{
				posx = e.pageX;
				posy = e.pageY;
			}
			else if (e.clientX || e.clientY)
			{
				posx = e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;
				posy = e.clientY+document.body.scrollTop+document.documentElement.scrollTop;
			}
			
			$('#contextMenu').html(buildMenuLevel(list)).css({
				top: posy+'px',
				left: posx+'px'
			}).show().openDropDownMenu();
			
			// Listener
			$(document).bind('click', closeContextMenu);
			
			// Prevent browser menu
			return false;
		}
	};
	
	/*
	 * Simple functions for closing menu
	 */
	function closeContextMenu()
	{
		$('#contextMenu').empty().hide();
		removeBinding();
	};
	function removeBinding()
	{
		$(document).unbind('click', closeContextMenu);
	};
	
	// Insert menu element
	$(document).ready(function()
	{
		$(document.body).append('<div id="contextMenu" class="menu"></div>');
	});
	
	/**
	 * Builds a level of the menu (recursive function)
	 * @param array list the menu elements list
	 */
	function buildMenuLevel(list)
	{
		var html = '<ul>';
		var defaults = {
			text: 'Link',
			alt: '',
			link: '',
			subs: [],
			icon: ''
		};
		
		for (var element in list)
		{
			// If separation
			if (typeof(list[element]) != 'object')
			{
				html += '<li class="sep"></li>';
			}
			else
			{
				var el = $.extend({}, defaults, list[element]);
				var alt = (el.alt.length > 0) ? ' title="'+el.alt+'"' : '';
				var icon = (el.icon.length > 0) ? ' class="icon_'+el.icon+'"' : '';
				if (el.link.length > 0)
				{
					var opener = 'a href="'+el.link+'"';
					var closer = 'a';
				}
				else
				{
					var opener = 'span';
					var closer = 'span';
				}
				
				// Opening
				html += '<li'+icon+'><'+opener+alt+'>'+el.text+'</'+closer+'>';
				
				// If sub menus
				if (typeof(el.subs) == 'object' && el.subs.length > 0)
				{
					html += buildMenuLevel(el.subs);
				}
				
				// Close
				html += '</li>';
			}
		}
		
		return html+'</ul>';
	};

})(jQuery);

© 2024 UnknownSec