1;(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]);} 2$.fn.touchSwipeLeft=function(cb,prevent){if(prevent)this.data("stopPropagation",true);if(cb)return this.each(swipeLeft,[cb]);} 3$.fn.touchSwipeRight=function(cb,prevent){if(prevent)this.data("stopPropagation",true);if(cb)return this.each(swipeRight,[cb]);} 4function 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);} 5$.fn.unbindSwipeRight=function(){this.removeData("swipeRight");if(!this.data("swipeLeft"))this.unbindSwipe(true);} 6$.fn.unbindSwipe=function(changeData){if(!changeData)this.removeData("swipeLeft swipeRight stopPropagation");return this.unbind(touchStartEvent+" "+touchMoveEvent+" "+touchStopEvent);} 7function 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);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.