-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
44 lines (40 loc) · 1.12 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
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="../favicon.png" type="image/png">
<style>
body {
background-color: #000;
margin: 0;
}
#canvas {
background-color: #000;
position: absolute;
width: 100%;
height: 100%;
}
</style>
</head>
<body onunload="FS.syncfs(false, function (err) {})">
<canvas id="canvas"></canvas>
<script>
var Module = {
'locateFile': function (path, prefix) {
if (path.endsWith(".data")) {
return prefix + "deps/" + path;
}
return prefix + path;
},
'canvas': document.getElementById('canvas'),
'preRun': [function () {
FS.mkdir("/ruggrogue");
FS.mount(IDBFS, {}, "/ruggrogue");
FS.syncfs(true, function (err) {});
}],
};
</script>
<script src="ruggrogue.js"></script>
</body>
</html>