atagen

jelq

public

an http based roguelike rpg about jelqing

Star0
Watch0
624fe9c09c8eefdb9679b36259b76f6439318edc
1
ssh://brewery@pls.lobotomise.me:33/atagen/jelq.git
src/ui.htmlHtml531 lines21.0 KB
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>jelqd</title>
6
<style>
7
.frame { border: 2px inset; background: #fff; height: 85vh; overflow: scroll; padding: 4px; }
8
#log { white-space: pre-wrap; margin: 0; }
9
pre, li, p, td, label { overflow-wrap: anywhere; }
10
</style>
11
</head>
12
<body>
13
14
<h1>jelqd</h1>
15
<p>A roguelike played over HTTP.</p>
16
<p>Pick a resource, pick a method, send it.<br>The log on the right is everything the server has said to you.</p>
17
<p>Language <select id="locale"><option>en-GB</option><option>en-US</option><option>en-AU</option></select></p>
18
19
<table width="100%" cellspacing="6">
20
<tr>
21
<td width="45%" valign="top">
22
<div class="frame">
23
24
<div id="alerts"></div>
25
26
<form id="form">
27
<h3>Method</h3>
28
<div id="methods"></div>
29
<datalist id="excuses"></datalist>
30
31
<h3>Request</h3>
32
<table id="fields" cellpadding="2"></table>
33
34
<p><input type="submit" id="send" value="Send" style="font-size: 1.3em"></p>
35
36
<h3>Stats</h3>
37
<table id="stats" border="1" cellspacing="0" cellpadding="3"></table>
38
39
<h3>Resource</h3>
40
<div id="targets"></div>
41
</form>
42
43
<p><small>Every request goes through <code>/ui/send</code>, which replays it inside the server, so the page can show redirects and send methods and headers that browsers refuse.</small></p>
44
</div>
45
</td>
46
<td valign="top">
47
<div class="frame" id="frame"><pre id="log"></pre></div>
48
</td>
49
</tr>
50
</table>
51
52
<script>
53
const REL = "https://jelq.dev/rels/";
54
const METHODS = ["JELQ", "HOLD", "GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "TRACE"];
55
const ALL_LUBES = ["", "application/baby-oil", "application/coconut-oil", "application/lotion", "application/vaseline", "text/plain; charset=spit", "image/jpeg"];
56
let stocked = null;
57
let excuses = [];
58
let nonce = null;
59
let inventorySeq = 0;
60
const STATS = [
61
  { header: "x-turn", label: "Turn" },
62
  { header: "x-floor-turn", label: "Floor turn" },
63
  { header: "x-floor", label: "Floor", better: 1 },
64
  { header: "x-cash", label: "Cash", better: 1 },
65
  { header: "x-self-reported-length", label: "Self-reported length", better: 1, places: 2, measured: { header: "x-length", label: "Length" } },
66
  { header: "x-girth", label: "Girth", better: 1, places: 2 },
67
  { header: "x-foreskin", label: "Foreskin", better: 1, places: 2 },
68
  { header: "x-friction", label: "Friction", better: -1 },
69
  { header: "x-eq", label: "EQ" },
70
  { header: "x-stamina", label: "Stamina", better: 1 },
71
  { header: "x-suspicion", label: "Suspicion", better: -1 },
72
  { header: "x-shame", label: "Shame", better: -1 },
73
];
74
const AROUSAL = ["Flaccid", "Cold", "Warm", "Ideal", "Swollen", "Throbbing", "Straining", "Imminent"];
75
const DANGER_COLOURS = { dangerous: "#b8860b", critical: "red" };
76
let lastStats = {};
77
const QUIET = new Set(["link", "set-cookie", "server", "x-powered-by", "cache-control", "content-length", "content-type", "date"].concat(STATS.flatMap(s => [s.header, s.measured?.header]).filter(Boolean)));
78
79
const FIELDS = {
80
  seed: { label: "seed (unranked)", kind: "text" },
81
  technique: { label: "technique", kind: "select" },
82
  also: { label: "combo with", kind: "select" },
83
  intensity: { label: "intensity, 1 to 10", kind: "number", value: "5" },
84
  lube: { label: "Content-Type", header: "Content-Type", kind: "select" },
85
  range: { label: "Range", header: "Range", kind: "text", placeholder: "inches=0-2" },
86
  ifMatch: { label: "If-Match", header: "If-Match", kind: "text" },
87
  ifNoneMatch: { label: "If-None-Match", header: "If-None-Match", kind: "text" },
88
  ifModifiedSince: { label: "If-Modified-Since", header: "If-Modified-Since", kind: "text", placeholder: "an HTTP-date" },
89
  proxy: { label: "Proxy-Authorization", header: "Proxy-Authorization", kind: "text", placeholder: "Ruler 5.4" },
90
  upgrade: { label: "Upgrade", header: "Upgrade", kind: "select", options: ["", "underhand", "overhand"] },
91
  authorization: { label: "Authorization", header: "Authorization", kind: "text", placeholder: 'Excuse "homework"' },
92
  extra: { label: "other headers, one per line", kind: "textarea", placeholder: "Expect: gains" },
93
};
94
const BY_TARGET = {
95
  "runs POST": ["seed"],
96
  "length GET": ["range"],
97
  "length HEAD": ["range"],
98
  "foreskin DELETE": ["ifMatch"],
99
  "elder GET": ["proxy", "ifModifiedSince"],
100
  "grip GET": ["upgrade"],
101
  "diagnosis GET": ["authorization", "ifNoneMatch"],
102
};
103
const GROUPS = [
104
  ["play", "Play"],
105
  ["shop", "Shop"],
106
  ["you", "You"],
107
  ["said", "From the last response"],
108
  ["reading", "Reading"],
109
  ["meta", "Meta"],
110
];
111
const GROUP_OF = { run: "play", floor: "play", drawer: "play", shop: "play", "shop-item": "shop", kitchen: "play", portal: "play", elder: "play", diagnosis: "play", length: "you", foreskin: "you", grip: "you", inventory: "you", footage: "you", techniques: "reading", thread: "reading" };
112
const NAMES = { run: "the run", thread: "the 2009 forum thread" };
113
const GLOBALS = [
114
  { key: "runs", group: "play", name: "start a new run", path: "/runs", methods: ["POST"] },
115
  { key: "global", group: "meta", name: "leaderboard", path: "/leaderboard", methods: ["GET", "HEAD", "OPTIONS"] },
116
  { key: "global", group: "meta", name: "graveyard", path: "/graveyard", methods: ["GET", "HEAD", "OPTIONS"] },
117
];
118
119
let run = null;
120
let linked = [];
121
let techniques = [];
122
let offered = [];
123
let known = new Set();
124
let fresh = new Set();
125
let challenged = false;
126
const etags = {};
127
let target = "/runs";
128
let method = "POST";
129
const values = {};
130
131
const $ = id => document.getElementById(id);
132
133
function short(path) {
134
  return path.replace(/[0-9a-f]{32}/, id => id.slice(0, 6) + "…");
135
}
136
137
function el(tag, props, ...children) {
138
  const node = Object.assign(document.createElement(tag), props || {});
139
  for (const child of children) node.append(child);
140
  return node;
141
}
142
143
function titled(text) {
144
  return text.charAt(0).toUpperCase() + text.slice(1);
145
}
146
147
function technique(name) {
148
  return techniques.find(t => t.name === name);
149
}
150
151
function clashes(a, b) {
152
  const rules = [a.lubricant, b.lubricant];
153
  return rules.includes("required") && rules.includes("forbidden");
154
}
155
156
// The options a field can take right now, or null for free text.
157
function options(name) {
158
  if (name === "technique") return techniques.map(t => t.name);
159
  if (name === "also") {
160
    const first = technique(fieldValue("technique"));
161
    if (!first || !first.intensity) return [""];
162
    const partners = techniques.filter(t => t.intensity && t.name !== first.name && !clashes(first, t));
163
    return [""].concat(partners.map(t => t.name));
164
  }
165
  if (name === "lube") {
166
    const lubes = stocked === null ? ALL_LUBES : ALL_LUBES.filter(l => l === "" || l.includes("/") && !l.startsWith("application/") || stocked.includes(l.replace("application/", "")));
167
    return lubeRule() === "required" ? lubes.filter(Boolean) : lubes;
168
  }
169
  return FIELDS[name].options || null;
170
}
171
172
function raw(name) {
173
  return values[name] ?? FIELDS[name].value ?? "";
174
}
175
176
function fieldValue(name) {
177
  const allowed = options(name);
178
  const value = raw(name);
179
  if (allowed && !allowed.includes(value)) return allowed[0] ?? "";
180
  return value;
181
}
182
183
function lubeRule() {
184
  const picked = [technique(fieldValue("technique")), technique(fieldValue("also"))].filter(Boolean);
185
  if (!picked.some(t => t.lubricant)) return "none";
186
  for (const rule of ["forbidden", "required"]) {
187
    if (picked.some(t => t.lubricant === rule)) return rule;
188
  }
189
  return "optional";
190
}
191
192
function allowedMethods(t) {
193
  return t.key === "run" && !techniques.length ? t.methods.filter(m => m !== "JELQ") : t.methods;
194
}
195
196
function targets() {
197
  const listed = run ? linked : [];
198
  const known = new Set(listed.concat(GLOBALS).map(t => t.path));
199
  const fresh = offered.filter((t, i) => !known.has(t.path) && offered.findIndex(o => o.path === t.path) === i);
200
  return listed.concat(fresh, GLOBALS);
201
}
202
203
function current() {
204
  return targets().find(t => t.path === target) || GLOBALS[0];
205
}
206
207
function chooseTarget(t) {
208
  const allowed = allowedMethods(t);
209
  target = t.path;
210
  method = allowed.includes("JELQ") ? "JELQ" : allowed.find(m => m !== "HEAD" && m !== "OPTIONS") || allowed[0];
211
  render();
212
}
213
214
function renderStats(headers) {
215
  const table = $("stats");
216
  table.replaceChildren();
217
  const dangers = Object.fromEntries((headers && headers["x-danger"] || "").split(",").filter(Boolean).map(d => d.trim().split("=")));
218
  const stats = STATS.map(s => s.measured && headers && s.measured.header in headers ? { ...s, ...s.measured, unmeasured: s.header } : s);
219
  for (let i = 0; i < stats.length; i += 2) {
220
    const row = el("tr");
221
    for (const stat of stats.slice(i, i + 2)) {
222
      const value = headers ? headers[stat.header] : undefined;
223
      const done = stat.header === "x-floor-turn" && headers && "x-floor-over" in headers;
224
      const cell = el("td", { style: done ? "color: green; font-weight: bold" : "" }, value === undefined ? "—" : value);
225
      const changed = value === undefined ? null : change(stat, value);
226
      if (changed) cell.append(" ", changed);
227
      const measured = stat.unmeasured in lastStats;
228
      const colour = DANGER_COLOURS[dangers[stat.header.slice(2)]] || (measured ? "green" : "");
229
      row.append(el("th", { align: "left", textContent: stat.label, style: colour ? "color: " + colour : "" }), cell);
230
    }
231
    table.append(row);
232
  }
233
  lastStats = headers || {};
234
}
235
236
function fromIdeal(arousal) {
237
  return arousal === "Priapic" ? AROUSAL.length : Math.abs(AROUSAL.indexOf(arousal) - AROUSAL.indexOf("Ideal"));
238
}
239
240
function change(stat, value) {
241
  const before = lastStats[stat.header];
242
  if (before === undefined || before === value) return null;
243
  if (stat.header === "x-eq") {
244
    const closer = Math.sign(fromIdeal(before) - fromIdeal(value));
245
    const was = el("b", { textContent: before, style: closer ? "color: " + (closer > 0 ? "green" : "red") : "" });
246
    return el("small", {}, "(was ", was, ")");
247
  }
248
  if (!stat.better) return null;
249
  const delta = parseFloat(value) - parseFloat(before);
250
  if (!(Math.abs(delta) >= 0.005)) return null;
251
  const text = (delta > 0 ? "+" : "") + (stat.places ? delta.toFixed(stat.places) : delta);
252
  return el("b", { textContent: text, style: "color: " + (Math.sign(delta) === stat.better ? "green" : "red") });
253
}
254
255
function renderAlerts(list) {
256
  const box = $("alerts");
257
  box.replaceChildren();
258
  const alerts = [];
259
  let door = null;
260
  for (const [name, value] of list || []) {
261
    if (name === "via") door = titled(value.split(" ").pop()) + " is at the door.";
262
    if (name === "x-observed-by") alerts.push((value === "cat" ? "The cat" : titled(value)) + " is watching.");
263
    if (name === "warning") {
264
      const text = (value.match(/"([^"]*)"/) || [, value])[1];
265
      alerts.push(titled(text) + (/[.!?]$/.test(text) ? "" : "."));
266
    }
267
  }
268
  if (door && !alerts.some(a => a.startsWith(door))) alerts.unshift(door);
269
  const stamina = (list || []).find(([name]) => name === "x-stamina");
270
  if (stamina && stamina[1].startsWith("0/")) alerts.push("Exhausted. HOLD for the refractory period.");
271
  for (const alert of alerts) box.append(el("h2", { textContent: alert }));
272
}
273
274
function renderTargets() {
275
  const box = $("targets");
276
  box.replaceChildren();
277
  const all = targets();
278
  for (const [group, title] of GROUPS) {
279
    const members = all.filter(t => t.group === group);
280
    if (!members.length) continue;
281
    box.append(el("h4", { textContent: title }));
282
    for (const t of members) {
283
      const radio = el("input", { type: "radio", name: "target", checked: t.path === target, onchange: () => chooseTarget(t) });
284
      const name = fresh.has(t.path) ? el("b", { textContent: t.name }) : t.name;
285
      box.append(el("label", {}, radio, " ", name, " ", el("small", { textContent: short(t.path) })), el("br"));
286
    }
287
  }
288
}
289
290
function renderMethods() {
291
  const box = $("methods");
292
  box.replaceChildren();
293
  const allowed = allowedMethods(current());
294
  for (const m of METHODS.filter(m => allowed.includes(m))) {
295
    const radio = el("input", { type: "radio", name: "method", checked: m === method, onchange: () => { method = m; render(); } });
296
    const label = el("label", {}, radio, " ");
297
    label.append(m === "JELQ" ? el("big", {}, el("b", { textContent: "JELQ" })) : m);
298
    box.append(label, " ");
299
  }
300
}
301
302
function fieldNames() {
303
  const t = current();
304
  const key = t.key + " " + method;
305
  let names = BY_TARGET[key] || [];
306
  if (key === "run JELQ") {
307
    const chosen = technique(fieldValue("technique"));
308
    names = ["technique"];
309
    if (options("also").length > 1) names.push("also");
310
    if (chosen && chosen.intensity) names.push("intensity");
311
    if (["required", "optional"].includes(lubeRule())) names.push("lube");
312
  }
313
  const scoped = run && !["runs", "global"].includes(t.key);
314
  const asked = challenged && scoped && !names.includes("authorization");
315
  return (asked ? ["authorization"] : []).concat(names);
316
}
317
318
function renderExcuses() {
319
  const said = excuses.concat(["the truth"]);
320
  $("excuses").replaceChildren(...said.map(e => el("option", {
321
    value: nonce ? 'Digest username="' + e + '", nonce="' + nonce + '"' : 'Excuse "' + e + '"',
322
  })));
323
}
324
325
function renderFields() {
326
  const table = $("fields");
327
  table.replaceChildren();
328
  for (const name of fieldNames()) {
329
    const f = FIELDS[name];
330
    let value = fieldValue(name);
331
    if (name === "ifMatch" && !value) value = values.ifMatch = etags[current().path] || "";
332
    const choices = options(name);
333
    let input;
334
    if (choices) {
335
      const isNew = o => ["technique", "also"].includes(name) && fresh.has("technique " + o);
336
      input = el("select", {}, ...choices.map(o => el("option", { value: o, textContent: o || "(none)", selected: o === value, style: isNew(o) ? "font-weight: bold" : "" })));
337
    } else if (f.kind === "textarea") {
338
      input = el("textarea", { rows: 3, cols: 40, value, placeholder: f.placeholder || "" });
339
    } else {
340
      const hint = name === "authorization" && nonce ? 'Digest username="helping Nan", nonce="' + nonce + '"' : f.placeholder || "";
341
      input = el("input", { type: f.kind, value, placeholder: hint, size: 30 });
342
    }
343
    input.oninput = () => { values[name] = input.value; };
344
    input.onchange = () => { values[name] = input.value; if (choices) renderFields(); };
345
    if (name === "authorization") input.setAttribute("list", "excuses");
346
    table.append(el("tr", {}, el("td", { align: "right", valign: "top", textContent: f.label }), el("td", {}, input)));
347
  }
348
  const extra = el("textarea", { rows: 3, cols: 40, value: raw("extra"), placeholder: FIELDS.extra.placeholder });
349
  extra.oninput = () => { values.extra = extra.value; };
350
  const more = el("details", { open: Boolean(values.extra) }, el("summary", { textContent: "more headers" }), extra);
351
  table.append(el("tr", {}, el("td"), el("td", {}, more)));
352
  $("send").value = method + " " + short(current().path);
353
}
354
355
function render() {
356
  if (!allowedMethods(current()).includes(method)) return chooseTarget(current());
357
  renderTargets();
358
  renderMethods();
359
  renderFields();
360
}
361
362
function parseLinks(header) {
363
  const resources = [];
364
  const moves = [];
365
  for (const match of header.matchAll(/<([^>]*)>((?:\s*;\s*[a-z-]+="[^"]*")*)/g)) {
366
    const params = Object.fromEntries([...match[2].matchAll(/([a-z-]+)="([^"]*)"/g)].map(p => [p[1], p[2]]));
367
    const name = (params.rel || "").replace(REL, "");
368
    if (name === "technique") {
369
      moves.push({ name: params.title, lubricant: params.lubricant || null, intensity: params.intensity || null });
370
      continue;
371
    }
372
    const methods = (params.allow || "GET").split(",").map(s => s.trim());
373
    resources.push({ key: name, group: GROUP_OF[name] || "play", name: NAMES[name] || params.title || name, path: match[1], methods });
374
  }
375
  return [resources, moves];
376
}
377
378
function hrefs(value, found) {
379
  if (value && typeof value === "object") {
380
    if (typeof value.href === "string") {
381
      const name = value.title || value.item || value.name || value.href.split("/").pop();
382
      found.push({ key: "offered", group: "said", name, path: value.href, methods: [value.method || "GET"] });
383
    }
384
    for (const key in value) hrefs(value[key], found);
385
  }
386
  return found;
387
}
388
389
function log(text) {
390
  $("log").prepend(text + "\n\n");
391
  $("frame").scrollTop = 0;
392
}
393
394
function describe(r) {
395
  const lines = ["< " + r.status + " " + r.reason];
396
  for (const [name, value] of r.headers) {
397
    if (!QUIET.has(name)) lines.push("< " + name + ": " + short(value));
398
  }
399
  let body = null;
400
  try { body = JSON.parse(r.body); } catch (e) {}
401
  if (body && typeof body === "object") {
402
    const rest = Object.assign({}, body);
403
    if (rest.detail) lines.push("  " + rest.detail);
404
    for (const key of ["type", "title", "status", "detail"]) delete rest[key];
405
    if (Object.keys(rest).length) lines.push(short(JSON.stringify(rest, null, 2)).replace(/^/gm, "  "));
406
  } else if (r.body) {
407
    const range = (r.headers.find(h => h[0] === "content-range") || [])[1] || "";
408
    const partial = r.status === 206 && range.match(/^bytes (\d+)-(\d+)\/(\d+)$/);
409
    lines.push("  " + r.body);
410
    if (partial) lines.push("  [bytes " + partial[1] + "-" + partial[2] + " of " + partial[3] + ". Half-mast.]");
411
  }
412
  return lines.join("\n");
413
}
414
415
function absorb(r, sentPath) {
416
  const headers = Object.fromEntries(r.headers.map(([n, v]) => [n.toLowerCase(), v]));
417
  if (headers.etag) etags[sentPath] = headers.etag;
418
  const digest = (headers["www-authenticate"] || "").match(/nonce="([^"]*)"/);
419
  if ("www-authenticate" in headers) nonce = digest ? digest[1] : null;
420
  renderExcuses();
421
  let body = null;
422
  try { body = JSON.parse(r.body); } catch (e) {}
423
  const started = r.status === 201 && (sentPath === "/runs" || sentPath.startsWith("/runs?"));
424
425
  if (started) {
426
    run = headers.location;
427
    lastStats = {};
428
    log("--- a new run has started at " + short(run) + " ---");
429
  }
430
  if ("x-eq" in headers) {
431
    renderStats(headers);
432
    renderAlerts(r.headers);
433
    challenged = r.status === 401 || "via" in headers;
434
  }
435
  if (headers.link) [linked, techniques] = parseLinks(headers.link);
436
  if (run) {
437
    const active = run;
438
    const seq = ++inventorySeq;
439
    fetch("/ui/send", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ method: "GET", path: run + "/inventory", headers: [], body: "" }) })
440
      .then(r => r.json())
441
      .then(r => {
442
        if (run !== active || seq !== inventorySeq) return;
443
        try {
444
          const held = JSON.parse(r.body);
445
          stocked = (held.items || []).map(i => i.name);
446
          excuses = held.excuses || [];
447
          renderExcuses();
448
          render();
449
        } catch (e) {}
450
      });
451
  }
452
  offered = body ? hrefs(body, []) : [];
453
  if (headers.location && !started) {
454
    offered.unshift({ key: "offered", group: "said", name: short(headers.location).split("/").pop() + " (Location)", path: headers.location, methods: ["GET"] });
455
  }
456
  if (run && "x-run-over" in headers) {
457
    log("--- the run has ended ---");
458
    renderAlerts(null);
459
    challenged = false;
460
    run = null;
461
    linked = [];
462
    techniques = [];
463
  }
464
  const menu = targets().filter(t => t.group !== "said").map(t => t.path).concat(techniques.map(t => "technique " + t.name));
465
  fresh = started ? new Set() : new Set(menu.filter(m => !known.has(m)));
466
  known = new Set(menu);
467
  if (started || !targets().some(t => t.path === target)) {
468
    const home = linked.find(t => t.key === "run");
469
    chooseTarget(home || GLOBALS[0]);
470
  } else {
471
    render();
472
  }
473
}
474
475
async function go(event) {
476
  event.preventDefault();
477
  const t = current();
478
  const key = t.key + " " + method;
479
  const value = name => fieldValue(name).trim();
480
  const headers = [];
481
  let path = t.path;
482
  for (const name of fieldNames()) {
483
    const f = FIELDS[name];
484
    if (f.header && value(name)) headers.push([f.header, value(name)]);
485
  }
486
  if (fieldNames().includes("upgrade") && value("upgrade")) headers.push(["Connection", "upgrade"]);
487
  for (const line of raw("extra").split("\n")) {
488
    const at = line.indexOf(":");
489
    if (at > 0) headers.push([line.slice(0, at).trim(), line.slice(at + 1).trim()]);
490
  }
491
  if (key === "run JELQ") {
492
    const names = fieldNames();
493
    const chosen = [value("technique")].concat(names.includes("also") && value("also") ? [value("also")] : []);
494
    path += "?technique=" + encodeURIComponent(chosen.join(","));
495
    if (names.includes("intensity")) path += "&intensity=" + encodeURIComponent(value("intensity"));
496
    delete values.also;
497
  }
498
  if (key === "runs POST" && value("seed")) path += "?seed=" + encodeURIComponent(value("seed"));
499
500
  const sent = ["> " + method + " " + short(path)].concat(headers.map(([name, v]) => "> " + name + ": " + v)).join("\n");
501
  delete values.authorization;
502
  headers.push(["Accept-Language", $("locale").value]);
503
  let r;
504
  try {
505
    const response = await fetch("/ui/send", {
506
      method: "POST",
507
      headers: { "Content-Type": "application/json" },
508
      body: JSON.stringify({ method, path, headers }),
509
    });
510
    r = await response.json();
511
  } catch (error) {
512
    log(sent + "\n! The server did not answer. Is jelqd still running? (" + error.message + ")");
513
    return;
514
  }
515
  if (!Array.isArray(r.headers)) {
516
    log(sent + "\n! The page could not read that reply:\n  " + JSON.stringify(r));
517
    return;
518
  }
519
  log(sent + "\n" + describe(r));
520
  absorb(r, path);
521
}
522
523
$("form").onsubmit = go;
524
$("locale").value = localStorage.getItem("locale") || "en-GB";
525
$("locale").onchange = () => localStorage.setItem("locale", $("locale").value);
526
renderStats(null);
527
render();
528
log("Welcome. Choose \"start a new run\" and send POST to begin. The newest turn is always at the top.");
529
</script>
530
</body>
531
</html>