The original lightbox script, finally on github. http://lokeshdhakar.com/projects/lightbox2/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.3KB

  1. {"version":3,"file":"lightbox.min.js","sources":["lightbox.js"],"names":["$","jQuery","LightboxOptions","this","fadeDuration","fitImagesInViewport","resizeDuration","showImageNumberLabel","wrapAround","prototype","albumLabel","curImageNum","albumSize","Lightbox","options","album","currentImageIndex","init","enable","build","self","on","event","start","currentTarget","appendTo","$lightbox","$overlay","$outerContainer","find","$container","containerTopPadding","parseInt","css","containerRightPadding","containerBottomPadding","containerLeftPadding","hide","end","target","attr","changeImage","length","$link","addToAlbum","push","link","title","$window","window","sizeOverlay","call","visibility","$links","imageNumber","dataLightboxValue","prop","i","j","top","scrollTop","height","left","scrollLeft","fadeIn","disableKeyboardNav","$image","addClass","preloader","Image","onload","$preloader","imageHeight","imageWidth","maxImageHeight","maxImageWidth","windowHeight","windowWidth","width","sizeContainer","src","document","newWidth","outerWidth","outerHeight","newHeight","animate","setTimeout","showImage","updateNav","updateDetails","preloadNeighboringImages","enableKeyboardNav","show","html","text","removeClass","preloadNext","preloadPrev","proxy","keyboardAction","off","KEYCODE_ESC","KEYCODE_LEFTARROW","KEYCODE_RIGHTARROW","keycode","keyCode","key","String","fromCharCode","toLowerCase","match","fadeOut"],"mappings":";;;;;;;;CASA,WAEE,GAAIA,GAAIC,OAEJC,EAAkB,WACpB,QAASA,KACPC,KAAKC,aAAuB,IAC5BD,KAAKE,qBAAuB,EAC5BF,KAAKG,eAAuB,IAC5BH,KAAKI,sBAAuB,EAC5BJ,KAAKK,YAAuB,EAQ9B,MAJAN,GAAgBO,UAAUC,WAAa,SAASC,EAAaC,GAC3D,MAAO,SAAWD,EAAc,OAASC,GAGpCV,KAILW,EAAW,WACb,QAASA,GAASC,GAChBX,KAAKW,QAAoBA,EACzBX,KAAKY,SACLZ,KAAKa,kBAAoB,OACzBb,KAAKc,OA8UP,MA3UAJ,GAASJ,UAAUQ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