-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (41 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>OpenSumi</title>
<style>
body {
margin: 0;
background-color: #2a2a2a;
}
#loading {
position: relative;
width: 100vw;
height: 100vh;
line-height: 100vh;
color: #fff;
text-align: center;
z-index: 1;
transition: opacity 500ms;
font-size: 32px;
background-color: #2a2a2a;
}
.loading-hidden {
opacity: 0;
}
</style>
<link rel="stylesheet" href="<%- cdnBase %>main.css">
<script>
let savedColors = {};
try {
savedLayout = JSON.parse(localStorage.getItem('layout') || '{}');
savedColors = JSON.parse(localStorage.getItem('theme') || '{}');
} catch (err) {}
document.getElementsByTagName('html')[0].style.backgroundColor = savedColors.editorBackground || '#2a2a2a';
</script>
</head>
<body>
<div id="main"></div>
<script src="<%- cdnBase %>bundle.js"></script>
</body>
</html>