Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/slimbox.tar
Назад
js/index.html 0000604 00000000037 15246347307 0007164 0 ustar 00 <!DOCTYPE html><title></title> js/slimbox.js 0000604 00000011341 15246347307 0007202 0 ustar 00 (function($){ /*! Slimbox v1.8 - The ultimate lightweight Lightbox clone (c) 2007-2011 Christophe Beyls <http://www.digitalia.be> MIT-style license. */ var Slimbox=(function(){var F=window,n=Browser.ie6,u,g,G=-1,o,w,E,v,y,M,s,m={},t=new Image(),K=new Image(),I,a,h,q,J,e,H,c,A,L,x,i,d,C;F.addEvent("domready",function(){$(document.body).adopt($$(I=new Element("div#lbOverlay",{events:{click:D}}),a=new Element("div#lbCenter"),H=new Element("div#lbBottomContainer")).setStyle("display","none"));h=new Element("div#lbImage").inject(a).adopt(q=new Element("div",{styles:{position:"relative"}}).adopt(J=new Element("a#lbPrevLink[href=#]",{events:{click:B}}),e=new Element("a#lbNextLink[href=#]",{events:{click:f}})));c=new Element("div#lbBottom").inject(H).adopt(new Element("a#lbCloseLink[href=#]",{events:{click:D}}),A=new Element("div#lbCaption"),L=new Element("div#lbNumber"),new Element("div",{styles:{clear:"both"}}))});function z(){var N=F.getScroll(),O=F.getSize();$$(a,H).setStyle("left",N.x+(O.x/2));if(v){I.setStyles({left:N.x,top:N.y,width:O.x,height:O.y})}}function l(N){["object",n?"select":"embed"].forEach(function(P){Array.forEach(document.getElementsByTagName(P),function(Q){if(N){Q._slimbox=Q.style.visibility}Q.style.visibility=N?"hidden":Q._slimbox})});I.style.display=N?"":"none";var O=N?"addEvent":"removeEvent";F[O]("scroll",z)[O]("resize",z);document[O]("keydown",p)}function p(O){var N=O.code;return u.closeKeys.contains(N)?D():u.nextKeys.contains(N)?f():u.previousKeys.contains(N)?B():false}function B(){return b(w)}function f(){return b(E)}function b(N){if(N>=0){G=N;o=g[N][0];w=(G||(u.loop?g.length:0))-1;E=((G+1)%g.length)||(u.loop?0:-1);r();a.className="lbLoading";m=new Image();m.onload=k;m.src=o}return false}function k(){a.className="";d.set(0);h.setStyles({backgroundImage:"url("+o+")",display:""});q.setStyle("width",m.width);$$(q,J,e).setStyle("height",m.height);A.set("html",g[G][1]||"");L.set("html",(((g.length>1)&&u.counterText)||"").replace(/{x}/,G+1).replace(/{y}/,g.length));if(w>=0){t.src=g[w][0]}if(E>=0){K.src=g[E][0]}M=h.offsetWidth;s=h.offsetHeight;var P=Math.max(0,y-(s/2)),N=0,O;if(a.offsetHeight!=s){N=i.start({height:s,top:P})}if(a.offsetWidth!=M){N=i.start({width:M,marginLeft:-M/2})}O=function(){H.setStyles({width:M,top:P+s,marginLeft:-M/2,visibility:"hidden",display:""});d.start(1)};if(N){i.chain(O)}else{O()}}function j(){if(w>=0){J.style.display=""}if(E>=0){e.style.display=""}C.set(-c.offsetHeight).start(0);H.style.visibility=""}function r(){m.onload=null;m.src=t.src=K.src=o;i.cancel();d.cancel();C.cancel();$$(J,e,h,H).setStyle("display","none")}function D(){if(G>=0){r();G=w=E=-1;a.style.display="none";x.cancel().chain(l).start(0)}return false}Element.implement({slimbox:function(N,O){$$(this).slimbox(N,O);return this}});Elements.implement({slimbox:function(N,Q,P){Q=Q||function(R){return[R.href,R.title]};P=P||function(){return true};var O=this;O.removeEvents("click").addEvent("click",function(){var R=O.filter(P,this);return Slimbox.open(R.map(Q),R.indexOf(this),N)});return O}});return{open:function(P,O,N){u=Object.append({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},N||{});x=new Fx.Tween(I,{property:"opacity",duration:u.overlayFadeDuration});i=new Fx.Morph(a,Object.append({duration:u.resizeDuration,link:"chain"},u.resizeTransition?{transition:u.resizeTransition}:{}));d=new Fx.Tween(h,{property:"opacity",duration:u.imageFadeDuration,onComplete:j});C=new Fx.Tween(c,{property:"margin-top",duration:u.captionAnimationDuration});if(typeof P=="string"){P=[[P,O]];O=0}y=F.getScrollTop()+(F.getHeight()/2);M=u.initialWidth;s=u.initialHeight;a.setStyles({top:Math.max(0,y-(s/2)),width:M,height:s,marginLeft:-M/2,display:""});v=n||(I.currentStyle&&(I.currentStyle.position!="fixed"));if(v){I.style.position="absolute"}x.set(0).start(u.overlayOpacity);z();l(1);g=P;u.loop=u.loop&&(g.length>1);return b(O)}}})(); // AUTOLOAD CODE BLOCK (MAY BE CHANGED OR REMOVED) Slimbox.scanPage = function(){ $$("a").filter(function(el){ return el.rel && el.rel.test(/^lightbox/i); }).slimbox({ counterText: "{x} / {y}", loop: true }, null, function(el){ return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }; if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) { window.addEvent("domready", Slimbox.scanPage); }/* if (!/series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) { window.addEvent("domready", Slimbox.scanPage); }*/ })(document.id); js/slimbox.uncompressed.js 0000604 00000021766 15246347307 0011724 0 ustar 00 /*! Slimbox v1.8 - The ultimate lightweight Lightbox clone (c) 2007-2011 Christophe Beyls <http://www.digitalia.be> MIT-style license. */ var Slimbox = (function() { // Global variables, accessible to Slimbox only var win = window, ie6 = Browser.ie6, options, images, activeImage = -1, activeURL, prevImage, nextImage, compatibleOverlay, middle, centerWidth, centerHeight, // Preload images preload = {}, preloadPrev = new Image(), preloadNext = new Image(), // DOM elements overlay, center, image, sizer, prevLink, nextLink, bottomContainer, bottom, caption, number, // Effects fxOverlay, fxResize, fxImage, fxBottom; /* Initialization */ win.addEvent("domready", function() { // Append the Slimbox HTML code at the bottom of the document $(document.body).adopt( $$( overlay = new Element("div#lbOverlay", {events: {click: close}}), center = new Element("div#lbCenter"), bottomContainer = new Element("div#lbBottomContainer") ).setStyle("display", "none") ); image = new Element("div#lbImage").inject(center).adopt( sizer = new Element("div", {styles: {position: "relative"}}).adopt( prevLink = new Element("a#lbPrevLink[href=#]", {events: {click: previous}}), nextLink = new Element("a#lbNextLink[href=#]", {events: {click: next}}) ) ); bottom = new Element("div#lbBottom").inject(bottomContainer).adopt( new Element("a#lbCloseLink[href=#]", {events: {click: close}}), caption = new Element("div#lbCaption"), number = new Element("div#lbNumber"), new Element("div", {styles: {clear: "both"}}) ); }); /* Internal functions */ function position() { var scroll = win.getScroll(), size = win.getSize(); $$(center, bottomContainer).setStyle("left", scroll.x + (size.x / 2)); if (compatibleOverlay) overlay.setStyles({left: scroll.x, top: scroll.y, width: size.x, height: size.y}); } function setup(open) { ["object", ie6 ? "select" : "embed"].forEach(function(tag) { Array.forEach(document.getElementsByTagName(tag), function(el) { if (open) el._slimbox = el.style.visibility; el.style.visibility = open ? "hidden" : el._slimbox; }); }); overlay.style.display = open ? "" : "none"; var fn = open ? "addEvent" : "removeEvent"; win[fn]("scroll", position)[fn]("resize", position); document[fn]("keydown", keyDown); } function keyDown(event) { var code = event.code; // Prevent default keyboard action (like navigating inside the page) return options.closeKeys.contains(code) ? close() : options.nextKeys.contains(code) ? next() : options.previousKeys.contains(code) ? previous() : false; } function previous() { return changeImage(prevImage); } function next() { return changeImage(nextImage); } function changeImage(imageIndex) { if (imageIndex >= 0) { activeImage = imageIndex; activeURL = images[imageIndex][0]; prevImage = (activeImage || (options.loop ? images.length : 0)) - 1; nextImage = ((activeImage + 1) % images.length) || (options.loop ? 0 : -1); stop(); center.className = "lbLoading"; preload = new Image(); preload.onload = animateBox; preload.src = activeURL; } return false; } function animateBox() { center.className = ""; fxImage.set(0); image.setStyles({backgroundImage: "url(" + activeURL + ")", display: ""}); sizer.setStyle("width", preload.width); $$(sizer, prevLink, nextLink).setStyle("height", preload.height); caption.set("html", images[activeImage][1] || ""); number.set("html", (((images.length > 1) && options.counterText) || "").replace(/{x}/, activeImage + 1).replace(/{y}/, images.length)); if (prevImage >= 0) preloadPrev.src = images[prevImage][0]; if (nextImage >= 0) preloadNext.src = images[nextImage][0]; centerWidth = image.offsetWidth; centerHeight = image.offsetHeight; var top = Math.max(0, middle - (centerHeight / 2)), check = 0, fn; if (center.offsetHeight != centerHeight) { check = fxResize.start({height: centerHeight, top: top}); } if (center.offsetWidth != centerWidth) { check = fxResize.start({width: centerWidth, marginLeft: -centerWidth/2}); } fn = function() { bottomContainer.setStyles({width: centerWidth, top: top + centerHeight, marginLeft: -centerWidth/2, visibility: "hidden", display: ""}); fxImage.start(1); }; if (check) { fxResize.chain(fn); } else { fn(); } } function animateCaption() { if (prevImage >= 0) prevLink.style.display = ""; if (nextImage >= 0) nextLink.style.display = ""; fxBottom.set(-bottom.offsetHeight).start(0); bottomContainer.style.visibility = ""; } function stop() { preload.onload = null; preload.src = preloadPrev.src = preloadNext.src = activeURL; fxResize.cancel(); fxImage.cancel(); fxBottom.cancel(); $$(prevLink, nextLink, image, bottomContainer).setStyle("display", "none"); } function close() { if (activeImage >= 0) { stop(); activeImage = prevImage = nextImage = -1; center.style.display = "none"; fxOverlay.cancel().chain(setup).start(0); } return false; } /* API */ Element.implement({ slimbox: function(_options, linkMapper) { // The processing of a single element is similar to the processing of a collection with a single element $$(this).slimbox(_options, linkMapper); return this; } }); Elements.implement({ /* options: Optional options object, see Slimbox.open() linkMapper: Optional function taking a link DOM element and an index as arguments and returning an array containing 2 elements: the image URL and the image caption (may contain HTML) linksFilter: Optional function taking a link DOM element and an index as arguments and returning true if the element is part of the image collection that will be shown on click, false if not. "this" refers to the element that was clicked. This function must always return true when the DOM element argument is "this". */ slimbox: function(_options, linkMapper, linksFilter) { linkMapper = linkMapper || function(el) { return [el.href, el.title]; }; linksFilter = linksFilter || function() { return true; }; var links = this; links.removeEvents("click").addEvent("click", function() { // Build the list of images that will be displayed var filteredLinks = links.filter(linksFilter, this); return Slimbox.open(filteredLinks.map(linkMapper), filteredLinks.indexOf(this), _options); }); return links; } }); return { open: function(_images, startImage, _options) { options = Object.append({ loop: false, // Allows to navigate between first and last images overlayOpacity: 0.8, // 1 is opaque, 0 is completely transparent (change the color in the CSS file) overlayFadeDuration: 400, // Duration of the overlay fade-in and fade-out animations (in milliseconds) resizeDuration: 400, // Duration of each of the box resize animations (in milliseconds) resizeTransition: false, // false uses the mootools default transition initialWidth: 250, // Initial width of the box (in pixels) initialHeight: 250, // Initial height of the box (in pixels) imageFadeDuration: 400, // Duration of the image fade-in animation (in milliseconds) captionAnimationDuration: 400, // Duration of the caption animation (in milliseconds) counterText: "Image {x} of {y}", // Translate or change as you wish, or set it to false to disable counter text for image groups closeKeys: [27, 88, 67], // Array of keycodes to close Slimbox, default: Esc (27), 'x' (88), 'c' (67) previousKeys: [37, 80], // Array of keycodes to navigate to the previous image, default: Left arrow (37), 'p' (80) nextKeys: [39, 78] // Array of keycodes to navigate to the next image, default: Right arrow (39), 'n' (78) }, _options || {}); // Setup effects fxOverlay = new Fx.Tween(overlay, {property: "opacity", duration: options.overlayFadeDuration}); fxResize = new Fx.Morph(center, Object.append({duration: options.resizeDuration, link: "chain"}, options.resizeTransition ? {transition: options.resizeTransition} : {})); fxImage = new Fx.Tween(image, {property: "opacity", duration: options.imageFadeDuration, onComplete: animateCaption}); fxBottom = new Fx.Tween(bottom, {property: "margin-top", duration: options.captionAnimationDuration}); // The function is called for a single image, with URL and Title as first two arguments if (typeof _images == "string") { _images = [[_images, startImage]]; startImage = 0; } middle = win.getScrollTop() + (win.getHeight() / 2); centerWidth = options.initialWidth; centerHeight = options.initialHeight; center.setStyles({top: Math.max(0, middle - (centerHeight / 2)), width: centerWidth, height: centerHeight, marginLeft: -centerWidth/2, display: ""}); compatibleOverlay = ie6 || (overlay.currentStyle && (overlay.currentStyle.position != "fixed")); if (compatibleOverlay) overlay.style.position = "absolute"; fxOverlay.set(0).start(options.overlayOpacity); position(); setup(1); images = _images; options.loop = options.loop && (images.length > 1); return changeImage(startImage); } }; })(); css/nextlabel.gif 0000604 00000000542 15246347307 0010011 0 ustar 00 GIF89a? � zzz������aaa������������mmm������UUU�����������և����Ͼ��������������������rrrIII���333 !� , ? � �mdi�h��,:�p,�tm�x��|��pH,�ȠF�04��r �04�R@S�N���b�Ɔ0�6�ŀ P(2��!n�̀(UOaZ�?�[ �e) L�&[�bU��O � j$l��@�������c��=���*r�JU$�P��'[Y�êŴKfhִ%���Ĩ�R_�%���I�������-����� H��0D � ; css/loading.gif 0000604 00000003064 15246347307 0007452 0 ustar 00 GIF89a � �����ֺ����������������TTT !�NETSCAPE2.0 !� , ��I�!���'�UqtZ TA,IB����-݅�D�x@��MH|N �9 ��O"��(��`�� �e���c���a���q�e߯�F9_~o<�LPT�Tv,6����,���B7@����B�$��.�9v#6lL����_,{�m?���\�?� ]7�T�rw����w�ł]�^خ��U�܈�^��ۥi�$ !� , [�I+6�8�j�@٠V�d����,d�J�Lv�� �:���LIW�%%(�ZHX-� �<�eM�����;@���v��P7�� !� , c�Ig5�-q�T��`RHH �@�+��j`����0Y�)ؐ��5�@ 7!"\]��z�i���4t!_-�W�&�e��JH5�s*�r** !� , \� ��8k`���v�`RC�AyN���y�C�l+�Cl� �� �$J����{���@������$6�eP0����x�@�tp�]�'� !� , ]���8咱Y� ��� �j�p�h ��@%r���8 �� h.=N���ŧ�v����K�fޮ�{��s�wit !� , r���X��k�W`ݷY㙙�H�`5�̝�� �����:����Q�r-#3�Z���V �`on���/�Kp����2�@I�3 �/^p ~LPwf�lW�g�iW> !� , f� ʡ8����]�!Ul\)�����Jh@�,�֩�pF��H� ���eqJR�Z�n;ʞ䚕8��@Bh.�P�@Ag�u O�w ~.e* !� , Z�I+8�c�Ԛ�eFV�h�j*lk��)O�A���.v!:K�e�$�0��P�M 0p=٣�ڛe)_�Ւ-�Ғ3�Pq�œ$�FlE !� , c�I���2�-A�]A��j������C��4�^�` � HW" (O j@��ѧ�t�`���|)U���-��g9VmSπu����mhQn|{) !� , [АI �8�[�D%h�(zik�� �H�h �~��B`��0<@���LT��0�O���Z6/� �c�Z�`�6s-�7��3u1�}��3 !� , T0"����9M� 7 �"af�T�,,�tm�jC�����a��s1���R���@Za�\P { �U�9�쪧���=�� !� , d� ��x22�D�M8j�u&�Q��@A .c��#�DxT��`�J�͌o `&��) h1���cR�@K�^J`Γ�'�y����3lsEzI�I ; css/index.html 0000604 00000000037 15246347307 0007340 0 ustar 00 <!DOCTYPE html><title></title> css/slimbox.css 0000604 00000002402 15246347307 0007530 0 ustar 00 /* SLIMBOX */ #lbOverlay { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: #000; cursor: pointer; } #lbCenter, #lbBottomContainer { position: absolute; z-index: 9999; overflow: hidden; background-color: #fff; } .lbLoading { background: #fff url(loading.gif) no-repeat center; } #lbImage { position: absolute; left: 0; top: 0; border: 10px solid #fff; background-repeat: no-repeat; } #lbPrevLink, #lbNextLink { display: block; position: absolute; top: 0; width: 50%; outline: none; background-color: transparent !important; } #lbPrevLink { left: 0; } #lbPrevLink:hover { background: transparent url(prevlabel.gif) no-repeat 0 15%; } #lbNextLink { right: 0; } #lbNextLink:hover { background: transparent url(nextlabel.gif) no-repeat 100% 15%; } #lbBottom { font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 10px; color: #666; line-height: 1.4em; text-align: left; border: 10px solid #fff; border-top-style: none; } #lbCloseLink { display: block; float: right; width: 66px; height: 22px; background: transparent url(closelabel.gif) no-repeat center; margin: 5px 0; outline: none; } #lbCaption, #lbNumber { margin-right: 71px; } #lbCaption { font-weight: bold; } css/closelabel.gif 0000604 00000001713 15246347307 0010141 0 ustar 00 GIF87aB � ������zzz�����������YYY��҃����������䌌����PPP���TTTVVV������RRRXXXQQQSSS���UUU�������������{{{```WWW���������OOOLLL���fff___���KKK��ޡ���������������lll���xxx������yyy���dddZZZ�����ﳳ������㇇�iiiNNNsssMMM���ggg|||���ccc�����������߹�����ppp���eee���vvvmmm������nnnooo������ , B ����������������� ��������/�������2X]�$����� (Y';� �8*'G�� ×���?,T��!'M� � ̕ � �� 7�냣&HO�<��p�� (h@a � ș��@ @Q���%:��X�d|�@<8�� ��U�&�xN*�8���z� ���+�,<p"� �,��ɳ�U *:�yT@RC��HR��*p�)i�%���Z �:%��a���FaX�p�B��&�E71��K|, ���HO �cc�tMB��neI��Qb�U2Ǒg�]Q$� q]lp���Nc9'[�l���I@q+݂�iCRH�Pa�pI :L�`3G�U��q#ذ�K8YO��UQOq��� 7H��¹�M<�cOV��@m �s�H�xf�)T�� p Zp�/Pr�s��x�29E�K��_�2�"��B��3� A&�Q3`�0���(��"9d��@h�ĕO�"K $Tu�=p��+�4�~g��f�� ; css/prevlabel.gif 0000604 00000000563 15246347307 0010012 0 ustar 00 GIF89a? � �����������bbbmmm��������Ǻ�����������������yyy�����廻���������������WWW���333 !� , ? �`&�di�h�����p��rm�x��|��pH,����ib���pdӦ@�i�@�� 0CS � �+&�vOR =�Dak#~Xb%|BL�bs#i�&`�LQ}eg|�X��""��N���h r��#\�C�&�d"�&x\j��$��j�&���~Ȅr�Xtu�`���Y���J��"����+*$H0��TP��aÄ#J�H��S� ; css/slimbox-rtl.css 0000604 00000002350 15246347307 0010331 0 ustar 00 /* SLIMBOX */ #lbOverlay { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: #000; cursor: pointer; } #lbCenter, #lbBottomContainer { position: absolute; z-index: 9999; overflow: hidden; background-color: #fff; } .lbLoading { background: #fff url(loading.gif) no-repeat center; } #lbImage { position: absolute; left: 0; top: 0; border: 10px solid #fff; background-repeat: no-repeat; } #lbPrevLink, #lbNextLink { display: block; position: absolute; top: 0; width: 50%; outline: none; } #lbPrevLink { right: 0; } #lbPrevLink:hover { background: transparent url(prevlabel.gif) no-repeat 100% 15%; } #lbNextLink { left: 0; } #lbNextLink:hover { background: transparent url(nextlabel.gif) no-repeat 0 15%; } #lbBottom { font-family: Verdana, Arial, Geneva, Helvetica, sans-serif; font-size: 10px; color: #666; line-height: 1.4em; text-align: right; border: 10px solid #fff; border-top-style: none; direction: rtl; } #lbCloseLink { display: block; float: left; width: 66px; height: 22px; background: transparent url(closelabel.gif) no-repeat center; margin: 5px 0; outline: none; } #lbCaption, #lbNumber { margin-left: 71px; } #lbCaption { font-weight: bold; } index.html 0000604 00000000037 15246347307 0006550 0 ustar 00 <!DOCTYPE html><title></title>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка