-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (36 loc) · 877 Bytes
/
index.html
File metadata and controls
39 lines (36 loc) · 877 Bytes
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
<html>
<head>
<meta charset="utf-8">
<title>Sixcode</title>
<style>
body {
margin: 0;
}
pre.error {
margin: 40px;
font-size: 18px;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<script type="text/javascript">
var Module = {
preRun: [],
postRun: [],
print: (text) => console.log(text),
printErr: (text) => console.error(text),
canvas: document.getElementById('canvas'),
};
var isSpacetimeInitialized = false;
function spacetime_initialized() {
isSpacetimeInitialized = true;
}
function displayError(error) {
document.body.innerHTML = '<pre class="error">' + error + '</pre>';
}
</script>
<script async type="text/javascript" src="spacetime.js"></script>
<script async type="text/javascript" src="ui.js"></script>
</body>
</html>