PageSourceSearch

https://www.vendasta.com/blog/wp-content/plugins/vd-cache-control/min/jquery.mobile.min.js?ver=54b92140

js vendasta.com collected 2026-09-24 08:36:50 UTC 6,263 bytes, 12 lines download raw bytes

1/*!
2* jQuery Mobile 1.5.0-alpha.1
3* (c) 2010, 2017 jQuery Foundation, Inc.
4* jquery.org/license
5*
6* Modified to adapt the latest jQuery version (v3 above) included on WordPress 5.6:
7* - (2020-12-11) - Try to access `.concat` of undefined `$.event.props` - removed.
8* - (2021-02-04) - jQuery bind method is deprecated.
9* - (2021-02-04) - jQuery unbind method is deprecated.
10* - (2024-10-13) - Upgrade to 1.5.0-alpha.1
11* - (2024-10-20) - Remove code unrelated to swipe feature
12*/(function(w,L,T){typeof define=="function"&&define.amd?define(["jquery"],function(O){return T(O,w,L),O.mobile}):T(w.jQuery,w,L)})(this,document,function(w,L,T,O){(function(t,S,b,j){function v(e){for(;e&&typeof e.originalEvent!="undefined";)e=e.originalEvent;return e}function X(e,c){var s=e.type,r,l,f,p,m,x,W,N,tt;if(e=t.Event(e),e.type=c,r=e.originalEvent,l=[],s.search(/^(mouse|click)/)>-1&&(l=Q),r)for(W=l.length,p;W;)p=l[--W],e[p]=r[p];if(s.search(/mouse(down|up)|click/)>-1&&!e.which&&(e.which=1),s.search(/^touch/)!==-1&&(f=v(r),s=f.touches,m=f.changedTouches,x=s&&s.length?s[0]:m&&m.length?m[0]:j,x))for(N=0,tt=E.length;N<tt;N++)p=E[N],e[p]=x[p];return e}function g(e,c,s){var r;return(s&&s[e]||!s&&k(c.target,e))&&(r=X(c,e),t(c.target).trigger(r)),r}function Y(e){var c=v(e).touches,s,r,l;c&&c.length===1&&(s=e.target,r=C(s),r.hasVirtualBinding&&(J=ot++,t.data(s,a,J),D(),M(),d=!1,l=v(e).touches[0],Z=l.pageX,$=l.pageY,g("vmouseover",e,r),g("vmousedown",e,r)))}function I(e){V||(d||g("vmousecancel",e,C(e.target)),d=!0,_())}function y(e){if(!V){var c=v(e).touches[0],s=d,r=t.vmouse.moveDistanceThreshold,l=C(e.target);d=d||Math.abs(c.pageX-Z)>r||Math.abs(c.pageY-$)>r,d&&!s&&g("vmousecancel",e,l),g("vmousemove",e,l),_()}}function o(e){if(!V){A();var c=C(e.target),s,r;g("vmouseup",e,c),d||(s=g("vclick",e,c),s&&s.isDefaultPrevented()&&(r=v(e).changedTouches[0],U.push({touchID:J,x:r.clientX,y:r.clientY}),et=!0)),g("vmouseout",e,c),d=!1,_()}}function n(e){var c=e.substr(1);return{setup:function(){q(this)||t.data(this,i,{});var s=t.data(this,i);s[e]=!0,h[e]=(h[e]||0)+1,h[e]===1&&z.on(c,H),t(this).on(c,R),G&&(h.touchstart=(h.touchstart||0)+1,h.touchstart===1&&z.on("touchstart",Y).on("touchend",o).on("touchmove",y).on("scroll",I))},teardown:function(){--h[e],h[e]||z.off(c,H),G&&(--h.touchstart,h.touchstart||z.off("touchstart",Y).off("touchmove",y).off("touchend",o).off("scroll",I));var s=t(this),r=t.data(this,i);r&&(r[e]=!1),s.off(c,R),q(this)||s.removeData(i)}}}var i="virtualMouseBindings",a="virtualTouchID",u="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),E="clientX clientY pageX pageY screenX screenY".split(" "),B=t.event.mouseHooks?t.event.mouseHooks.props:[],Q=[],h={},F=0,Z=0,$=0,d=!1,U=[],et=!1,V=!1,G="addEventListener"in b,z=t(b),ot=1,J=0,K,P;for(t.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},P=0;P<u.length;P++)t.event.special[u[P]]=n(u[P]);G&&b.addEventListener("click",function(e){var c=U.length,s=e.target,r,l,f,p,m,x;if(c)for(r=e.clientX,l=e.clientY,K=t.vmouse.clickDistanceThreshold,f=s;f;){for(p=0;p<c;p++)if(m=U[p],x=0,f===s&&Math.abs(m.x-r)<K&&Math.abs(m.y-l)<K||t.data(f,a)===m.touchID){e.preventDefault(),e.stopPropagation();return}f=f.parentNode}},!0)})(w,L,T),function(t){t.mobile={}}(w),function(t,S){var b={touch:"ontouchend"in T};t.mobile.support=t.mobile.support||{},t.extend(t.support,b),t.extend(t.mobile.support,b)}(w),function(t,S,b){function j(o,n,i,a){var u=i.type;i.type=n,a?t.event.trigger(i,b,o):t.event.dispatch.call(o,i),i.type=u}var v=t(T),X=t.mobile.support.touch,g="touchmove scroll",Y=X?"touchstart":"mousedown",I=X?"touchend":"mouseup",y=X?"touchmove":"mousemove";t.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(o,n){t.fn[n]=function(i){return i?this.on(n,i):this.trigger(n)},t.attrFn&&(t.attrFn[n]=!0)}),t.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(o){var n=S.pageXOffset,i=S.pageYOffset,a=o.clientX,u=o.clientY;return o.pageY===0&&Math.floor(u)>Math.floor(o.pageY)||o.pageX===0&&Math.floor(a)>Math.floor(o.pageX)?(a-=n,u-=i):(u<o.pageY-i||a<o.pageX-n)&&(a=o.pageX-n,u=o.pageY-i),{x:a,y:u}},start:function(o){var n=o.originalEvent.touches?o.originalEvent.touches[0]:o,i=t.event.special.swipe.getLocation(n);return{time:new Date().getTime(),coords:[i.x,i.y],origin:t(o.target)}},stop:function(o){var n=o.originalEvent.touches?o.originalEvent.touches[0]:o,i=t.event.special.swipe.getLocation(n);return{time:new Date().getTime(),coords:[i.x,i.y]}},handleSwipe:function(o,n,i,a){if(n.time-o.time<t.event.special.swipe.durationThreshold&&Math.abs(o.coords[0]-n.
12coords[0])>t.event.special.swipe.horizontalDistanceThreshold&&Math.abs(o.coords[1]-n.coords[1])<t.event.special.swipe.verticalDistanceThreshold){var u=o.coords[0]>n.coords[0]?"swipeleft":"swiperight";return j(i,"swipe",t.Event("swipe",{target:a,swipestart:o,swipestop:n}),!0),j(i,u,t.Event(u,{target:a,swipestart:o,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var o,n=this,i=t(n),a={};o=t.data(this,"mobile-events"),o||(o={length:0},t.data(this,"mobile-events",o)),o.length++,o.swipe=a,a.start=function(u){if(!t.event.special.swipe.eventInProgress){t.event.special.swipe.eventInProgress=!0;var E,B=t.event.special.swipe.start(u),Q=u.target,h=!1;a.move=function(F){!B||F.isDefaultPrevented()||(E=t.event.special.swipe.stop(F),h||(h=t.event.special.swipe.handleSwipe(B,E,n,Q)),h&&(t.event.special.swipe.eventInProgress=!1),Math.abs(B.coords[0]-E.coords[0])>t.event.special.swipe.scrollSupressionThreshold&&F.preventDefault())},a.stop=function(){h=!0,t.event.special.swipe.eventInProgress=!1,v.off(y,a.move),a.move=null},v.on(y,a.move).one(I,a.stop)}},i.on(Y,a.start)},teardown:function(){var o,n;o=t.data(this,"mobile-events"),o&&(n=o.swipe,delete o.swipe,o.length--,o.length===0&&t.removeData(this,"mobile-events")),n&&(n.start&&t(this).off(Y,n.start),n.move&&v.off(y,n.move),n.stop&&v.off(I,n.stop))}},t.each({swipeleft:"swipe.left",swiperight:"swipe.right"},function(o,n){t.event.special[o]={setup:function(){t(this).on(n,t.noop)},teardown:function(){t(this).off(n)}}})}(w,this)});

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.