-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminimal_wasm_index.html
96 lines (96 loc) · 2.51 KB
/
minimal_wasm_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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctypehtml>
<html lang=en-us>
<head>
<meta charset=utf-8>
<meta content="text/html; charset=utf-8"http-equiv=Content-Type>
<style>
body{
font-family:arial;
margin:0;
padding:none
}
.emscripten{
padding-right:0;
margin-left:auto;
margin-right:auto;
display:block
}
div.emscripten{
text-align:center
}
div.emscripten_border{
border:1px solid #000
}
canvas.emscripten{
border:0 none;
background-color:#000;
height:0
}
#emscripten_logo{
display:inline-block;
margin:0
}
#status{
display:inline-block;
vertical-align:top;
margin-top:30px;
margin-left:20px;
font-weight:700;
color:#787878
}
#controls{
display:inline-block;
float:right;
vertical-align:top;
margin-top:30px;
margin-right:20px
}
#output{
width:100%;
height:600px;
margin:0 auto;
margin-top:10px;
border-left:0;
border-right:0px;
padding-left:0;
padding-right:0;
display:block;
background-color:#000;
color:#fff;
font-family:'Lucida Console',Monaco,monospace;
outline:0
}
</style>
a = short press<br>
s = long press<br>
d = open ringmenu<br>
</head>
<body>
<canvas class=emscripten id=canvas></canvas>
<textarea id=output rows=8></textarea>
<script>
var Module = {
preRun: [],
postRun: [],
print: function() {
var e = document.getElementById("output");
return e && (e.value = ""),
function(t) {
arguments.length > 1 && (t = Array.prototype.slice.call(arguments).join(" ")), console.log(t), e && (e.value += t + "\n", e.scrollTop = e.scrollHeight)
}
}(),
canvas: function() {
var e = document.getElementById("canvas");
return e.addEventListener("webglcontextlost", (function(e) {
alert("WebGL context lost. You will need to reload the page."), e.preventDefault()
}), !1), e
}(),
totalDependencies: 0,
monitorRunDependencies: function(e) {
this.totalDependencies = Math.max(this.totalDependencies, e);
}
};
</script>
<script async src=vortex.js></script>
</body>
</html>