From 09a7051edc60074e896ece9824395dfd4b65c45b Mon Sep 17 00:00:00 2001 From: ConnorBP Date: Wed, 8 Nov 2023 17:10:50 -0500 Subject: [PATCH] updated layout and added audio resume script --- index.html | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 75 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 08826d4..4af9a7d 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,14 @@ /* to make touch input work on safari (disable zoom and such) */ touch-action: none; } - body { + body, + html { margin: 0; padding: 0; background: linear-gradient(-45deg, #a6a6a6, #5ac05a, #262626, #a6a6a6); background-size: 400% 400%; animation: gradient 15s ease infinite; - /* height: 100vh; */ + width: 100vw; height: 100%; display: flex; justify-content: center; @@ -29,6 +30,7 @@ } canvas { background-color: white; + display: block; } @keyframes gradient { @@ -48,4 +50,75 @@ import init from './out/wasm_battle_arena.js' init() + + + \ No newline at end of file