Files
willtools-demo/WillTools.extension/lib/vibe/webhost_demo/index.html
T
will 25592fa6c2
ci / test (push) Successful in 6m14s
WillTools 2026-09-09 -- clean snapshot of the development repo for review
History-free snapshot of the private development repository at 77a82eb.
Code, docs and the public catalogue only: no plant or job knowledge
layers, no client, job or producer names (tools/scrub.py clean against
the widened term list; a second word-level grep clean). The intro deck is
left out because its slide images cannot be checked for job drawings.
2026-09-09 08:35:15 -05:00

33 lines
850 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WebHost demo</title>
<style>
body { font-family: Consolas, monospace; margin: 16px; }
pre { background: #f0f0f0; padding: 8px; white-space: pre-wrap; }
</style>
</head>
<body>
<h3>WebHost demo</h3>
<p>Posts <code>{"type":"hello"}</code> on load, then shows anything received.</p>
<pre id="log"></pre>
<script>
function log(line) {
var pre = document.getElementById('log');
pre.textContent += line + "\n";
}
if (window.chrome && window.chrome.webview) {
window.chrome.webview.addEventListener('message', function (e) {
log('received: ' + JSON.stringify(e.data));
});
window.chrome.webview.postMessage({type: 'hello'});
log('posted: {"type":"hello"}');
} else {
log('window.chrome.webview is not available -- not running inside WebView2.');
}
</script>
</body>
</html>