forked from mobilizetoday/touchSlider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.touchSlider.min.js
10 lines (10 loc) · 7.22 KB
/
jquery.touchSlider.min.js
1
2
3
4
5
6
7
8
9
10
/**
* Copyright (c) 2011-2012 Mobile Web Solutions Inc, d/b/a MobilizeToday.com
* All rights reserved.
*
* License: MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Version: 1.1
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(6(a){a.2g.2C=[].2C;a.2g.3q=6(b){8 b=a.3r({1H:"1w.1H",1Q:"1w.1Q",2B:"1w.3e",1P:18,1p:"1g",1g:"3c%",1R:3b,1N:18,1n:18,1B:"1r",2x:1f,1t:3a,1b:1l,1c:1l,25:1l,26:1l,1X:1l,2e:18,1m:"3d-3f",1T:"38"},b);12.1o(6(){8 s=1Y(12);3(b.1P){a("2w").37(\'<1w 30="2f"></1w>\')}8 H=[{1E:"2Z",1G:"2Y",1K:"2X",1L:"31"},{1E:"32",1G:"2E",1K:"36",1L:"2E"}];8 P="35"1J 1V?1:0;8 B=a(b.1H,12);3(!B.16){1h}8 Y=a(b.1Q,12).2u();3(!Y.16){1h}8 n=a(b.2B,12).2u();3(!n.16){1h}8 x=18;3(b.1B&&b.1B!="33"){8 E=1V.2w||1V.3i;8 V=E.3x;8 1W=(V.2i!==19)?"3n":"3m";x=V.2i!==19||V.2W!==19||V.1d!==19;3(x&&b.1B=="1r"){F("2v 3y 2y","");n.1i({"-1z-1d-22":"-1z-1s","-1z-1d-23-6":"24","-1F-1d-22":"-1F-1s","-1F-1d-23-6":"24","1d-22":"1s","1d-23-6":"24"});n.2T(1W);n.1k(1W,L)}8 S=("29"1J 1I&&"2Q"1J 1a 29());3(S){F("2v 2m 2y","")}}8 h=1l;8 e=1l;8 d=0;8 R=[];8 u=0;8 20=1l;8 v=1l;8 W=0;8 t=18;l(0);I(0);3(b.2x){n.1k(H[P]["1E"],12,o);n.1k(H[P]["1G"],12,o);n.1k(H[P]["1L"],12,o);n.1k(H[P]["1K"],12,o)}3(b.1b){a(b.1b,s).1k("1U",6(){s.2p(0).2t();1h 18})}3(b.1c){a(b.1c,s).1k("1U",6(){s.2p(0).2s();1h 18})}a(1I).1k("2U"1J 1I?"2J":"3w",12,k);a(1I).1k("2I",12,k);6 k(){2q(g,2K)}8 J=18;8 D=0;8 c=Y.17();F("2L 17:",c);12.2H=6(){1h b.1p=="1r"?R.16:a(B).16};12.2s=6(){1q(b.1p){13"1A":y();14;13"1g":j();14;13"1r":w();14}};12.2t=6(){1q(b.1p){13"1A":r();14;13"1g":M();14;13"1r":p();14}};12.2F=6(4){1q(b.1p){13"1A":T(4);14}};12.2G=6(){g()};g(1f);6 g(4){c=Y.17();W=0;8 4=1e(4)=="19"?18:4;3(4&&a.1Z(b.26)){b.26()}1q(b.1p){13"1A":3(b.1N){8 5=0;3(4){K()}7{a(B[h]).1i("17",c);2q(C,2h)}Z()}7{3(b.1n){Z()}}14;13"1g":X();14;13"1r":R=[];3(b.1N){i()}1O("1v");B.1o(6(15,2V){8 9=12.1M;8 11=R.16;3(15==0){3(9>c){R.1D([9,1a 1j(1a 1j(15,9)),0])}7{R.1D([9,1a 1j(1a 1j(15,9))])}G(15)}7{3(R[11-1][0]+9<=c){R[11-1][0]+=9;R[11-1][1].1D(1a 1j(15,9));G(15)}7{3(9>c){R.1D([9,1a 1j(1a 1j(15,9)),0])}7{R.1D([9,1a 1j(1a 1j(15,9))])}G(15)}}});3(h>=R.16){l(R.16-1)}3(b.1N){O()}3(a.1Z(b.1X)){b.1X()}m();14}}6 i(){a(B).1i("17","")}6 G(4){3(4==d){l(R.16-1)}}6 K(){a.1o(B,6(){a(12).1i("17","");8 4=a(12).17();3(4<c){a(12).1i("17",c)}})}6 O(){a.1o(R,6(4,5){3(5[0]<c){8 11=5[0];5[0]=c;a(5[1]).1o(6(9,15){15[1]=1C(c*15[1]/11);a(B[15[0]]).1i("17",15[1])})}})}6 C(){K();Z(1f)}6 o(4){8 5=(P)?4.2O.2P[0]:4;1q(4.2l){13 H[P]["1K"]:q(4,5);14;13 H[P]["1E"]:U(4,5);14;13 H[P]["1G"]:13 H[P]["1L"]:A(4);14}}6 q(4,5){3(J){3(b.2e&&4.2l!="1U"){4.2N()}W=D-5.2j;3(W!=0){f(e-W,1f)}}}6 U(4,5){3(!J){t=18;F("27 2R");J=1f;W=0;D=(P)?5.2j:4.2M}}6 A(4,5){3(J){F("27 2S");J=18;D=0;3(W!=0){3(W>b.1R||W<(0-b.1R)){N()}7{f(e)}}}W=0}6 N(){1q(b.1p){13"1g":X();14;13"1A":Z();14;13"1r":m();14}}6 Z(4){8 9=0;8 11=0;a.1o(B,6(15){3(15<h){11+=12.1M}9+=12.1M});3(9<=c){z("1v");1h}7{1O("1v")}8 5=0;3(W>0){3(b.1n){5=0-(11+a(B[h]).17()+a(B[h+1]).17()/2)+c/2;3(h<B.16-1){l(h+1);I(5);f(e)}7{f(e)}}7{5=0-(11+a(B[h]).17());3(9+5>c){l(h+1);I(5);f(e)}7{l(B.16-1);I(0-(9-c));f(e)}}}7{3(W<0){3(b.1n){5=0-(11-a(B[h-1]).17()/2)+c/2;3(h>0){l(h-1);I(5);f(e)}7{f(e)}}7{5=0-(11-a(B[h]).17());3(5<0){l(h-1);I(5);f(e)}7{l(0);I(0);f(e)}}}7{3(b.1n){5=0-(11+a(B[h]).17()/2)+c/2;I(5);3(1e(4)=="19"){f(e)}7{f(e,1f)}}7{5=0-11;I(5);3(1e(4)=="19"){f(e)}7{f(e,1f)}}}}}6 m(){8 9=0;8 11=0;c=Y.17();a.1o(R,6(15){3(15<h){11+=12[0]}9+=12[0]});8 5=R[h].16>2?1f:18;3(9<=c){z("1v")}7{1O("1v")}3(b.1n&&9<c){4=c/2-9/2;I(4);f(e);1h}8 4=0;3(W>0){3(h<R.16-1||(h>=R.16-1&&5)){3(5&&R[h][0]-c>R[h][2]){R[h][2]+=c;3(R[h][0]-R[h][2]>c){I(e-c);f(e)}7{I(e-(R[h][0]-R[h][2]));R[h][2]+=R[h][0]-R[h][2];R[h][2]-=c;f(e)}}7{3(1e(R[h+1])!="19"){3(R[h+1].16>2){4=0-(11+R[h][0])}7{4=0-(11+R[h][0]+R[h+1][0]/2)+c/2}3(9+4>c){l(h+1);I(4);f(e)}7{l(R.16-1);I(0-(9-c));f(e)}}7{f(e)}}}7{f(e)}}7{3(W<0){3(h>0||(h<=0&&5)){3(5&&R[h][2]>0){R[h][2]-=c;3(R[h][2]>=0){I(e+c);f(e)}7{I(e+(R[h][2]+c));R[h][2]=0;f(e)}}7{3(1e(R[h-1])!="19"){3(R[h-1].16>2){4=0-(11-c);R[h-1][2]=R[h-1][0]-c}7{4=0-(11-R[h-1][0]/2)+c/2}3(4<0){l(h-1);I(4);f(e)}7{l(0);I(0);f(e)}}7{f(e)}}}7{f(e)}}7{3(5){4=0-11}7{4=0-(11+R[h][0]/2)+c/2}3(4>=0){I(0);f(e)}7{3(9+4<=c){I(0-(9-c));f(e)}7{I(4);f(e)}}}}}6 z(4){1q(4){13"1v":3(b.1b){a(b.1b,s).1x(b.1m)}3(b.1c){a(b.1c,s).1x(b.1m)}14;13"2k":3(b.1b){a(b.1b,s).1x(b.1m)}14;13"2d":3(b.1c){a(b.1c,s).1x(b.1m)}14}c=Y.17()}6 1O(4){1q(4){13"1v":3(b.1b){a(b.1b,s).1y(b.1m)}3(b.1c){a(b.1c,s).1y(b.1m)}14;13"2k":3(b.1b){a(b.1b,s).1y(b.1m)}14;13"2d":3(b.1c){a(b.1c,s).1y(b.1m)}14}c=Y.17()}6 X(){8 11=0;a.1o(B,6(){11+=12.1M});3(11<c&&!b.1n){1h}8 4=b.1g+"";8 5=0;3(4.3o("%")!=-1){4=1C(c*b.1g.3k(0,b.1g.16-1)/2h)}7{4=1C(b.1g)}3(b.1n&&11<c){5=c/2-11/2;I(5);f(e)}7{3(W>0){5=e-4;3(11+5>c){I(5);f(e)}7{I(0-(11-c));f(e)}}7{5=e+4;3(5<0){I(5);f(e)}7{I(0);f(e)}}}}6 j(){W=1;X()}6 M(){W=-1;X()}6 F(11,5){3(1e(5)=="19"){5=""}3(b.1P){8 4=1a 3u();a("#2f").3A(\'<1w 3C="1P-1H"><2A>\'+4.3B()+":"+4.3z()+"."+4.3v()+"</2A> "+11+" "+5+"</1w>")}}6 l(4){3(4!=h){t=1f;20=h;h=4;3(b.1p=="1r"&&R.16){d=R[h][1][0][0]}7{a(B).1y(b.1T);a(B[h]).1x(b.1T)}F("2o 3j 2r 1A:",4)}7{t=1f}}6 I(4){4=1C(4,10);3(4!=e){v=e;e=4;F("2o 2r 34:",4)}}6 T(4){3(1e(B[4])!="19"){l(1C(4));W=0;Z()}}6 y(){W=1;Z()}6 r(){W=-1;Z()}6 w(){W=1;m()}6 p(){W=-1;m()}6 f(9,5){8 4=1e(5)=="19"?b.1t:0;3(1e(5)=="19"&&a.1Z(b.25)&&t){b.25(20,h)}3(!b.1B){3(4){Q();n.1i({"2D-2n":9+"1u"});L()}}7{Q();8 11=1e(5)=="19"?b.1t/39+"s":"0";3(x){n.1i({"-1z-1d-1t":11,"-1F-1d-1t":11,"1d-1t":11});3(S){F("28 2m 2a 21:",9);n.1i({"-1z-1s":"2b("+9+"1u,0,0)",1s:"2b("+9+"1u,0,0)"})}7{F("28 2a 21:",9);n.1i({"-1z-1s":"1S("+9+"1u,0)","-1F-1s":"1S("+9+"1u,0)",1s:"1S("+9+"1u,0)"})}}7{F("1Y 3h 21:",9);n.3g({"2D-2n":9+"1u"},{3t:18,1t:4,3l:"3p",3s:L})}}}6 Q(){n.1x("2c");F("2z 1E","")}6 L(){n.1y("2c");F("2z 1G","")}});1h 12}})(1Y);',62,225,'|||if|ad|ae|function|else|var|ag||||||||||||||||||||||||||||||||||||||||||||||||||||||af|this|case|break|ah|length|width|false|undefined|new|prevLink|nextLink|transition|typeof|true|shift|return|css|Array|bind|null|hideClass|center|each|mode|switch|auto|transform|duration|px|both|div|addClass|removeClass|webkit|index|animation|parseInt|push|start|moz|end|item|window|in|move|leave|offsetWidth|single|ac|debug|holder|delta|translate|activeClass|click|document|aa|onCheckItems|jQuery|isFunction|ab|To|property|timing|ease|onChange|onStart|Touch|CSS|WebKitCSSMatrix|Transition|translate3d|moving|next|lockScroll|console|fn|100|WebkitTransition|pageX|prev|type|3D|left|Setting|get|setTimeout|current|moveNext|movePrev|first|Detected|body|touch|Support|Animation|strong|box|reverse|margin|touchend|moveTo|refresh|getCount|load|orientationchange|200|Current|clientX|preventDefault|originalEvent|touches|m11|Start|End|unbind|onorientationchange|ai|MozTransition|mousemove|mouseup|mousedown|id|mouseout|touchstart|js|offset|ontouchend|touchmove|append|active|1000|500|40|80|mt|list|hidden|animate|Animate|documentElement|up|substr|easing|transitionend|webkitTransitionEnd|indexOf|swing|touchSlider|extend|complete|queue|Date|getMilliseconds|resize|style|Transitions|getSeconds|prepend|getMinutes|class'.split('|'),0,{}))