text: (function(a,c,b){if(typeof define==="function"&&define.amd){define(["jquery"],function(d){b(d,a,c);return d.mobile})}else{b(a.jQuery,a,c)}}(this,document,function(c,b,a,d){(function(i,h,l){var k=i(a);var g=("ontouchstart" in a),e=g?"touchstart":"mousedown",j=g?"touchend":"mouseup",f=g?"touchmove":"mousemove";i.each(("swipeleft swiperight ").split(" "),function(n,m){i.fn[m]=function(o){return o?this.bind(m,o):this.trigger(m)};if(i.attrFn){i.attrFn[m]=true}});i.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1000,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,start:function(m){var n=m.originalEvent.touches?m.originalEvent.touches[0]:m;return{time:(new Date()).getTime(),coords:[n.pageX,n.pageY],origin:i(m.target)}},stop:function(n,m){var o=n.originalEvent.touches?n.originalEvent.touches[0]:n;return{time:(new Date()).getTime(),coords:[o.pageX,o.pageY]}},handleSwipe:function(n,m){if(m.time-n.time<i.event.special.swipe.durationThreshold&&Math.abs(n.coords[0]-m.coords[0])>i.event.special.swipe.horizontalDistanceThreshold&&Math.abs(n.coords[1]-m.coords[1])<i.event.special.swipe.verticalDistanceThreshold){n.origin.trigger("swipe").trigger(n.coords[0]>m.coords[0]?"swipeleft":"swiperight")}},setup:function(){var m=this,n=i(m);n.bind(e,function(p){var r=i.event.special.swipe.start(p),o;function q(s){if(!r){return}o=i.event.special.swipe.stop(s,o);if(Math.abs(r.coords[0]-o.coords[0])>i.event.special.swipe.scrollSupressionThreshold){s.preventDefault()}}n.bind(f,q).one(j,function(){n.unbind(f,q);if(r&&o){i.event.special.swipe.handleSwipe(r,o)}r=o=l})})}};i.each({swipeleft:"swipe",swiperight:"swipe"},function(n,m){i.event.special[n]={setup:function(q,p,o){i(this).bind(m,function(){})}}})})(c,this)}));