diff options
| author | LLLL Colonq <llll@colonq> | 2026-05-28 20:16:38 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-05-28 20:16:38 -0400 |
| commit | fa4d63110a3e12d0242b6e6ddcded74d04480f28 (patch) | |
| tree | 330e6ccfe650f1fd9143f9db67b481d4c74a2e05 /2026/game.html | |
Initial commit
Diffstat (limited to '2026/game.html')
| -rw-r--r-- | 2026/game.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/2026/game.html b/2026/game.html new file mode 100644 index 0000000..8d33605 --- /dev/null +++ b/2026/game.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> + <title>In Between The Iframes</title> + <style> + * { + margin: 0px; + padding: 0px; + } + body { + font-size: 70px; + } + #game-test { + width: 100%; + height: 100%; + } + </style> + <script type="module"> + console.log(window.innerWidth); + window.addEventListener("message", ev => { + switch (ev.data.op) { + case "start": + window.parent.postMessage({op: "started"}); + setTimeout(() => { + window.parent.postMessage({op: "done", win: true}); + }, 5000); + break; + default: console.log(`unknown event: ${ev}`); break; + } + }); + window.parent.postMessage({op: "ready"}); + </script> + </head> + <body> + <img id="game-test" src="./testsmall.png"></img> + </body> +</html> |
