-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (55 loc) · 1.31 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
64
65
66
<html>
<script src="output.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script>
// Configure RequireJS with the path to the entry module
requirejs.config({
baseUrl: '',
paths: {
'uxnemu': 'bundle'
}
});
// Load the entry module
requirejs(['uxnemu']);
</script>
<body>
<canvas width="512" height="320" id="canvas">
</canvas>
<div class="out" id="out">
<pre class="stdlabel">UXN ts</pre>
<span class="stdout-label">stdout:</span>
<pre id="stdout"></pre>
<span class="stderr-label">stderr:</span>
<pre id="stderr"></pre>
</div>
<style>
body {
display: flex;
flex-direction: column;
}
.out {
background-color: #282a36;
padding: 1em;
border-radius: 10px;
margin: 1em;
color: white;
font-family: monospace;
}
#canvas {
margin: 0 auto;
border: 2px solid #282a36;
}
.stdout-label {
color: #9aedf7;
}
.stderr-label {
color: #ff91d1;
}
#stdout, #stderr {
display: block;
width: 100%;
white-space: pre-line;
}
</style>
</body>
</html>