-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
34 lines (31 loc) · 1.02 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SpriteDeets</title>
<link rel="stylesheet" href="/css/static_bundle.css" />
</head>
<body>
<div id="app"></div>
<h1>SpriteDeets</h1>
<script type="module" src="/js/bundle.js"></script>
<script>
// Set up WebSocket connection for live reload
const socket = new WebSocket(`ws://${location.host}/ws`);
socket.onmessage = (event) => {
if (event.data === "reload") {
location.reload();
}
};
</script>
<div id="app-component" class="main-window">
<div id="top-bar" class="top-bar"></div>
<div id="columns-container" class="columns-container">
<div id="left-column" class="left-column"></div>
<div id="middle-column" class="middle-column"></div>
<div id="right-column" class="right-column"></div>
</div>
</div>
</body>
</html>