diff options
Diffstat (limited to 'webhogg/wasm/index.html')
-rw-r--r-- | webhogg/wasm/index.html | 9 |
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> |