1(function($){$.fn.swipeIt=function(options){var settings=$.extend({swipeThreshold:40,scrollThreshold:10,draggable:false,preventTouchOn:"",onSwipeMove:null,onSwipeEnd:null},options);var el=this;var xStart=0;var xEnd=0;var threshold=settings.swipeThreshold;var hasTouch="ontouchend" in document;var touchStart=hasTouch?"touchstart":"pointerdown";var touchMove=hasTouch?"touchmove":"pointermove";var touchStop=hasTouch?"touchend":"pointermove";var swipeStart=function(event){event.stopPropagation();xStart=event.originalEvent.touches?event.originalEvent.touches[0].pageX:event;el.on(touchMove,swipeMove)};var swipeMove=function(event){if(!$(event.target).closest(settings.preventTouchOn).length||settings.preventTouchOn===""){xEnd=event.originalEvent.touches?event.originalEvent.touches[0].pageX:event;if(Math.abs(xStart-xEnd)>settings.scrollThreshold){event.preventDefault()}if(settings.draggable){var position;position=-(xStart-xEnd);settings.onSwipeMove(position)}if(xEnd===xStart){return false}el.on(touchStop,swipeEnd)}};var swipeEnd=function(){var direction;if(Math.abs(xEnd-xStart)>threshold){if(xEnd>xStart){direction="left"}else{direction="right"}settings.onSwipeEnd(direction)}el.off(touchMove,swipeMove);el.off(touchStop,swipeEnd)};el.on(touchStart,swipeStart);return this}})(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.