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