123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <script src="https://4dkk.4dage.com/v4-test/www/viewer/static/lib/vconsole.js"></script>
- <title>Getty Show</title>
- <style>
- body {
- background-color: #000;
- overflow: hidden;
- }
- .load-wrap {
- display: flex;
- flex-direction: column;
- height: 100vh;
- justify-content: center;
- align-items: center;
- }
- .load-wrap div:nth-child(3) {
- align-items: flex-start;
- }
- .page-loader {
- margin-top: 20px;
- color: #fff;
- line-height: 1.4;
- font-size: 1rem;
- font-weight: 600;
- font-family: sans-serif;
- }
- .page-process {
- margin-top: 15px;
- }
- .loader {
- width: 48px;
- height: 48px;
- border: 3px dotted #fff;
- border-style: solid solid dotted dotted;
- border-radius: 50%;
- display: inline-block;
- position: relative;
- box-sizing: border-box;
- animation: rotation 2s linear infinite;
- }
- .loader::after {
- content: "";
- box-sizing: border-box;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- margin: auto;
- border: 3px dotted #15bec8;
- border-style: solid solid dotted;
- width: 24px;
- height: 24px;
- border-radius: 50%;
- animation: rotationBack 1s linear infinite;
- transform-origin: center center;
- }
- @keyframes rotation {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- @keyframes rotationBack {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(-360deg);
- }
- }
- </style>
- </head>
- <body>
- <div id="root">
- <div class="load-wrap">
- <div class="loader"></div>
- <div>
- <div id="page-process" class="page-process">0%</div>
- </div>
- </div>
- </div>
- <script type="module" src="/src/main.jsx"></script>
- <script>
- let loadProgress = 0;
- const pageLoader = document.querySelector("#page-process"),
- loadAnimation = setInterval(() => {
- if (
- (loadProgress++,
- (pageLoader.innerText = loadProgress + "%"),
- 72 === loadProgress)
- ) {
- clearInterval(loadAnimation);
- const e = setInterval(() => {
- loadProgress++,
- (pageLoader.innerText = loadProgress + "%"),
- 83 === loadProgress && clearInterval(e);
- }, 86);
- }
- }, 32);
- </script>
- </body>
- </html>
|