<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BEAM PANIC Test Client</title>
</head>
<body>
<h1>BEAM PANIC Test Client</h1>
<div id="log"></div>
<script src="/panic.js"></script>
<script>
panic.server(location.origin);
document.getElementById('log').textContent = 'Connected to panic-server';
</script>
<script type="module">
try {
const wasm = await import('/beam.js');
window.BEAM = wasm;
window.BEAM_READY = true;
document.getElementById('log').textContent += ' | BEAM WASM loaded';
} catch (e) {
window.BEAM_ERROR = e.message;
document.getElementById('log').textContent += ' | BEAM load failed: ' + e.message;
}
</script>
</body>
</html>