summaryrefslogtreecommitdiff
path: root/2026/games_submissions/crm148/index.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
committerLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
commitde99c5f7636a952025ea13de02bafd25bcb6bdec (patch)
treebe359424af4f6717103e3b667b6529ae5a4b4e6a /2026/games_submissions/crm148/index.html
parent4d4d1f24721f27fbf37e1070be6414de130ace61 (diff)
Fix broken
Diffstat (limited to '2026/games_submissions/crm148/index.html')
-rw-r--r--2026/games_submissions/crm148/index.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/2026/games_submissions/crm148/index.html b/2026/games_submissions/crm148/index.html
new file mode 100644
index 0000000..b4364ca
--- /dev/null
+++ b/2026/games_submissions/crm148/index.html
@@ -0,0 +1,49 @@
+<!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: 10px;
+ }
+ #game-test {
+ width: 100%;
+ height: 100%;
+ }
+ .debugStuff {
+ display: none;
+ }
+ </style>
+ <script type="module">
+ import * as game from './game.js';
+ // console.log(window.innerWidth);
+ window.addEventListener("message", ev => {
+ switch (ev.data.op) {
+ case "start":
+ game.start(ev.data.difficulty);
+ break;
+ default: console.log(`unknown event: ${ev}`); break;
+ }
+ });;
+ window.parent.postMessage({op: "ready"});
+ </script>
+ </head>
+ <body>
+ <canvas id="gameCanvas" width="240" height="160"></canvas>
+ <p class="debugStuff">
+ <a href="#" id="startButton">Start</a>
+ </p>
+ <p class="debugStuff">
+ <a href="#" id="testButton">Test</a>
+ <a href="#" id="plusButton">+</a>
+ <a href="#" id="minusButton">&ndash;</a>
+ </p>
+ <p id="debugP"></p>
+ </body>
+</html>