summaryrefslogtreecommitdiff
path: root/webhogg/wasm/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/wasm/index.html')
-rw-r--r--webhogg/wasm/index.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/webhogg/wasm/index.html b/webhogg/wasm/index.html
index eae1cc2..a992390 100644
--- a/webhogg/wasm/index.html
+++ b/webhogg/wasm/index.html
@@ -4,8 +4,15 @@
<meta charset='utf-8'/>
<title>webhogg</title>
</head>
- <body>
- <canvas id='c'>your browser is incompetent</canvas>
+ <body style='margin: 0; width: 100%; height: 100%; posisiton: fixed; display: block;'>
+ <canvas id='c' style='width: 100%; height: 100%; position: fixed; display: block; overflow: hidden;'>
+ your browser is incompetent
+ </canvas>
+ <script>
+ let canvas = document.getElementById('c');
+ canvas.width = window.innerWidth;
+ canvas.height = window.innerHeight;
+ </script>
<script src='pkg/main.js'></script>
</body>
</html>