forked from ucsd-cse231-s22/chocopy-wasm-compiler-A
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (60 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!doctype HTML>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/gh/AssemblyScript/[email protected]/index.js"></script>
<script>const wabt = WabtModule;</script>
<script src="webstart.js"></script>
<style>
.editor {
float: left;
width: 49%;
margin: 0;
padding: 0;
height: 100%;
}
.user-code {
width: 100%;
height: 80em;
resize: none;
overflow: scroll;
font-family: monospace;
}
.interactions {
float: right;
width: 49%;
margin-left: 1em;
padding: 0;
height: 100%;
}
.repl-code {
height: 2em;
width: 30em;
text-align: left;
font-family: monospace;
}
.prompt {
vertical-align: middle;
}
.output pre {
max-width: 100%;
white-space: break-spaces;
line-break: anywhere;
}
</style>
</head>
<body>
<div class="editor">
<button id="run">Run!</button><br/>
<textarea class="user-code" id="user-code"></textarea>
</div>
<div class="interactions">
<div class="output" id="output">
</div>
<div id="repl-entry">
<span class="prompt"><code>»</code></span>
<textarea type="text" id="next-code" class="repl-code"></textarea>
</div>
</div>
</body>
</html>