Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22390224
loading.jsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
635 B
Referenced Files
None
Subscribers
None
loading.jsx
View Options
var
React
=
require
(
"react"
);
var
Loading
=
function
(
props
)
{
var
delay
=
65
;
var
boxes_amnt
=
Math
.
floor
(
Math
.
random
()
*
4
)
+
4
;
//var boxes_amnt = 6;
var
boxes
=
[];
for
(
var
i
=
0
;
i
<
boxes_amnt
;
i
++
)
{
boxes
.
push
(
<
div
className
=
{
"loading-box "
+
props
.
boxClass
}
style
=
{{
animationDelay
:
delay
*
i
+
"ms"
}}
/>
);
boxes
.
push
(
<
div
className
=
"loading-shadow"
/>
);
}
let
loading
=
null
;
if
(
props
.
text
)
{
loading
=
<
div
className
=
"loading-text"
>
{
props
.
text
}
<
/div>;
}
return
(
<
div
className
=
"loading-container"
>
<
div
>
{
boxes
}
<
/div>
{
loading
}
<
/div>
);
};
/*
*/
module
.
exports
=
Loading
;
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 15:26 (23 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1203385
Default Alt Text
loading.jsx (635 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline