feat(nettside): version 2 of the results page after the independent review

Opens with the answer and the distribution as dots, then scale against
petroleum, the ladder of programme sizes with the share that cannot be
built, an animated timeline, a scroll story over the scenarios, the 3D
landscape with depth and lighting, and the explorer. States outright that
the scale target is «holder under betingelser» when scarcity lasts.
Plain language throughout, number provenance on click and keyboard,
touch targets of 44 px, one number format.

Checked by the session with its own code: 7 200 numbers against the
result files, 749 control states, no network requests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-22 16:11:24 +01:00
commit a8e82c66b2
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
4 changed files with 2093 additions and 1915 deletions

View file

@ -163,7 +163,7 @@ carousel, Python code, and a Claude plugin (own repo, later).
`miljo` on the made-up set, and the command on the first three draws of the made-up basis.
A condition can only count with enough draws to show an effect (none can with ten), so the tests of the
conditions use forty.
- `nettside/`: the interactive results page (part 12). `lag_nettside.py` builds `index.html` from `mal.html` and the result files with the report's number format; one self-contained file with no external requests; the controls choose only among computed results. Every shown number carries file, path and raw value in a manifest (`tall.json`, gitignored, also embedded in the page). Rebuild: `.venv/bin/python nettside/lag_nettside.py`.
- `nettside/`: the interactive results page (part 12). `lag_nettside.py` builds `index.html` from `mal.html` and the result files with the report's number format; one self-contained file with no external requests; the controls choose only among computed results. Every shown number carries file, path and raw value in a manifest (`tall.json`, gitignored, also embedded in the page). Rebuild: `.venv/bin/python nettside/lag_nettside.py`. Version 2 (2026-11-22, after the review in `private/del12-rapporter/`): the page opens with the answer and 101 dots per solution (percentiles 0 to 100 from `fordelinger.json`), then scale against petroleum (`ved_siden_av_M6`), the ladder of programme sizes with the share that cannot be built, an animated timeline, a scroll story over the scenarios, the 3D landscape and the explorer; it says outright that M6 is «holder under betingelser» when scarcity lasts. Page text says «beregning» for a draw. A number is a `span.t[data-k]`; a click opens its file, path and raw value. The session's own check: `sjekk_tall.py` and `snap.mjs` in `private/del12-rapporter/`.
- `requirements.txt` (numpy, scipy) and `requirements-dev.txt` (pytest, ruff, mypy) pin exact versions;
`pyproject.toml` only configures the tools (ruff `ALL`, mypy strict).