Auto-mount via bridge mount/data-mq and client_embed; expand DOM/form effects; drop hello loader JS; add web-client-site. Document that C+D cover mid-size interactivity but not most JS apps—route E covers routing, storage, lists, WebSocket, and richer DOM/timers. Co-authored-by: Cursor <cursoragent@cursor.com>
87 lines
2.6 KiB
HTML
87 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-Hans">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Marqdo · fetch / after (C4)</title>
|
|
<style>
|
|
:root {
|
|
--ink: #1a1f1c;
|
|
--paper: #e8efe6;
|
|
--accent: #2f6f4e;
|
|
--muted: #5a6b60;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif;
|
|
color: var(--ink);
|
|
background:
|
|
radial-gradient(800px 420px at 0% 100%, #d5e4d8 0%, transparent 55%),
|
|
linear-gradient(165deg, #f3f7f2, var(--paper));
|
|
padding: 2rem clamp(1rem, 4vw, 3rem);
|
|
}
|
|
h1 {
|
|
font-family: "IBM Plex Serif", "Noto Serif SC", serif;
|
|
font-weight: 600;
|
|
font-size: clamp(1.6rem, 3vw, 2.2rem);
|
|
margin: 0 0 0.35rem;
|
|
}
|
|
.lead { color: var(--muted); margin: 0 0 1.25rem; max-width: 38rem; }
|
|
#status {
|
|
font-family: "IBM Plex Mono", ui-monospace, monospace;
|
|
font-size: 0.95rem;
|
|
line-height: 1.45;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
min-height: 4rem;
|
|
margin: 1rem 0 1.25rem;
|
|
padding: 0.85rem 1rem;
|
|
background: rgba(255,255,255,0.55);
|
|
border: 1px solid #b7c7bb;
|
|
}
|
|
button {
|
|
margin-right: 0.5rem;
|
|
margin-bottom: 0.4rem;
|
|
padding: 0.55rem 1.1rem;
|
|
border: 0;
|
|
background: var(--accent);
|
|
color: #f5faf6;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
}
|
|
button.secondary { background: #3a4740; }
|
|
button:disabled { opacity: 0.5; cursor: wait; }
|
|
pre {
|
|
margin-top: 1.5rem;
|
|
width: min(42rem, 100%);
|
|
padding: 0.9rem 1rem;
|
|
background: #122018;
|
|
color: #d7eadc;
|
|
overflow: auto;
|
|
font-size: 0.8rem;
|
|
line-height: 1.4;
|
|
}
|
|
.err { color: #ffb4a8; }
|
|
a { color: var(--accent); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Marqdo</h1>
|
|
<p class="lead">C4/D:返回 <code>fetch</code> / <code>after</code> 效应;bridge 自启(ADR 0003)。业务只在 <code>fetch.mq.md</code>。<a href="./interact.html">计数器</a> · <a href="./form.html">表单</a> · <a href="./">打印</a></p>
|
|
<div id="status">idle</div>
|
|
<button id="load" type="button" disabled>请求 UUID</button>
|
|
<button id="ping" class="secondary" type="button" disabled>延迟 pong</button>
|
|
<pre id="log">loading…</pre>
|
|
<script
|
|
type="module"
|
|
src="./marqdo-bridge.js"
|
|
data-mq-wasm="./marqdo_wasm.wasm"
|
|
data-mq-source-url="./fetch.mq.md"
|
|
data-mq-ready="#log"
|
|
data-mq-enable="#load,#ping"
|
|
></script>
|
|
</body>
|
|
</html>
|