diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-14 14:20:41 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-14 14:20:41 -0400 |
| commit | 951b316773265052fbc5fa546bbcf31bef277062 (patch) | |
| tree | 139ec93946d7103f5ae102bd15f964d8d977dbae /2026/games/peetseater/harness.html | |
| parent | 9f8c3904e77f3a6a8a341542665c1988c8582930 (diff) | |
Update
Diffstat (limited to '2026/games/peetseater/harness.html')
| -rw-r--r-- | 2026/games/peetseater/harness.html | 31 |
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 |
