mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
3 lines
873 B
JavaScript
3 lines
873 B
JavaScript
var lsKeys={},page={lazyLoad:null,lightbox:null,lightboxExts:[".gif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp",".bmp"]};window.addEventListener("DOMContentLoaded",(function(){for(var e=document.querySelectorAll(".file-size"),t=0;t<e.length;t++){var a=e[t].dataset.value||e[t].innerHTML;e[t].innerHTML=page.getPrettyBytes(parseInt(a,10))}for(var n=document.querySelectorAll(".file-date"),i=0;i<n.length;i++){var o=n[i].dataset.value;n[i].innerHTML=page.getPrettyDate(new Date(1e3*parseInt(o,10)))}page.lazyLoad=new LazyLoad;var l=new RegExp(""+page.lightboxExts.map((function(e){return e.substring(1)})).join("|"),"i");page.lightbox=new SimpleLightbox("#table a.image",{captions:!0,captionSelector:"img",captionType:"attr",captionsData:"alt",captionPosition:"bottom",captionDelay:500,fileExt:l,preloading:!1,uniqueImages:!1})}));
|
|
//# sourceMappingURL=album.js.map
|