filesafe/dist/js/album.js
Bobby Wibowo d29621d5ff
Make render.js standalone
Despite that, it still expects the existence of a so-called main script
in "page" variable, and also expects to be loaded by it instead,
with an internal check to load itself if the main script fails to call
itself within the expected conditions.

Improved button colors in SweetAlert prompts.

Refactored window.onload() to DOMContentLoaded's event listener.
This should essentially allow pages to have multiple scripts that listen
to that event.

Bumped v1 version string and rebuilt client assets.
2020-06-20 02:30:57 +07:00

3 lines
306 B
JavaScript

var lsKeys={},page={lazyLoad:null};window.addEventListener("DOMContentLoaded",(function(){for(var e=document.querySelectorAll(".file-size"),n=0;n<e.length;n++)e[n].innerHTML=page.getPrettyBytes(parseInt(e[n].innerHTML.replace(/\s*B$/i,"")));page.lazyLoad=new LazyLoad}));
//# sourceMappingURL=album.js.map