From 33253a1ea51af256021ba81ddb4c4831369c1552 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Sun, 25 Dec 2016 20:37:54 +0100 Subject: [PATCH] Update jQuery reference from $ to jQuery. Fixes #57 --- js/jquery.sudoSlider.js | 2 +- js/jquery.sudoSlider.min.js | 92 ++++++++++++++++++------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/js/jquery.sudoSlider.js b/js/jquery.sudoSlider.js index 4636109..c4d3532 100644 --- a/js/jquery.sudoSlider.js +++ b/js/jquery.sudoSlider.js @@ -30,7 +30,7 @@ // Finally, as a browser global. } else { - factory(root.$, root); + factory(root.jQuery, root); } })(function ($, win) { diff --git a/js/jquery.sudoSlider.min.js b/js/jquery.sudoSlider.min.js index 66c8cb3..214a611 100644 --- a/js/jquery.sudoSlider.min.js +++ b/js/jquery.sudoSlider.min.js @@ -12,49 +12,49 @@ Built for jQuery library http://jquery.com -*/ -(function(g){var na="object"==typeof self&&self.self==self&&self||"object"==typeof global&&global.global==global&&global;if("function"===typeof define&&define.amd)define(["jquery"],function(Z){g(Z,na)});else if("undefined"!==typeof exports){var qa=require("jquery");g(qa,na)}else g(na.$,na)})(function(g,na){function qa(){return{effect:"slide",speed:1500,customLink:!1,controlsFadeSpeed:400,controlsFade:!0,insertAfter:!0,vertical:!1,slideCount:1,moveCount:1,startSlide:1,responsive:!0,ease:"swing",auto:!1, -pause:2E3,resumePause:!1,continuous:!1,prevNext:!0,numeric:!1,numericText:[],slices:15,boxCols:8,boxRows:4,initCallback:O,ajaxLoad:O,beforeAnimation:O,afterAnimation:O,history:!1,autoHeight:!0,autoWidth:!0,updateBefore:!1,ajax:!1,preloadAjax:100,loadingText:"",prevHtml:' previous ',nextHtml:' next ',controlsAttr:'class="controls"',numericAttr:'class="numericControls"',interruptible:!1,useCSS:!0,loadStart:O,loadFinish:O,touch:!1,touchHandle:!1, -destroyCallback:O,mouseTouch:!0,allowScroll:!0,CSSease:"swing",ajaxHasHTML:!1}}function Z(a,b,e,f,F){if(g.isFunction(b))f?Z(a,["","Up","Right","Down","Left",b],e,0,F):a[e]=function(a){var e=[a].concat(F),k=e.length-1;if(0===f&&0==e[k]){var g=a.diff;e[k]=a.options.vertical?0>g?1:3:0>g?2:4}b.apply(this,e)};else if(g.isArray(b))for(var l=b.length-1,q=b[l],m=0;ml;h--)n[y+=fa]=u[w*k+h];h=l;for(w=v-l-1;w>l;w--)n[y+=fa]=u[w*k+h]}}else for(u=0;uk?l(k):xa(R(l,[150]),k-150)})(v[k], -r);r+=z/n.length*1.5}}function ba(a,b,e,f,F,l,q,m){for(var p=a.options,r=p.slices,v=p.speed/2,p=a.slider,k=Fa(a,b?r:1,b?1:r,!m),h=g(),z=0;ze)a.css(b),n();else return E(function(){a.css(r);E(function(){a.css(b); -var f=+new Date;a.on(z,function w(b){a.is(b.target)&&-100<+new Date-f-e&&(a.off(z,w),n())});setTimeout(n,e+100)})}),n}else f||(f=l.options.ease),a.animate(b,e,f,g)}function La(a,b){var e=a.options;e.boxcols=1;e.boxrows=1;e.speed=b;oa(a,!1)}function Fa(a,b,e,f){function F(b,e){m.push(function(){var g=ga(a,f),g=za(g,k*b,v*e,k,v);l.append(g);return g})}var l=a.slider,q=a.options.vertical,m=[],p;p=q?f?a.toSlides.width():a.slider.width():0;var r;r=q?0:f?a.toSlides.height():a.slider.height();a.toSlides.each(function(){var a= -g(this);q?r+=a.height():p+=a.width()});for(var v=Math.ceil(p/b),k=Math.ceil(r/e),h=0;h").css({left:e,top:b,width:F,height:f,opacity:0,overflow:"hidden",position:"absolute"}).append(a).addClass("sudo-box")}function ga(a,b){var e=b?a.toSlides:a.fromSlides,f=e.eq(0).position(),F=f.left,l=f.top,q=0,m=0,p=g("
").css({position:"absolute",top:0,left:0}).addClass("sudo-box"); -e.each(function(a,b){var e=g(b),f=e.outerWidth(!0),z=e.outerHeight(!0),u=e.clone(),n=e.position(),e=n.left-F,n=n.top-l;u.css({position:"absolute",left:e,top:n,opacity:1});q=T(q,n+z);m=T(m,e+f);p.append(u)});p.width(m).height(q);return p}function R(a,b){return function(){a.apply(ia,b)}}function ja(a,b,e){if(a){a=a.add(a.find("img")).filter("img");var f=a.length;f?a.each(function(){var a=g(this),l=function(){a.off("load error",l);f--;b?0==f&&e():e()};a.on("load error",l);if("complete"==this.readyState)a.trigger("load"); -else if(this.readyState)this.src=this.src;else if(this.complete)a.trigger("load");else if(this.complete===ia){var q=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=q}}):e()}else e()}function zb(a){for(var b=g.fn.jquery.split("."),e=b.length,f=0;fa?-a:a}function T(a,b){return a>b?a:b}function Na(a,b){return a++h;){l=e(b,0)-a;if(.001>Q(l))break;b-=l/(r[0]+b*(2*g[0]+3*f[0]*b))}return e(b,1)}};e[b]=function(b,e,g,m,p){return m*f([a[0],a[1]],[a[2],a[3]])(e/p)+g}}return b}var ia,O=function(){},ha=function(){var a;a:{var b=g("
")[0].style;for(a in b)if(b=a.toLowerCase(),-1!==b.indexOf("transition",b.length-10))break a;a=!1}if(!1===a)return!1;a=a.slice(0,a.length-10);return 0!=a.length?"-"+a+"-":""}(),ab=g(na),Ia=g(document);g.fn.sudoSlider= -function(a){var b=this;a=g.extend(Aa(qa()),Aa(a));!1!==ha&&zb([1,8,0])||(a.usecss=!1);return this.each(function(){function e(){var d=0,a;for(a in pa)c[d]=pa[a],d++;U=!0;bb=!1;Pa=[];cb=[];Qa=[];Ca=[];Ra=[];J=Ja(M);d=J.length;a=g("
");d?(Sa=J.is("ul"))||J.hasClass("slidesContainer")||kb||(a.append(J),M.append(J=a)):(M.append(J=a),Sa=!1);kb=!0;d=Ja(J);D=[];A=d.length;d.each(function(d,a){var b=g(a);D[d]=b;b.css({position:"relative"});"none"==b.css("display")&&b.css("display","inline")});J.addClass("slidesContainer"); -d.addClass("slide");d.each(function(d,a){g(a).attr("data-slide",d+1)});if(c[30]&&(a=c[30].length,a>A)){for(d=1;d<=a-A;d++){var b;b=Sa?"li":"div";b=g("<"+b+">"+c[32]+"");J.append(b);D[A+(d-1)]=b}d=Ja(J);A=a}d.each(function(d,a){Pa[d]=!1;ja(g(a),!0,function(){Pa[d]=!0})});t=(t=!1===ca?0:ca)||0;X=!0;Ta=[];ma=!1;M.css({overflow:"hidden"});"static"==M.css("position")&&M.css({position:"relative"});d.css({"float":"left",listStyle:"none"});J.add(d).css({display:"block",position:"relative",margin:"0"}); -B(0,0,!0);c[7]=C(c[7]);S=c[7];c[7]+=c[8]-1;"string"==typeof c[9]&&"random"==c[9].toLowerCase()&&(c[9]=Math.random()*A|0);c[9]=C(c[9])-1||0;c[0]=Oa(c[0]);c[18]=c[18].slice(0);for(d=0;d");M[c[5]?"after":"before"](ua);if(c[17])for(db=g("
    "),ua.prepend(db),b=(a="pages"==c[17])?S:1,d=0;d'+c[18][d]+"").appendTo(db).click(function(){h(l(this)-1,!0);return!1});c[16]&&(lb=k(c[34],"next"),mb=k(c[33],"prev"));c[4]&&u(t,0)}d=[4,1,14];for(a=0;a"==d.charAt(0)?ta(M,"click",f,d.substr(1,d.length)):ta(Ia,"click",f,d));ja(za(c[9],c[7]),!0,function(){if(!1!==ca)Ua(ca,!1);else if(c[26]){var d; -(d=ab.hashchange)?d(q):(d=g.address)?d.change(q):ta(ab,"hashchange",q);q()}else Ua(c[9],!1);n(t)});c[30][c[9]]&&va(c[9]);if(!0===c[31])for(a=0;a=e?(b=0,D[f].width(la+1)):D[f].width(la);!1!==Va&&p(Va);Da();wa();Y(t);G(t,0)}}}a();E(a);setTimeout(a,20)}function l(d){d=g(d);return d.attr("data-target")||d.attr("rel")}function q(){var d;a:{d=location.hash.substr(1);for(var a=0;ae?t==e&& -"next"==b?0:e:0>a?0==t&&"prev"==b?e:0:a}function va(a,b){function e(){var b=new Image;b.src=h;var c=g(b);ja(c,!0,function(){k.empty().append(b);ra(a,!0)})}if(b){var f=Qa[a];f||(f=Qa[a]=[]);f.push(b)}if(Ra[a])b&&ja(D[a],!0,R(E,[b]));else if(!Ca[a]){Ca[a]=!0;var h=c[30][a];if(h){Wa&&clearTimeout(Wa);var k=D[a];c[30][a]=!1;pa.ajax[a]=!1;if(c[47]){var l=!1;g.ajax({url:h,success:function(b,c,f){l=!0;Ga(function(){var c=f.getResponseHeader("Content-Type");c&&"i"!=c.substr(0,1)?(k.html(b),ra(a,!1)):e()})}, -complete:function(){l||e()}})}else e()}else E(b)}}function Ga(a){ea?cb.push(a):E(a)}function ra(a,e){var f=D[a];ea||(Y(t),G(t,0));ja(f,!0,R(Ga,[function(){Y(t);G(t,0);Ra[a]=!0;Ha(Qa[a]);m();E(function(){c[23].call(D[a],a+1,e,b)});U&&(U=!1,E(sa))}]))}function sa(){bb=!0;c[15]&&aa(t,0);G(t,0);Y(t);ba();c[10]&&F();c[12]&&p();c[22].call(b);c[41]&&Aa();ja(za(t,A),!1,R(Ga,[function(){G(t,0);Y(t)}]))}function Aa(){var a=g("body"),b,e=!1,f=c[0];c[0]=function(a){if(e){e=!1;var d=a.options;d.ease=b;d.cssease= -b;return $a(a)}return f(a)};var h,k,l,p,m,q=[],r=[],u=0,n,v,w,F,C=!1,z=0,D=0,G=0,J=0,y=function(f){if(X){var W=f.type,y,N,H,K="m"==W.substr(0,1);K?(y="mousedown",N="mouseup",H=""):(y="touchstart",N="touchend",H="touchcancel",f=f.originalEvent);if(!C){if(W!=y)return;var L=f.target,E=g(L);c[42]||(E=E.parents().add(L));L=c[42]||M;"string"===typeof L&&(L=Ma(L),">"==L.charAt(0)&&(L=g(L.substr(1,L.length),M)));if(E.filter(L).length)C=!0;else return}if(W!=N&&W!=H){K?(N=f.pageX,H=f.pageY):(H=f.touches[0], -N=H.pageX,H=H.pageY);if(W==y){z=N;D=H;var I=N-z,x=H-D;a.addClass("sudoSlider-dragging");n=t;v=0;ea=!0;wa();k=tb;h=sb;m=c[6]?Q(x):Q(I);p=l=+new Date;I=P(n);w=P(n+1)-I;F=!1;!K&&c[45]||f.preventDefault()}else{W=N-z;y=H-D;E=c[6]?y:W;L=Q(E);q[u]=L-m;var O=+new Date;r[u]=O-p;u=(u+1)%3;p=O;m=L;c[15]&&A>=S+1&&(L=0,E-vQ(I);K=K?!1:c[45]?c[6]?!I:I:!1;K||f.preventDefault()}G=N-z;J=H-D}else{f=G;K=J;a.removeClass("sudoSlider-dragging");H=c[6]?K:f;H-=v;F&&(H-=F,n++);K=Q(H);N=+new Date;for(x=I=f=0;3>x;x++)W=r[x],W+100=x/2;if(0K||0>I&&0=K)f=!1;H=0>H?"next":"prev";c[15]||(t+1==A?"next"==H&&(f=!1):0==t&&"prev"==H&&(f=!1));H="next"==H?n+1:n-1;H=Ba(H,A);K=f?x-K:K;I=K/N*1.3;x=T(x/K*c[1],c[1]/4);I=Ib?A-Ba(-b-1,A+1):Ba(b,A+1);a=g(a||"
    ");Sa?a=g("
  1. ").prepend(a): -1!=a.length&&(a=g("
    ").prepend(a));b&&0!=b?D[b-1].after(a):J.prepend(a);f?ca=f-1:(b<=ca||!b||0==b)&&ca++;c[18].lengthb,!0,0,5==b||6==b,3==b||4==b||6==b,2==b||4==b)}],Rain:["","GrowIn","GrowInRounded","GrowOut","GrowOutRounded", -"FlyIn","FlyOut",["UpLeft","DownLeft","DownRight","UpRight",function(a,b,e){oa(a,0==e||3==e,1==e||3==e,1<=b&&4>=b,!1,1,5==b||6==b,6==b||3==b||4==b,2==b||4==b)}]],Spiral:["InWards","OutWards",{"":function(a,b){oa(a,b,!1,!1,!1,2,!1,!1,!1)},Grow:["In","Out",["","Rounded",function(a,b,e,f){oa(a,b,!1,!0,!1,2,!1,e,f)}]]}]},fade:{"":function(a){La(a,a.options.speed)},OutIn:function(a){var b=a.options.speed,e=C(.6*b),e=b-e;a.stopCallbacks.push(function(){a.fromSlides.stop().css({opacity:1})});V(a.fromSlides, -{opacity:1E-4},e,!1,R(La,[a,b]),a)}},foldRandom:["Horizontal","Vertical",function(a,b){ba(a,b,!1,!0)}],slide:$a,stack:["Up","Right","Down","Left",["","Reverse",function(a,b,e){var f=0 previous ',nextHtml:' next ',controlsAttr:'class="controls"',numericAttr:'class="numericControls"',interruptible:!1,useCSS:!0,loadStart:X,loadFinish:X,touch:!1, + touchHandle:!1,destroyCallback:X,mouseTouch:!0,allowScroll:!0,CSSease:"swing",ajaxHasHTML:!1}}function Y(a,b,e,f,z){if(g.isFunction(b))f?Y(a,["","Up","Right","Down","Left",b],e,0,z):a[e]=function(a){var e=[a].concat(z),k=e.length-1;if(0===f&&0==e[k]){var g=a.diff;e[k]=a.options.vertical?0>g?1:3:0>g?2:4}b.apply(this,e)};else if(g.isArray(b))for(var h=b.length-1,r=b[h],p=0;ph;l--)v[F+=Z]=u[n*k+l];l=h;for(n=w-h-1;n>h;n--)v[F+=Z]=u[n*k+l]}}else for(u=0;uk?h(k):va(O(h,[150]),k-150)})(w[k],B);B+= + C/v.length*1.5}}function aa(a,b,e,f,z,h,r,p){for(var m=a.options,B=m.slices,w=m.speed/2,m=a.slider,k=Da(a,b?B:1,b?1:B,!p),l=g(),C=0;Ce)a.css(b),v();else return G(function(){a.css(z);G(function(){a.css(b); + var f=+new Date;a.on(C,function n(b){a.is(b.target)&&-100<+new Date-f-e&&(a.off(C,n),v())});setTimeout(v,e+100)})}),v}else f||(f=h.options.ease),a.animate(b,e,f,g)}function Ia(a,b){var e=a.options;e.boxcols=1;e.boxrows=1;e.speed=b;ma(a,!1)}function Da(a,b,e,f){function z(b,e){p.push(function(){var g=fa(a,f),g=xa(g,k*b,w*e,k,w);h.append(g);return g})}var h=a.slider,r=a.options.vertical,p=[],m;m=r?f?a.toSlides.width():a.slider.width():0;var B;B=r?0:f?a.toSlides.height():a.slider.height();a.toSlides.each(function(){var a= + g(this);r?B+=a.height():m+=a.width()});for(var w=Math.ceil(m/b),k=Math.ceil(B/e),l=0;l").css({left:e,top:b,width:z,height:f,opacity:0,overflow:"hidden",position:"absolute"}).append(a).addClass("sudo-box")}function fa(a,b){var e=b?a.toSlides:a.fromSlides,f=e.eq(0).position(),z=f.left,h=f.top,r=0,p=0,m=g("
    ").css({position:"absolute",top:0,left:0}).addClass("sudo-box"); + e.each(function(a,b){var e=g(b),f=e.outerWidth(!0),w=e.outerHeight(!0),u=e.clone(),v=e.position(),e=v.left-z,v=v.top-h;u.css({position:"absolute",left:e,top:v,opacity:1});r=T(r,v+w);p=T(p,e+f);m.append(u)});m.width(p).height(r);return m}function O(a,b){return function(){a.apply(ha,b)}}function ia(a,b,e){if(a){a=a.add(a.find("img")).filter("img");var f=a.length;f?a.each(function(){var a=g(this),h=function(){a.off("load error",h);f--;b?0==f&&e():e()};a.on("load error",h);if("complete"==this.readyState)a.trigger("load"); + else if(this.readyState)this.src=this.src;else if(this.complete)a.trigger("load");else if(this.complete===ha){var r=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=r}}):e()}else e()}function wb(a){for(var b=g.fn.jquery.split("."),e=b.length,f=0;fa?-a:a}function T(a,b){return a>b?a:b}function Ka(a,b){return a++l;){m=e(b,0)-a;if(.001>P(m))break;b-=m/(h[0]+b*(2*g[0]+3*f[0]*b))}return e(b,1)}};e[b]=function(b,e,g,p,m){return p*f([a[0],a[1]],[a[2],a[3]])(e/m)+g}}return b}var ha,X=function(){},ga=function(){var a;a:{var b=g("
    ")[0].style;for(a in b)if(b=a.toLowerCase(),-1!==b.indexOf("transition",b.length-10))break a;a=!1}if(!1===a)return!1;a=a.slice(0,a.length-10);return 0!=a.length?"-"+a+"-":""}(),Ya=g(la),Fa=g(document);g.fn.sudoSlider= + function(a){var b=this;a=g.extend(ya(ea()),ya(a));!1!==ga&&wb([1,8,0])||(a.usecss=!1);return this.each(function(){function e(){var c=0,a;for(a in na)d[c]=na[a],c++;U=!0;Za=!1;Ma=[];$a=[];Na=[];Aa=[];Oa=[];t=Ga(N);c=t.length;a=g("
    ");c?(Pa=t.is("ul"))||t.hasClass("slidesContainer")||hb||(a.append(t),N.append(t=a)):(N.append(t=a),Pa=!1);hb=!0;c=Ga(t);H=[];A=c.length;c.each(function(c,a){var b=g(a);H[c]=b;b.css({position:"relative"});"none"==b.css("display")&&b.css("display","inline")});t.addClass("slidesContainer"); + c.addClass("slide");c.each(function(c,a){g(a).attr("data-slide",c+1)});if(d[30]&&(a=d[30].length,a>A)){for(c=1;c<=a-A;c++){var b;b=Pa?"li":"div";b=g("<"+b+">"+d[32]+"");t.append(b);H[A+(c-1)]=b}c=Ga(t);A=a}c.each(function(c,a){Ma[c]=!1;ia(g(a),!0,function(){Ma[c]=!0})});q=(q=!1===ba?0:ba)||0;W=!0;Qa=[];ka=!1;N.css({overflow:"hidden"});"static"==N.css("position")&&N.css({position:"relative"});c.css({"float":"left",listStyle:"none"});t.add(c).css({display:"block",position:"relative",margin:"0"}); + J(0,0,!0);d[7]=D(d[7]);S=d[7];d[7]+=d[8]-1;"string"==typeof d[9]&&"random"==d[9].toLowerCase()&&(d[9]=Math.random()*A|0);d[9]=D(d[9])-1||0;d[0]=La(d[0]);d[18]=d[18].slice(0);for(c=0;c");N[d[5]?"after":"before"](ra);if(d[17])for(ab=g("
      "),ra.prepend(ab),b=(a="pages"==d[17])?S:1,c=0;c'+d[18][c]+"
    1. ").appendTo(ab).click(function(){l(h(this)-1,!0);return!1});d[16]&&(ib=k(d[34],"next"),jb=k(d[33],"prev"));d[4]&&u(q,0)}c=[4,1,14];for(a=0;a"==c.charAt(0)?qa(N,"click",f,c.substr(1,c.length)):qa(Fa,"click",f,c));ia(xa(d[9],d[7]),!0,function(){if(!1!==ba)Ra(ba,!1);else if(d[26]){var c; + (c=Ya.hashchange)?c(r):(c=g.address)?c.change(r):qa(Ya,"hashchange",r);r()}else Ra(d[9],!1);v(q)});d[30][d[9]]&&sa(d[9]);if(!0===d[31])for(a=0;a=x?(a=0,H[e].width(b+1)):H[e].width(b);!1!==Sa&&m(Sa);Ba();ta();R(q);I(q,0)}}}a();G(a);setTimeout(a,20)}function h(c){c=g(c);return c.attr("data-target")||c.attr("rel")}function r(){var c;a:{c=location.hash.substr(1);for(var a=0;ac?q==c&& + "next"==b?0:c:0>a?0==q&&"prev"==b?c:0:a}function sa(a,b){function c(){var b=new Image;b.src=f;var c=g(b);ia(c,!0,function(){x.empty().append(b);oa(a,!0)})}if(b){var e=Na[a];e||(e=Na[a]=[]);e.push(b)}if(Oa[a])b&&ia(H[a],!0,O(G,[b]));else if(!Aa[a]){Aa[a]=!0;var f=d[30][a];if(f){Ta&&clearTimeout(Ta);var x=H[a];d[30][a]=!1;na.ajax[a]=!1;if(d[47]){var h=!1;g.ajax({url:f,success:function(b,d,e){h=!0;ca(function(){var d=e.getResponseHeader("Content-Type");d&&"i"!=d.substr(0,1)?(x.html(b),oa(a,!1)):c()})}, + complete:function(){h||c()}})}else c()}else G(b)}}function ca(a){da?$a.push(a):G(a)}function oa(a,e){var c=H[a];da||(R(q),I(q,0));ia(c,!0,O(ca,[function(){R(q);I(q,0);Oa[a]=!0;Ea(Na[a]);p();G(function(){d[23].call(H[a],a+1,e,b)});U&&(U=!1,G(pa))}]))}function pa(){Za=!0;d[15]&&ua(q,0);I(q,0);R(q);Y();d[10]&&z();d[12]&&m();d[22].call(b);d[41]&&ya();ia(xa(q,A),!1,O(ca,[function(){I(q,0);R(q)}]))}function ya(){var a=g("body"),b,e=!1,f=d[0];d[0]=function(a){if(e){e=!1;var c=a.options;c.ease=b;c.cssease= + b;return Xa(a)}return f(a)};var h,k,l,m,p,r=[],u=[],v=0,n,z,w,B,F=!1,C=0,D=0,H=0,I=0,t=function(c){if(W){var f=c.type,x,L,K,E="m"==f.substr(0,1);E?(x="mousedown",L="mouseup",K=""):(x="touchstart",L="touchend",K="touchcancel",c=c.originalEvent);if(!F){if(f!=x)return;var t=c.target,G=g(t);d[42]||(G=G.parents().add(t));t=d[42]||N;"string"===typeof t&&(t=Ja(t),">"==t.charAt(0)&&(t=g(t.substr(1,t.length),N)));if(G.filter(t).length)F=!0;else return}if(f!=L&&f!=K){E?(L=c.pageX,K=c.pageY):(K=c.touches[0], + L=K.pageX,K=K.pageY);if(f==x){C=L;D=K;var M=L-C,y=K-D;a.addClass("sudoSlider-dragging");n=q;z=0;da=!0;ta();k=qb;h=pb;p=d[6]?P(y):P(M);m=l=+new Date;M=Q(n);w=Q(n+1)-M;B=!1;!E&&d[45]||c.preventDefault()}else{f=L-C;x=K-D;G=d[6]?x:f;t=P(G);r[v]=t-p;var O=+new Date;u[v]=O-m;v=(v+1)%3;m=O;p=t;d[15]&&A>=S+1&&(t=0,G-zP(M);E=E?!1:d[45]?d[6]?!M:M:!1;E||c.preventDefault()}H=L-C;I=K-D}else{c=H;E=I;a.removeClass("sudoSlider-dragging");K=d[6]?E:c;K-=z;B&&(K-=B,n++);E=P(K);L=+new Date;for(y=M=c=0;3>y;y++)f=u[y],f+100=y/2;if(0E||0>M&&0=E)c=!1;K=0>K?"next":"prev";d[15]||(q+1==A?"next"==K&&(c=!1):0==q&&"prev"==K&&(c=!1));K="next"==K?n+1:n-1;K=za(K,A);E=c?y-E:E;M=E/L*1.3;y=T(y/E*d[1],d[1]/4);M=Mb?A-za(-b-1,A+1):za(b,A+1);a=g(a||"
      ");Pa?a=g("
    2. ").prepend(a): + 1!=a.length&&(a=g("
      ").prepend(a));b&&0!=b?H[b-1].after(a):t.prepend(a);f?ba=f-1:(b<=ba||!b||0==b)&&ba++;d[18].lengthb,!0,0,5==b||6==b,3==b||4==b||6==b,2==b||4==b)}],Rain:["","GrowIn","GrowInRounded","GrowOut","GrowOutRounded","FlyIn", + "FlyOut",["UpLeft","DownLeft","DownRight","UpRight",function(a,b,e){ma(a,0==e||3==e,1==e||3==e,1<=b&&4>=b,!1,1,5==b||6==b,6==b||3==b||4==b,2==b||4==b)}]],Spiral:["InWards","OutWards",{"":function(a,b){ma(a,b,!1,!1,!1,2,!1,!1,!1)},Grow:["In","Out",["","Rounded",function(a,b,e,f){ma(a,b,!1,!0,!1,2,!1,e,f)}]]}]},fade:{"":function(a){Ia(a,a.options.speed)},OutIn:function(a){var b=a.options.speed,e=D(.6*b),e=b-e;a.stopCallbacks.push(function(){a.fromSlides.stop().css({opacity:1})});V(a.fromSlides,{opacity:1E-4}, + e,!1,O(Ia,[a,b]),a)}},foldRandom:["Horizontal","Vertical",function(a,b){aa(a,b,!1,!0)}],slide:Xa,stack:["Up","Right","Down","Left",["","Reverse",function(a,b,e){var f=0