Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9583961
loading.jsx
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
text/plain
Expires
Sat, Oct 11, 11:14 (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984281
Default Alt Text
loading.jsx (635 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment