Archived
1
0
Fork 0
This repository has been archived on 2018-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
sjqg/js/jquery.lightbox.packed.js

11 lines
12 KiB
JavaScript

/**
* jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
* Copyright (C) 2008 Benjamin Arthur Lupton
* http://jquery.com/plugins/project/jquerylightbox_bal
*
* This file is part of jQuery Lightbox (balupton edition).
*
* You should have received a copy of the GNU Affero General Public License
* along with jQuery Lightbox (balupton edition). If not, see <http://www.gnu.org/licenses/>.
*/
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}('(v($){$.W=$.W||v(a){r b=B;q(C 21!==\'G\'&&C $.W!==\'G\'){b=21}J q(C 12.21!==\'G\'&&C 12.$.W!==\'G\'){b=12.21}q(b){q(C 1N!==\'G\'&&1N.1C>1){b.W(1N);u 1N}J{b.W(a);u a}}};$.2p=$.2p||v(a){a=2X(a);a=a.1D(a.22(\'?\')+1);a=a.2q(/\\+/g,\'%20\');q(a.1D(0,1)===\'{\'&&a.1D(a.1C-1)===\'}\'){u 23(2r(a))}a=a.2s(/\\&|\\&3R\\;/);r b={};1l(r i=0,n=a.1C;i<n;++i){r c=a[i]||B;q(c===B){24}c=c.2s(\'=\');q(c===B){24}r d=c[0]||B;q(d===B){24}q(C c[1]===\'G\'){24}r f=c[1];d=2r(d);f=2r(f);3S{f=23(f)}3T(e){}r g=d.2s(\'.\');q(g.1C===1){b[d]=f}J{r h=\'\';1l(2Y 25 g){d=g[2Y];h+=\'.\'+d;23(\'2t\'+h+\' = 2t\'+h+\' || {}\')}23(\'2t\'+h+\' = 3U\')}}u b};$.26=v(){7.2Z()};$.3V.8=v(b){$.w=$.w||1e $.26();q($.w.1f&&!$.w.28){u 7}b=$.1E({1O:x,30:E},b);r c=$(7);q(b.30){$(c).15().1m(v(){r a=$(7);q(!$.w.2u($(a)[0],c)){u x}q(!$.w.1O()){u x}u x});$(c).3W(\'8-3X\')}q(b.1O){r d=$(7);q(!$.w.2u($(d)[0],c)){u 7}q(!$.w.1O()){u 7}}u 7};$.1E($.26.3Y,{y:{1n:[],L:x,18:v(a){q(C a===\'G\'){a=7.13();q(!a){u a}}q(7.29(a)){u x}u 7.1o(a.16-1)},19:v(a){q(C a===\'G\'){a=7.13();q(!a){u a}}q(7.2v(a)){u x}u 7.1o(a.16+1)},29:v(a){q(C a===\'G\'){u 7.1o(0)}u a.16===0},2v:v(a){q(C a===\'G\'){u 7.1o(7.1a()-1)}u a.16===7.1a()-1},31:v(){u 7.1a()===1},1a:v(){u 7.1n.1C},2w:v(){u 7.1a()===0},2x:v(){7.1n=[];7.L=x},13:v(a){q(C a===\'G\'){u 7.L}q(a!==x){a=7.1o(a);q(!a){u a}}7.L=a;u E},2y:v(a){q(a[0]){1l(r i=0;i<a.1C;i++){7.2y(a[i])}u E}r b=7.2z(a);q(!b){u b}b.16=7.1a();7.1n.32(b);u E},2z:v(a){r b={z:\'\',K:\'33\',Y:\'\',1F:\'\',16:-1,1b:B,P:B,N:B,L:E};q(a.L){b.z=a.z||b.z;b.K=a.K||b.K;b.Y=a.Y||b.Y;b.1F=a.1F||b.1F;b.1b=a.1b||b.1b;b.P=a.P||b.P;b.N=a.N||b.N;b.16=a.16||b.16}J q(a.3Z){a=$(a);q(a.U(\'z\')||a.U(\'14\')){b.z=a.U(\'z\')||a.U(\'14\');b.K=a.U(\'K\')||a.U(\'40\')||b.K;b.1F=a.U(\'1F\')||\'\';b.1b=a.H(\'1g-1b\');r s=b.K.22(\': \');q(s>0){b.Y=b.K.1D(s+2)||b.Y;b.K=b.K.1D(0,s)||b.K}}J{b=x}}J{b=x}q(!b){$.W(\'2A\',\'34 41 35 36 42 43:\',a);u x}u b},1o:v(a){q(C a===\'G\'||a===B){u 7.13()}J q(C a===\'44\'){a=7.1n[a]||x}J{a=7.2z(a);q(!a){u x}r f=x;1l(r i=0;i<7.1a();i++){r c=7.1n[i];q(c.z===a.z&&c.K===a.K&&c.Y===a.Y){f=c}}a=f}q(!a){$.W(\'2A\',\'46 47 L 48\\\'t 49: \',a,7.1n);u x}u a},38:v(){u $.w.38(1N)}},2a:x,z:B,1P:B,O:{1c:{8:\'1c/2B.8.3a.1c\',V:\'1c/2C.V.4a.1c\'},H:{8:\'H/2B.8.3a.H\'},y:{18:\'y/18.2b\',19:\'y/19.2b\',1Q:\'y/1Q.2b\',1h:\'y/1h.2b\'}},F:{L:\'1R\',2D:\'2D\',Z:\'4b X\',3b:\'4c 4d 4e 1m 4f 4g 2E L 1p Z.\',2F:\'4h 1G 1p 2F 2E L.\',2G:{Z:\'4i 1p Z\',1q:\'4j 1p 1q\'},1H:{F:\'2C w 4k (4l 4m)\',K:\'4n 4o 2E 4p 4q 4r 4s 4t.\',1G:\'3c://2B.4u/4v/4w/4x\'}},1S:E,1T:{Z:\'c\',18:\'p\',19:\'n\'},2H:{1r:B},2c:0.9,17:B,T:3d,1I:\'8\',2I:E,1U:\'3e\',1f:B,28:E,2J:E,V:B,2K:[\'28\',\'2J\',\'V\',\'1P\',\'O\',\'F\',\'1S\',\'1T\',\'2c\',\'17\',\'T\',\'1I\',\'2I\',\'3f\'],2Z:v(e){r f=C 7.2a===\'G\'||7.2a===x;7.2a=E;r g=f;e=$.1E({},e);q(f&&(C e.O===\'G\')){7.z=$(\'1J[z*=\'+7.O.1c.8+\']:29\').U(\'z\');q(!7.z){g=x}J{7.1P=7.z.1D(0,7.z.22(7.O.1c.8));r h=7;$.1s(7.O,v(c,d){$.1s(7,v(a,b){h.O[c][a]=h.1P+b})});1t h;e=$.1E(e,$.2p(7.z))}}J q(C e.O===\'1u\'){r h=7;$.1s(e.O,v(c,d){$.1s(7,v(a,b){7[a]=h.1P+b})});1t h}J{g=x}1l(i 25 7.2K){r j=7.2K[i];q((C e[j]===\'1u\')&&(C 7[j]===\'1u\')){7[j]=$.1E(7[j],e[j])}J q(C e[j]!==\'G\'){7[j]=e[j]}}q(f&&4y.4z.22(\'4A 6\')>=0){7.1f=E}J{7.1f=x}q(g||C e.V!==\'G\'||C e.O===\'1u\'||C e.F===\'1u\'||C e.1S!==\'G\'||C e.3f!==\'G\'){$(v(){$.w.3g()})}u E},3g:v(){r b=R.4B($.4C.4D?\'4E\':\'1i\')[0];r c=7.O.H;r d=7.O.1c;q(7.1f&&7.2J){d.1f=\'3c://4F.4G.4H/4I.1d.1p.4J.6.1c\'}q(7.V===E&&C $.V===\'G\'){7.V=E}J{7.V=C $.V!==\'G\';1t d.V}1l(1V 25 c){r e=R.3h(\'1G\');e.3i=\'F/H\';e.1I=\'1V\';e.4K=\'4L\';e.14=c[1V];e.D=\'8-1V-\'+1V.2q(/[^a-3j-3k-9]/g,\'\');$(\'#\'+e.D).2L();b.3l(e)}1l(1J 25 d){r f=R.3h(\'1J\');f.3i=\'F/4M\';f.z=d[1J];f.D=\'8-1J-\'+1J.2q(/[^a-3j-3k-9]/g,\'\');$(\'#\'+f.D).2L();b.3l(f)}1t d;1t c;1t b;$(\'#8,#8-M\').2L();$(\'1i\').4N(\'<I D="8-M"><I D="8-M-F">\'+(7.1S?\'<p><S D="8-M-F-1H"><a 14="#" K="\'+7.F.1H.K+\'">\'+7.F.1H.F+\'</a></S></p><p>&1v;</p>\':\'\')+\'<p><S D="8-M-F-Z">\'+7.F.2G.Z+\'</S><4O/>&1v;<S D="8-M-F-1q">\'+7.F.2G.1q+\'</S></p></I></I><I D="8"><I D="8-1w"><I D="8-2M"><3m D="8-L" /><I D="8-Q"><a 14="#" D="8-Q-1x"></a><a 14="#" D="8-Q-1y"></a></I><I D="8-1h"><a 14="#" D="8-1h-1G"><3m z="\'+7.O.y.1h+\'" /></a></I></I></I><I D="8-1K"><I D="8-3n"><I D="8-4P"><S D="8-1j"><a D="8-1j-K" 14="#" K="\'+7.F.2F+\'"></a><S D="8-1j-3o"></S><S D="8-1j-Y"></S></S></I><I D="8-2N"><S D="8-2O"></S><S D="8-Z"><a 14="#" D="8-Z-4Q" K="\'+7.F.3b+\'">\'+7.F.Z+\'</a></S></I><I D="8-3n-2x"></I></I></I></I>\');7.1W();7.1k();$(\'#8,#8-M,#8-M-F-1q\').1z();q(7.1f&&7.28){$(\'#8-M\').H({4R:\'4S\',3p:\'3q\',2d:\'3q\'})}$.1s(7.O.y,v(){r a=1e 1R();a.2e=v(){a.2e=B;a=B};a.z=7});$(12).15().3r(v(){$.w.1W(\'4T\')});q(7.1U===\'3e\'){$(12).1U(v(){$.w.1k()})}$(\'#8-Q-1x\').15().2P(v(){$(7).H({\'1g\':\'1X(\'+$.w.O.y.18+\') 2d 45% 1d-1Y\'})},v(){$(7).H({\'1g\':\'2Q 1X(\'+$.w.O.y.1Q+\') 1d-1Y\'})}).1m(v(){$.w.11($.w.y.18());u x});$(\'#8-Q-1y\').15().2P(v(){$(7).H({\'1g\':\'1X(\'+$.w.O.y.19+\') 4U 45% 1d-1Y\'})},v(){$(7).H({\'1g\':\'2Q 1X(\'+$.w.O.y.1Q+\') 1d-1Y\'})}).1m(v(){$.w.11($.w.y.19());u x});q(7.1S){$(\'#8-M-F-1H a\').1m(v(){12.3s($.w.F.1H.1G);u x})}$(\'#8-M-F-Z\').15().2P(v(){$(\'#8-M-F-1q\').2f()},v(){$(\'#8-M-F-1q\').3t()});$(\'#8-1j-K\').1m(v(){12.3s($(7).U(\'14\'));u x});$(\'#8-M, #8, #8-1h-1G, #8-4V\').15().1m(v(){$.w.2g();u x});q(7.2I){7.3u()}u E},3u:v(){r d={};r e=0;r f=7.1I;$.1s($(\'[@1I*=\'+f+\']\'),v(a,b){r c=$(b).U(\'1I\');q(c===f){c=e}q(C d[c]===\'G\'){d[c]=[];e++}d[c].32(b)});$.1s(d,v(a,b){$(b).8()});u E},2u:v(a,b){q(C b===\'G\'){b=a;a=0}7.y.2x();q(!7.y.2y(b)){u x}q(7.y.2w()){$.W(\'3v\',\'w 4W, 4X 1d y: \',a,b);u x}q(!7.y.13(a)){u x}u E},1O:v(){7.1L=E;q(7.1U===\'3w\'){$(R.1i).H(\'3x\',\'3y\')}$(\'3z, 1u, 3A\').H(\'3B\',\'3y\');7.1W(\'3C\');7.1k({\'T\':0});$(\'#8-2N\').1z();$(\'#8-L,#8-Q,#8-Q-1x,#8-Q-1y,#8-1K\').1z();$(\'#8-M\').H(\'2c\',7.2c).2f(3d,v(){$(\'#8\').2f(4Y);q(!$.w.11($.w.y.13())){$.w.2g();u x}});u E},2g:v(){$(\'#8\').1z();$(\'#8-M\').3t(v(){$(\'#8-M\').1z()});$(\'3z, 1u, 3A\').H({\'3B\':\'1L\'});7.y.13(x);q(7.1U===\'3w\'){$(R.1i).H(\'3x\',\'1L\')}7.1L=x},1W:v(a){q(a!==\'2R\'){r b=$(7.1f?R.1i:R);$(\'#8-M\').H({P:b.P(),N:b.N()});1t b}q(a===\'3C\'){u E}r c=7.y.13();q(!c||!c.P||!7.1L){$.W(\'3v\',\'A 3r 4Z 2S 1d L 50 1d 8...\');u x}r d=c.P;r e=c.N;r f=$(12).P();r g=$(12).N();r h=2h.2i(f*(4/5));r i=2h.2i(g*(4/5));r j;2S(d>h||e>i){q(d>h){j=h/d;d=h;e=2h.2i(e*j)}q(e>i){j=i/e;e=i;d=2h.2i(d*j)}}r k=$(\'#8-1w\').P();r l=$(\'#8-1w\').N();r m=(d+(7.17*2));r n=(e+(7.17*2));r o=k-m;r p=l-n;$(\'#8-Q-1x,#8-Q-1y\').H(\'N\',n);$(\'#8-1K\').H(\'P\',m);q(a===\'2R\'){q(o===0&&p===0){7.3D(7.T/3);7.11(B,3)}J{$(\'#8-L\').P(d).N(e);$(\'#8-1w\').2j({P:m,N:n},7.T,v(){$.w.11(B,3)});7.1k({\'2T\':n,\'T\':7.T})}}J{$(\'#8-L\').2j({P:d,N:e},7.T);$(\'#8-1w\').2j({P:m,N:n},7.T);7.1k({\'2T\':n,\'T\':7.T})}u E},1A:x,1M:x,1k:v(a){q(7.1A){7.1M=E;u B}7.1A=E;a=$.1E({},a);a.2k=a.2k||B;a.T=a.T||\'3E\';r b=7.3F();r c=a.2T||2U($(\'#8\').N(),10);r d=b.1B+($(12).N()-c)/2.5;r e=b.3G;r f={2d:e,3p:d};q(a.T){$(\'#8\').2j(f,\'3E\',v(){q($.w.1M){$.w.1A=$.w.1M=x;$.w.1k(a)}J{$.w.1A=x;q(a.2k){a.2k()}}})}J{$(\'#8\').H(f);q(7.1M){7.1A=7.1M=x;7.1k(a)}J{7.1A=x}}u E},1L:x,11:v(a,b){a=7.y.1o(a);q(!a){u a}b=b||1;r c=b>1&&7.y.13().z!==a.z;r d=b>2&&$(\'#8-L\').U(\'z\')!==a.z;q(c||d){$.W(\'34 51 1p 52 a 53 54: \',a,b,c,d);b=1}55(b){2l 1:7.3H();$(\'#8-1h\').1r();$(\'#8-L,#8-Q,#8-Q-1x,#8-Q-1y,#8-1K\').1z();$(\'#8-1w\').15();q(!7.y.13(a)){u x}q(a.P&&a.N){7.11(B,2)}J{r e=1e 1R();e.2e=v(){a.P=e.P;a.N=e.N;$.w.11(B,2);e.2e=B;e=B};e.z=a.z}2m;2l 2:$(\'#8-L\').U(\'z\',a.z);q(C 7.17===\'G\'||7.17===B||56(7.17)){7.17=2U($(\'#8-2M\').H(\'17-2d\'),10)||2U($(\'#8-2M\').H(\'17\'),10)||0}q(7.V){$(\'#8-M\').V([{57:\'1g-1b\',58:$(\'#8-M\').H(\'1g-1b\'),59:a.1b,5a:1,5b:x}])}7.1W(\'2R\');2m;2l 3:$(\'#8-1h\').1z();$(\'#8-L\').2f(5c,v(){$.w.11(B,4)});7.3I();q(7.2H.1r!==B){7.2H.1r(a)}2m;2l 4:$(\'#8-1j-K\').1Z(a.K||\'33\').U(\'14\',a.z);$(\'#8-1j-3o\').1Z(a.Y?\': \':\'\');$(\'#8-1j-Y\').1Z(a.Y||\'&1v;\');q(7.y.1a()>1){$(\'#8-2O\').1Z(7.F.L+\'&1v;\'+(a.16+1)+\'&1v;\'+7.F.2D+\'&1v;\'+7.y.1a())}J{$(\'#8-2O\').1Z(\'&1v;\')}$(\'#8-1w\').15(\'2n\').2n(v(){$(\'#8-1K\').3J(\'3K\')});$(\'#8-1K\').15(\'2n\').2n(v(){$(\'#8-2N\').3J(\'3K\')});$(\'#8-Q-1x, #8-Q-1y\').H({\'1g\':\'2Q 1X(\'+7.O.y.1Q+\') 1d-1Y\'});q(!7.y.29(a)){$(\'#8-Q-1x\').1r()}q(!7.y.2v(a)){$(\'#8-Q-1y\').1r()}$(\'#8-Q\').1r();7.3L();2m;5d:$.W(\'2A\',\'5e\\\'t 35 36 1p 3M: \',a,b);u 7.11(a,1)}u E},3I:v(){q(7.y.31()||7.y.2w()){u E}r a=7.y.13();q(!a){u a}r b=7.y.18(a);r c;q(b){c=1e 1R();c.z=b.z}r d=7.y.19(a);q(d){c=1e 1R();c.z=d.z}},3L:v(){$(R).5f(v(a){$.w.3N(a)})},3H:v(){$(R).15()},3N:v(a){a=a||12.5g;r b=a.5h;r c=a.5i||27;r d=2X.5j(b).5k();q(d===7.1T.Z||b===c){u $.w.2g()}q(d===7.1T.18||b===37){u $.w.11($.w.y.18())}q(d===7.1T.19||b===39){u $.w.11($.w.y.19())}u E},3F:v(){r a,1B;q(2V.3O){1B=2V.3O;a=2V.5l}J q(R.2o&&R.2o.2W){1B=R.2o.2W;a=R.2o.3P}J q(R.1i){1B=R.1i.2W;a=R.1i.3P}r b={\'3G\':a,\'1B\':1B};u b},3D:v(a){r b=1e 3Q();r c=B;3M{c=1e 3Q()}2S(c-b<a)}});q(C $.w===\'G\'){$.w=1e $.26()}})(2C);',62,332,'|||||||this|lightbox||||||||||||||||||if|var|||return|function|Lightbox|false|images|src||null|typeof|id|true|text|undefined|css|div|else|title|image|overlay|height|files|width|nav|document|span|speed|attr|colorBlend|log||description|close||showImage|window|active|href|unbind|index|padding|prev|next|size|color|js|no|new|ie6|background|loading|body|caption|repositionBoxes|for|click|list|get|to|interact|show|each|delete|object|nbsp|imageBox|btnPrev|btnNext|hide|repositioning|yScroll|length|substring|extend|name|link|about|rel|script|infoBox|visible|reposition_failsafe|arguments|start|baseurl|blank|Image|show_linkback|keys|scroll|stylesheet|resizeBoxes|url|repeat|html||console|indexOf|eval|continue|in|LightboxClass||ie6_support|first|constructed|gif|opacity|left|onload|fadeIn|finish|Math|floor|animate|callback|case|break|mouseover|documentElement|params_to_json|replace|decodeURIComponent|split|json|init|last|empty|clear|add|create|ERROR|jquery|jQuery|of|the|download|help|handlers|auto_relify|ie6_upgrade|options|remove|imageContainer|infoFooter|currentNumber|hover|transparent|transition|while|nHeight|parseInt|self|scrollTop|String|ii|construct|events|single|push|Untitled|We|know|what||debug||packed|closeInfo|http|400|follow|scroll_with|domReady|createElement|type|zA|Z0|appendChild|img|infoContainer|seperator|top|0px|resize|open|fadeOut|relify|WARNING|disable|overflow|hidden|embed|select|visibility|general|pause|slow|getPageScroll|xScroll|KeyboardNav_Disable|preloadNeighbours|slideDown|fast|KeyboardNav_Enable|do|KeyboardNav_Action|pageYOffset|scrollLeft|Date|amp|try|catch|value|fn|addClass|enabled|prototype|tagName|alt|dont|we|have|number||The|desired|doesn|exist|pack|Close|You|can|also|anywhere|outside|Direct|Click|Hover|Plugin|balupton|edition|Licenced|under|GNU|Affero|General|Public|License|com|plugins|project|jquerylightbox_bal|navigator|userAgent|MSIE|getElementsByTagName|browser|safari|head|www|savethedevelopers|org|say|ie|media|screen|javascript|append|br|infoHeader|button|position|absolute|resized|right|btnClose|started|but|300|occured|or|wanted|skip|few|steps|switch|isNaN|param|fromColor|toColor|cycles|isFade|500|default|Don|keydown|event|keyCode|DOM_VK_ESCAPE|fromCharCode|toLowerCase|pageXOffset'.split('|'),0,{}))