-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmyfocus-1.2.0.min.js
10 lines (10 loc) · 7.79 KB
/
myfocus-1.2.0.min.js
1
2
3
4
5
6
7
8
9
10
/*
* myFocus JavaScript Library v1.2.0
* Open source under the BSD & GPL License.
*
* @Author [email protected]
* @Blog http://hi.baidu.com/koen_li/
*
* @Date 2011/04/10
*/
eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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(){9 q={1v:{A:\'3C\',3L:\'2S\',1S:\'3A\',1x:J,I:J,2B:4,u:0,2z:20,41:Z,R:J,19:\'2w://3O.3E.2J/3J/2y/A/\'},A:{},1q:6(){9 a=34,l=a.L,i=1,1p=a[0];7(l===1){i=0,1p=8.A}D(i;i<l;i++){D(9 p 1D a[i])7(!(p 1D 1p))1p[p]=a[i][p]}}};9 r={$:6(a){x 1A a===\'2f\'?V.3U(a):a},$$:6(a,b){x(8.$(b)||V).3M(a)},$$1Y:6(b,c){9 d=[],a=8.$$(b,c);D(9 i=0;i<a.L;i++){7(a[i].2o===c)d.14(a[i]);i+=8.$$(b,a[i]).L}x d},$c:6(a,b){9 c=8.$$(\'*\',b),a=a.1g(/\\-/g,\'\\\\-\'),1E=23 3I(\'(^|\\\\s)\'+a+\'(\\\\s|$)\'),1U=[];D(9 i=0,l=c.L;i<l;i++){7(1E.4e(c[i].U)){1U.14(c[i]);2l}}x 1U[0]},$E:6(a,b){x 8.$$1Y(\'E\',8.$c(a,b))},1x:6(a,b){9 c=V.1s(\'4j\');c.U=b;a[0].2o.2Q(c,a[0]);D(9 i=0;i<a.L;i++)c.1P(a[i])},3R:6(a,b){a.1m=\'<X 2x=\'+b+\'>\'+a.1m+\'</X>\'},4H:6(a,b){9 s=[],X=8.$$(\'X\',a)[0],E=8.$$1Y(\'E\',X),C,n=E.L,1Z=b.L;D(9 j=0;j<1Z;j++){s.14(\'<X 2x=\'+b[j]+\'>\');D(9 i=0;i<n;i++){C=8.$$(\'C\',E[i])[0];s.14(\'<E>\'+(b[j]==\'1Z\'?(\'<a>\'+(i+1)+\'</a>\'):(b[j]==\'1l\'&&C?E[i].1m.1g(/<C(.|\\n|\\r)*?(\\>\\<\\/a\\>)/i,C.3W+\'</a>\')+\'<p>\'+C.2R("1k")+\'</p>\':(b[j]==\'37\'&&C?\'<C H=\'+(C.2R("37")||C.H)+\' />\':\'\')))+\'<24></24></E>\')};s.14(\'</X>\')};a.1m+=s.1M(\'\')}},2u={y:6(o,a){9 v=(8.1i?o.42:4c(o,\'\'))[a],1Q=4g(v);x 2E(1Q)?v:1Q},2G:6(o,a){o.y.3B="3D(N="+a+")",o.y.N=a/Z},2N:6(o,a){9 b=o.U,1E="/\\\\s*"+a+"\\\\b/g";o.U=b?b.1g(2O(1E),\'\'):\'\'}},2P={1w:6(a,f,g,h,i,j){9 k=f===\'N\',F=8,N=F.2G,2c=1A g===\'2f\',2g=(23 2i).2j();7(k&&F.y(a,\'1o\')===\'1K\')a.y.1o=\'3w\',N(a,0);9 l=F.y(a,f),b=2E(l)?1:l,c=2c?g/1:g-b,d=h||3y,e=F.2p[i||\'2s\'],m=c>0?\'3F\':\'2v\';7(a[f+\'1e\'])1b(a[f+\'1e\']);a[f+\'1e\']=1O(6(){9 t=(23 2i).2j()-2g;7(t<d){k?N(a,1a[m](e(t,b*Z,c*Z,d))):a.y[f]=1a[m](e(t,b,c,d))+\'B\'}O{1b(a[f+\'1e\']),k?N(a,(c+b)*Z):a.y[f]=c+b+\'B\',k&&g===0&&(a.y.1o=\'1K\'),j&&j.2C(a)}},13);x F},4b:6(a,b,c){8.1w(a,\'N\',1,b==11?2F:b,\'1R\',c);x 8},4h:6(a,b,c){8.1w(a,\'N\',0,b==11?2F:b,\'1R\',c);x 8},2I:6(a,b,c,d,e){D(9 p 1D b)8.1w(a,p,b[p],c,d,e);x 8},4p:6(a){D(9 p 1D a)7(p.4s(\'1e\')!==-1)1b(a[p]);x 8},2p:{1R:6(t,b,c,d){x c*t/d+b},4x:6(t,b,c,d){x-c/2*(1a.39(1a.3a*t/d)-1)+b},3f:6(t,b,c,d){x c*(t/=d)*t*t*t+b},2s:6(t,b,c,d){x-c*((t=t/d-1)*t*t*t-1)+b},3u:6(t,b,c,d){x((t/=d/2)<1)?(c/2*t*t*t*t+b):(-c/2*((t-=2)*t*t*t-2)+b)}}},2K={1T:6(p,b,c){9 F=8,W=0;p.A=p.A||F.1v.A,p.19=p.19||F.1v.19,p.S=p.A+\'-\'+p.T;6 2b(){7(W==2)F.A[p.A].2C(F,p,F),c&&c()};6 1C(){9 a=F.$(p.T);a.y.G=3G+\'B\';F.2T(p.A,p.19,6(){F.1q(p,F.A[p.A].2W,F.1v);p.K=p.K||F.y(a,\'K\'),p.G=p.G||F.y(a,\'G\');F.2Z(p),a.U+=\' \'+p.A+\' \'+p.S,a.y.G=\'\';W+=1,2b()});F.31(a,p.2z,6(){W+=1,2b()})};7(b){1C();x}7(3P.32){(6(){3S{1C()}3T(e){22(34.3V,0)}})()}O{F.36(V,\'40\',1C)}},2Z:6(p){9 a=[],w=p.K,h=p.G,18=V.1s(\'y\');18.2d=\'1k/R\';7(p.1x)8.1x([8.$(p.T)],p.A+\'45\');7(p.R)a.14(\'.\'+p.S+\' *{49:0;2e:0;38:0;4d-y:1K;}.\'+p.S+\'{25:2h;K:\'+w+\'B;G:\'+h+\'B;28:2a;4k:4m/1.5 4o;1k-2k:1G;2m:#2n;4I:4O!1H;}.\'+p.S+\' .1I{25:3b;z-u:3c;K:Z%;G:Z%;3d:#3e;1k-2k:2q;2e-3g:\'+0.3*h+\'B;2m:#2n 3h(2w://3i.3j.2J/3k/3l/3m-1I.3n) 2q \'+0.4*h+\'B 3o-3p;}.\'+p.S+\' .3q{25:2h;K:\'+w+\'B;G:\'+h+\'B;28:2a;}.\'+p.S+\' .1l E,.\'+p.S+\' .1l E 24,.\'+p.S+\' .1l-3r{K:\'+w+\'B;G:\'+p.1S+\'B!1H;3s-G:\'+p.1S+\'B!1H;28:2a;}.\'+p.S+\' .1l E p a{1o:3t;}\');7(18.2r){18.2r.3v=a.1M(\'\')}O{18.1m=a.1M(\'\')}9 b=8.$$(\'1J\',V)[0];b.2Q(18,b.3x)}},2t={1i:!(+[1,]),3z:6(a,b,c,d,e){x"9 1c=8,1L=1c.$c(\'1I\',1d),Q="+c+",10,1N=J,16="+d+"||\'1G\',1r=16==\'1G\'||16==\'3H\'?1f.K:1f.G,1t=Q&&("+e+"||3K),u=1f.u,1u=1f.2B*2D;7(Q){1t.y[16]=-1r*n+\'B\';u+=n;}7(1L)1d.3N(1L);9 M=6(12){("+a+")();9 3Q=u;7(Q&&u==2*n-1&&10!=1){1t.y[16]=-(n-1)*1r+\'B\';u=n-1}7(Q&&u==0&&10!=2){1t.y[16]=-n*1r+\'B\';u=n}7(!Q&&u==n-1&&12==11)u=-1;7(Q&&12!==11&&u>n-1&&!10&&!1N) 12+=n;9 1h=12!==11?12:u+1;7("+b+")("+b+")();u=1h;10=1N=2H;};M(u);7(1u&&1f.I)9 I=1O(6(){M()},1u);1d.1V=6(){7(I)1b(I)};1d.1W=6(){7(I)I=1O(6(){M()},1u)};D(9 i=0,1X=1c.$$(\'a\',1d),2L=1X.L;i<2L;i++) 1X[i].3X=6(){8.3Y();}"},3Z:6(a,b,c){x"D (9 j=0;j<n;j++){"+a+"[j].u=j;7("+b+"==\'2S\'){"+a+"[j].1V=6(){7(8.u!=u)8.U+=\' 2M\'};"+a+"[j].1W=6(){1c.2N(8,\'2M\')};"+a+"[j].1y=6(){7(8.u!=u) {M(8.u);x P}};}O 7("+b+"==\'43\'){"+a+"[j].1V=6(){9 1j=8;7("+c+"==0){7(1j.u!=u){M(1j.u);x P}}O "+a+".d=22(6(){7(1j.u!=u) {M(1j.u);x P}},"+c+")};"+a+"[j].1W=6(){44("+a+".d)};}O{21(\'46 47 : \\"\'+"+b+"+\'\\"\');2l;}}"},48:6(a,b,c){x"9 1B=P;"+a+".1y=6(){8.U=8.U==\'"+b+"\'?\'"+c+"\':\'"+b+"\';7(!1B){1b(I);I=2H;1B=J;}O{I=J;1B=P;}}"},4a:6(a,b,c,d,e){x"9 17={},Y="+c+",2U=1a.2v("+d+"/2),2V=4f("+a+".y["+b+"])||0,15=1h>=n?1h-n:1h,2X="+e+"||4i,2Y=Y*(n-"+d+"),26=Y*15+2V;7(26>Y*2U&&15!==n-1) 17["+b+"]=\'-\'+Y;7(26<Y&&15!==0) 17["+b+"]=\'+\'+Y;7(15===n-1) 17["+b+"]=-2Y;7(15===0) 17["+b+"]=0;1c.2I("+a+",17,2X);"},4l:6(a,b){x a+".1y=6(){10=1;M(u>0?u-1:n-1);};"+b+".1y=6(){10=2;9 30=u>=2*n-1?n-1:u;M(u==n-1&&!Q?0:30+1);}"},4n:6(o,a,b){9 c=8.$$(\'C\',o)[0];c.H=b?c.H.1g(2O("/"+a+"\\\\.(?=[^\\\\.]+$)/g"),\'.\'):c.H.1g(/\\.(?=[^\\.]+$)/g,a+\'.\')},31:6(a,b,c){9 d=8.$$(\'C\',a),27=d.L,W=0,1n=P;D(9 i=0;i<27;i++){d[i].33=6(){W+=1;7(W==27&&!1n){1n=J,c()}};7(8.1i)d[i].H=d[i].H};7(b===J)x;9 t=b===P?0:b*2D;22(6(){7(!1n){1n=J,c()}},t)},2T:6(a,b,c){9 d=V.1s("4q"),R=V.1s("4r"),H=b+a+\'.2y\',29=b+a+\'.R\';d.2d="1k/4t",d.H=H;R.4u="4v",R.29=29;8.$$(\'1J\')[0].1P(R);8.$$(\'1J\')[0].1P(d);7(8.1i){d.4w=6(){7(d.35=="4y"||d.35=="4z")c()}}O{d.33=6(){c()}}d.4A=6(){21(\'4B 4C (4D): \'+H)}},36:6(a,c,d){9 b=8.1i,e=b?\'32\':\'4E\',t=(b?\'4F\':\'\')+c;a[e](t,d,P)}};q.1q(q,r,2u,2P,2K,2t);q.1T.4G=6(a,p){q.A[a].2W=p};1F=q;7(1A 1z===\'11\')1z=1F;O 21(\'"1z" 4J 4K 4L, 4M 4N "1F".\');7(1A 2A!==\'11\'){2A.4P.1q({1z:6(p,a){7(!p)p={};p.T=8[0].T;7(!p.T)p.T=8[0].T=\'4Q\';1F.1T(p,J,a)}})}})();',62,301,'||||||function|if|this|var|||||||||||||||||||||index|||return|style||pattern|px|img|for|li||height|src|auto|true|width|length|run|opacity|else|false|less|css||id|className|document|cont|ul|scDis|100|_tn|undefined|idx||push|scIdx|_dir|scPar|oStyle|path|Math|clearInterval|_F|box|Timer|par|replace|next|isIE|self|text|txt|innerHTML|ok|display|parent|extend|_dis|createElement|_wp|_t|defConfig|animate|wrap|onclick|myFocus|typeof|_stop|ready|in|reg|myFocus__AGENT__|left|important|loading|head|none|_ld|join|first|setInterval|appendChild|pv|linear|txtHeight|set|arr|onmouseover|onmouseout|_lk|_|num||alert|setTimeout|new|span|position|scD|len|overflow|href|hidden|show|am|type|padding|string|st|relative|Date|getTime|align|break|background|fff|parentNode|easing|center|styleSheet|easeOut|Method|CSS|floor|http|class|js|waiting|jQuery|time|call|1000|isNaN|400|setOpa|null|slide|com|Init|_ln|hover|removeClass|eval|Anim|insertBefore|getAttribute|click|loadPattern|scN|scDir|cfg|scDur|scMax|initCSS|tIdx|onloadIMG|attachEvent|onload|arguments|readyState|addEvent|thumb|border|cos|PI|absolute|9999|color|666|easeIn|top|url|nethd|zhongsou|wtimg|i_41956|28236|gif|no|repeat|pic|bg|line|inline|easeInOut|cssText|block|firstChild|800|switchMF|default|filter|mF_fscreen_tb|alpha|cosmissy|ceil|314|right|RegExp|myfocus|pics|trigger|getElementsByTagName|removeChild|www|window|prev|wrapIn|try|catch|getElementById|callee|alt|onfocus|blur|bind|DOMContentLoaded|delay|currentStyle|mouseover|clearTimeout|_wrap|Error|Setting|toggle|margin|scroll|fadeIn|getComputedStyle|list|test|parseInt|parseFloat|fadeOut|500|div|font|turn|12px|alterSRC|Verdana|stop|script|link|indexOf|javascript|rel|stylesheet|onreadystatechange|swing|loaded|complete|onerror|Not|Found|404|addEventListener|on|params|addList|visibility|has|been|Defined|Please|use|visible|fn|mF__NAME__'.split('|'),0,{}))