Polish: full-width text, links and bold, methods tabs, readable map choices
- Prose no longer stops at ~70 characters; it uses its column's full width. - Sources linked (responses sheet, route PDF, register, megathreads, Reddit users, Dragonkind, the repo) and statistical methods linked to their references; key terms and numbers in bold. - Data & Methods: the seven method sections are now tabs (arrow keys work). - Valley map: when a choice point is opened, each option's chance sits under its own labelled place and overlapping labels are pushed apart; small choice points can label above themselves. Checked: no overlapping text for any dragon and any opened choice. - Register cards: the age sits inside the arch; all-caps names shown normally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7366af2f7d
commit
99f60282ed
+16
-1
@@ -77,6 +77,21 @@
|
||||
const initial = tabOf(location.hash);
|
||||
showTab(initial || "valley", false, initial === "valley");
|
||||
|
||||
// ------------------------------------------------------------ methods tabs (arrow keys move between them)
|
||||
const mtabs = $$(".mtab");
|
||||
const showM = (b, focus) => {
|
||||
mtabs.forEach((t) => { const on = t === b; t.setAttribute("aria-selected", on); t.tabIndex = on ? 0 : -1; $("#" + t.getAttribute("aria-controls")).hidden = !on; });
|
||||
if (focus) b.focus();
|
||||
};
|
||||
mtabs.forEach((b, i) => {
|
||||
b.addEventListener("click", () => showM(b));
|
||||
b.addEventListener("keydown", (e) => {
|
||||
if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
|
||||
e.preventDefault();
|
||||
showM(mtabs[(i + (e.key === "ArrowRight" ? 1 : mtabs.length - 1)) % mtabs.length], true);
|
||||
});
|
||||
});
|
||||
|
||||
// ------------------------------------------------------------ hero art (original, generic silhouettes)
|
||||
function drawHero() {
|
||||
const svg = $("#hero-art");
|
||||
@@ -149,7 +164,7 @@
|
||||
return `<a class="odd odd-colour" href="#valley/${c.toLowerCase()}" style="--c: var(${DV[c]})">${art(c)}
|
||||
<span class="big">${p >= 0.5 ? pct(p) : `1 in ${oneIn(p)}`}</span><span class="what">${p >= 0.5 ? "of runs" : "runs"} end bonded to ${/^[AEIOU]/.test(c) ? "an" : "a"} ${c}, on the best route</span>
|
||||
${dots(Math.round(p * 1000), 1000, cssVar(DV[c]))}
|
||||
<span class="how">${pct(p, p < 0.1 ? 1 : 0)} per attempt (95% ${pct(lo, 1)}–${pct(hi, 1)}), from riders who logged every run${Math.abs(pAll - p) / p > 0.25 ? `; all form posts suggest ${pct(pAll, 1)}` : ""}. At ${ENC_LABEL[ENC_OF[c]]}, ${e.k} of ${e.n} genuine attempts bonded.</span>
|
||||
<span class="how"><b>${pct(p, p < 0.1 ? 1 : 0)}</b> per attempt (95% ${pct(lo, 1)}–${pct(hi, 1)}), from riders who logged every run${Math.abs(pAll - p) / p > 0.25 ? `; all form posts suggest ${pct(pAll, 1)}` : ""}. At ${ENC_LABEL[ENC_OF[c]]}, <b>${e.k} of ${e.n}</b> genuine attempts bonded.</span>
|
||||
<span class="go">See the route →</span></a>`;
|
||||
}).join("");
|
||||
const meadowAlpha = all.model.alphas.meadow, shadowAlpha = all.model.alphas.shadow;
|
||||
|
||||
Reference in New Issue
Block a user