summaryrefslogtreecommitdiff
path: root/webhogg/wasm/index.html
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-14 17:46:52 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-14 17:46:52 +0200
commit031f63755aada2f1b51eb945fda2a18ad0d24aad (patch)
tree67ec62726748e734e0032e621107dd7a5fe1423a /webhogg/wasm/index.html
parent6fc34ce9e0485a093487baf50738fc1ffb70ce82 (diff)
parenta4532a3f034850c9fe8e26cc210bda618136dcbf (diff)
Merge branch 'wasm' of https://github.com/TrueDoctor/DiscoBot into wasm
Diffstat (limited to 'webhogg/wasm/index.html')
-rw-r--r--webhogg/wasm/index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/webhogg/wasm/index.html b/webhogg/wasm/index.html
index 9624ad8..a992390 100644
--- a/webhogg/wasm/index.html
+++ b/webhogg/wasm/index.html
@@ -4,10 +4,15 @@
<meta charset='utf-8'/>
<title>webhogg</title>
</head>
- <body style='margin: 0; width: 100%; height: 100%;position:fixed;display:block;top:0;bottom:0;left:0;right:0;'>
- <canvas id='c' style='width: 100%; height: 100%;position:fixed;display:block;top:0;bottom:0;left:0;right:0;'>
+ <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>