Dice beside every roll; click them for the odds of each outcome
CI / test (pull_request) Successful in 44s
CI / test (pull_request) Successful in 44s
- site/atlas/dice.js: a pair of dice marks a step the game decides at random (not the rider's choice). Clicking (or Enter on) the dice opens a small popover with every outcome of that roll and its odds; Escape, scrolling or a click elsewhere closes it. Dice.html for text, Dice.svg for the maps, Dice.legend for the keys. - Route map: dice after each "game roll" heading (first sighting, encounter), with the share of riders at each outcome in the runs shown. Legend: dice and gold headings = steps the game rolls. - Valley map: dice on the "roll" / "shadow" labels of a route (the model's odds given the route so far), on the "First dragon" step of the route list, in the first-sighting card, on the guide's own roll notes (no odds: the guide gives none) and on the bot's answers that led to different screens. Legend under the route key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
@@ -89,6 +89,20 @@ button.primary, a.btnlike.primary { background: var(--accent); color: var(--acce
|
||||
#map text { font-family: var(--font-body); font-size: 11px; fill: var(--ink); }
|
||||
#map .stage-label { font-family: var(--font-data); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--muted); }
|
||||
#map .stage-chance { fill: var(--accent); }
|
||||
/* rolls of the dice (dice.js): a step the game decides, not the rider */
|
||||
.dice { display: inline-flex; align-items: center; vertical-align: middle; padding: 0 2px; margin: 0 2px; border: 0; background: none; color: var(--accent); cursor: pointer; line-height: 1; border-radius: 4px; }
|
||||
.dice:hover, .dice:focus-visible, .dice-svg:hover, .dice-svg:focus-visible { color: var(--ink); outline: 1px solid var(--accent); outline-offset: 1px; }
|
||||
.dice-svg { color: var(--accent); cursor: pointer; }
|
||||
.dice-glyph { display: inline-block; vertical-align: middle; }
|
||||
.dice-glyph.legend { color: var(--accent); margin-right: 2px; }
|
||||
.dice-legend { display: inline; }
|
||||
#dice-pop { position: fixed; z-index: 60; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px; background: var(--raised); color: var(--ink); border: 1px solid var(--accent); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: var(--step--1, 0.85rem); }
|
||||
#dice-pop ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
|
||||
#dice-pop li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 46px; gap: 8px; align-items: center; }
|
||||
#dice-pop .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
|
||||
#dice-pop .bar i { display: block; height: 100%; background: var(--accent); }
|
||||
#dice-pop .p { font-family: var(--font-data); text-align: right; }
|
||||
#dice-pop p { margin: 6px 0 0; color: var(--muted); }
|
||||
#map .node rect { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 0.6; cursor: pointer; }
|
||||
#map .node.sel rect { stroke: var(--accent); stroke-width: 2.4; }
|
||||
#map .node.dim { opacity: 0.35; }
|
||||
@@ -749,6 +763,7 @@ adjusted OR = exp(βⱼ), 95% CI = exp(βⱼ ± 1.96·SEⱼ)</div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
|
||||
<script src="solver.js"></script>
|
||||
<script src="register.js"></script>
|
||||
<script src="dice.js"></script>
|
||||
<script src="app.js"></script>
|
||||
<script src="valley.js"></script>
|
||||
<script src="dragons.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user