2018-05-12 16:34:19 +00:00
|
|
|
/* global LazyLoad */
|
|
|
|
|
2019-09-01 19:23:16 +00:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
const lsKeys = {}
|
|
|
|
|
2018-10-11 19:24:41 +00:00
|
|
|
const page = {
|
2019-01-04 21:34:54 +00:00
|
|
|
lazyLoad: null
|
2018-10-11 19:21:19 +00:00
|
|
|
}
|
|
|
|
|
2018-07-14 03:42:18 +00:00
|
|
|
window.onload = function () {
|
2019-08-20 02:16:34 +00:00
|
|
|
const elements = document.querySelectorAll('.file-size')
|
2018-12-18 17:01:28 +00:00
|
|
|
for (let i = 0; i < elements.length; i++)
|
2019-04-19 04:56:57 +00:00
|
|
|
elements[i].innerHTML = page.getPrettyBytes(parseInt(elements[i].innerHTML.replace(/\s*B$/i, '')))
|
2018-10-11 19:21:19 +00:00
|
|
|
|
2018-05-12 16:34:19 +00:00
|
|
|
page.lazyLoad = new LazyLoad()
|
|
|
|
}
|