Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10352668
loading.jsx
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
607 B
Referenced Files
None
Subscribers
None
loading.jsx
View Options
import
React
from
'react'
;
const
Loading
=
function
(
props
)
{
const
delay
=
65
;
const
boxes_amnt
=
Math
.
floor
(
Math
.
random
()
*
4
)
+
4
;
const
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>
);
};
export
default
Loading
;
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sun, Nov 2, 17:55 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1014020
Default Alt Text
loading.jsx (607 B)
Attached To
Mode
rSEALPAGE Sealpage
Attached
Detach File
Event Timeline
Log In to Comment