-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (46 loc) · 1.26 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>
<head>
<title>WebAssembly Terminal</title>
<style>
body {
margin: 0;
padding: 20px;
background-color: #1e1e1e;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: monospace;
}
#terminal-container {
background-color: #000;
padding: 10px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#terminal {
border: none;
}
#loading {
color: #00ff00;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="terminal-container">
<canvas id="terminal" width="800" height="480"></canvas>
<div id="loading">Loading WebAssembly Terminal...</div>
</div>
<!-- Module configuration must be loaded first -->
<script src="config.js"></script>
<!-- Then load the Emscripten generated code -->
<script src="terminal.generated.js"></script>
<!-- Finally load our terminal implementation -->
<script src="terminal.js"></script>
</body>
</html>