summaryrefslogtreecommitdiff
path: root/2026/games/peetseater/harness.html
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-29 04:06:51 -0400
committerLLLL Colonq <llll@colonq>2026-08-29 04:06:51 -0400
commit761a3172bf4c15aed3836e4d1cd6f815b651b0e0 (patch)
treecc90491529e83349d84d42a8e9982e5f0f38338e /2026/games/peetseater/harness.html
parent0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (diff)
Fix
Diffstat (limited to '2026/games/peetseater/harness.html')
-rw-r--r--2026/games/peetseater/harness.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/2026/games/peetseater/harness.html b/2026/games/peetseater/harness.html
new file mode 100644
index 0000000..be1eac3
--- /dev/null
+++ b/2026/games/peetseater/harness.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>LCOLONQ Game Jam 2026 Testing Harnass</title>
+</head>
+<body>
+ <iframe width="480px" height="320px" src="/games/micro2026/index.html" allow="*" sandbox="allow-scripts allow-same-origin"></iframe>
+ <button id="send_start">Send Start</button>
+ <label>Difficulty
+ <input id="difficulty" type="number" value="0" />
+ </label>
+ <p id="child-messages"><p>
+ <script>
+ const iframe = document.querySelector("iframe");
+ const difficulty = document.getElementById('difficulty');
+ iframe.onload = function() {
+ const start = document.getElementById("send_start");
+ start.onclick = () => {
+ iframe.contentWindow.postMessage({op: "start", difficulty: parseInt(difficulty.value,10)}, '*');
+ }
+ };
+
+ const childMessages = document.getElementById('child-messages');
+ window.addEventListener("message", (ev) => {
+ childMessages.textContent = childMessages.textContent + JSON.stringify(ev.data) + '\n';
+ });
+ </script>
+</body>
+</html> \ No newline at end of file