-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (79 loc) · 2.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon-32x32.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Datav | Observability platform</title>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.0/mapbox-gl.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.0/mapbox-gl.js"></script> -->
<style>
.svgLoader {
animation: spin 2s linear infinite;
margin: auto;
}
#first-page-loading {
position:fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-size: 16px !important;
font-weight: 500 !important;
z-index: -1;
/* background-color: #1A202C */
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(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 type="module" crossorigin src="/static/index-3a76b207.js"></script>
<link rel="stylesheet" href="/static/index-e4b1c24a.css">
</head>
<body>
<div id="first-page-loading">
<div><img class="svgLoader" src="/logo.png" width="60px" height="60px"/></div>
<div style="color: rgb(0, 181, 216);">Loading JS/CSS and website Configs...</div>
</div>
<div id="root"></div>
<script>
const colorMode = localStorage.getItem("chakra-ui-color-mode")
if (colorMode === "dark") {
document.body.style.backgroundColor = "#1A202C"
} else {
document.body.style.backgroundColor = "#fff"
}
</script>
</body>
</html>