-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (43 loc) · 1.19 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
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title><%= htmlWebpackPlugin.options.title %></title>
<script src="sdk/compass-library/js/compass-library.js"></script>
<script src="sdk/compass-core/js/compass-core.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
body, html {
height: 100%;
width: 100%;
overflow: hidden;
background: black;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
#container {
background: #FFFFFF;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="container"></div>
</body>
<script>
const { ApplicationManager, Readying } = window["compass-core"];
const { ExampleApplication } = window["example-application"];
Readying(() => {
const applicationManager = new ApplicationManager();
applicationManager.installApplication(new ExampleApplication())
});
</script>
</html>