blob: e48f3afc539d75568aff314655b1a0f908889d43 (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type='text/javascript'>
window.onload = function () { window.focus(); }
window.onclick = function () { window.focus(); }
</script>
<style>
html, body
{
height: 100%;
margin: 0;
}
body
{
display: flex;
display: -webkit-flex;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
align-items: center;
}
canvas
{
display: block;
outline: none;
height: 100%;
max-height: 100%;
width: 100%;
max-width: 100%;
}
</style>
</head>
<body>
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<script type='text/javascript'>
var Module = {
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>
<script src="index.js"></script>
</body>
</html>
|