UNPKG
vfreg
Version:
latest (3.1.0)
3.1.0
3.0.2
3.0.1
3.0.0
Remote isolated browser platform by Dosyago
gitlab.com/i5ik/Viewfinder
i5ik/Viewfinder
vfreg
/
public
/
loader_progress.js
10 lines
(8 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
progress =
document
.
currentScript
.
previousElementSibling
;
const
runner =
setInterval
(
() =>
{
if
( progress.
value
< progress.
max
) { progress.
value
+=
1
; }
else
{
clearInterval
(runner); } },
17
);