forked from onivim/oni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (46 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ONI</title>
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<style>
html, body {
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
overflow: hidden;
}
body {
font-family: Consolas, Monaco, 'Courier New', monospace;
font-size: 14px;
}
script {
display: none;
}
</style>
</head>
<body>
<div id="background">
<div class="background-image"></div>
<div class="background-cover"></div>
</div>
<div id="oni-text-editor">
</div>
<div id="overlay-ui"></div>
<script>
console.timeStamp("browser.domloaded")
var path = "dist/browser/bundle.js"
if(process.env.NODE_ENV === "development") {
path = "http://localhost:8191/bundle.js";
const hotReloadElement = document.createElement("div");
hotReloadElement.textContent = "Waiting for webpack compilation... You may need to reload the browser once webpack finishes compiling."
document.body.appendChild(hotReloadElement)
}
var scriptTag = document.createElement("script");
scriptTag.src = path
document.body.appendChild(scriptTag);
</script>
</body>
</html>