97 lines
3.0 KiB
HTML
97 lines
3.0 KiB
HTML
<!--
|
|
SPDX-License-Identifier: MIT
|
|
|
|
Adapted from:
|
|
https://codepen.io/MattIn4D/pen/LiKFC
|
|
|
|
Copyright © 2021 MattIn4D
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
this software and associated documentation files (the “Software”), to deal in
|
|
the Software without restriction, including without limitation the rights to
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
of the Software, and to permit persons to whom the Software is furnished to do
|
|
so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
-->
|
|
|
|
<html lang="">
|
|
<head>
|
|
<style>
|
|
/* Absolute Center Spinner */
|
|
.loading {
|
|
position: fixed;
|
|
z-index: 999;
|
|
height: 2em;
|
|
width: 2em;
|
|
overflow: visible;
|
|
margin: auto;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
|
|
/* Transparent Overlay */
|
|
.loading:before {
|
|
content: '';
|
|
display: block;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0.3);
|
|
}
|
|
|
|
/* :not(:required) hides these rules from IE9 and below */
|
|
.loading:not(:required) {
|
|
/* hide "loading..." text */
|
|
font: 0px/0px a;
|
|
color: transparent;
|
|
text-shadow: none;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.loading:not(:required):after {
|
|
content: '';
|
|
display: block;
|
|
font-size: 10px;
|
|
width: 1em;
|
|
height: 1em;
|
|
margin-top: -0.5em;
|
|
animation: spinner 5000ms infinite linear;
|
|
border-radius: 0.5em;
|
|
box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
|
|
}
|
|
|
|
/* Animation */
|
|
|
|
@keyframes spinner {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|
|
<title>Loading...</title>
|
|
</head>
|
|
<body>
|
|
<div class="loading">Loading...</div>
|
|
</body>
|
|
</html>
|