-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
132 lines (132 loc) · 3.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon/alien.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Alien Registration App</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<style>
#loader {
position: absolute;
inset: 0 0 0 0;
background: linear-gradient(
335deg,
rgba(127, 48, 219, 1) 16%,
rgba(76, 133, 200, 1) 46%,
rgba(187, 62, 171, 1) 90%
);
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.3s;
}
.hide {
opacity: 0;
}
.lds-ripple {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #fff;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
4.9% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 0;
}
5% {
top: 36px;
left: 36px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: 0;
left: 0;
width: 72px;
height: 72px;
opacity: 0;
}
}
</style>
</head>
<body>
<div id="loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
<div id="root"></div>
<script type="text/javascript">
(function (l) {
if (l.search[1] === "/") {
var decoded = l.search
.slice(1)
.split("&")
.map(function (s) {
return s.replace(/~and~/g, "&");
})
.join("?");
window.history.replaceState(
null,
null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
})(window.location);
</script>
<script>
window.addEventListener("load", function () {
const loader = document.getElementById("loader");
loader.classList.add("hide");
setTimeout(() => {
loader.remove();
}, 350);
});
</script>
<script type="module" src="/src/main.tsx"></script>
<script defer>
let hasWebP = false;
(function() {
let img = new Image();
img.onload = function() {
hasWebP = !!(img.height > 0 && img.width > 0);
document.body.classList.add('webp-supports')
};
img.onerror = function() {
hasWebP = false;
};
img.src = 'http://www.gstatic.com/webp/gallery/1.webp';
})();
</script>
</body>
</html>