mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
d29621d5ff
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.
1 line
942 B
Plaintext
1 line
942 B
Plaintext
{"version":3,"sources":["album.js"],"names":["const","lsKeys","page","lazyLoad","window","addEventListener","elements","document","querySelectorAll","i","length","innerHTML","getPrettyBytes","parseInt","replace","LazyLoad"],"mappings":"AAGAA,IAAMC,OAAS,GAETC,KAAO,CACXC,SAAU,MAGZC,OAAOC,iBAAiB,oBAAkB,WAExC,IADAL,IAAMM,EAAWC,SAASC,iBAAiB,cAClCC,EAAI,EAAGA,EAAIH,EAASI,OAAQD,IACnCH,EAASG,GAAGE,UAAYT,KAAKU,eAAeC,SAASP,EAASG,GAAGE,UAAUG,QAAQ,SAAU,MAE/FZ,KAAKC,SAAW,IAAIY","file":"album.js","sourcesContent":["/* global LazyLoad */\n\n// eslint-disable-next-line no-unused-vars\nconst lsKeys = {}\n\nconst page = {\n lazyLoad: null\n}\n\nwindow.addEventListener('DOMContentLoaded', () => {\n const elements = document.querySelectorAll('.file-size')\n for (let i = 0; i < elements.length; i++)\n elements[i].innerHTML = page.getPrettyBytes(parseInt(elements[i].innerHTML.replace(/\\s*B$/i, '')))\n\n page.lazyLoad = new LazyLoad()\n})\n"]} |