15 lines
443 B
Markdown
15 lines
443 B
Markdown
# ADR 0007 — Page jump controls bridge (hash-aware)
|
|
|
|
## Decision
|
|
|
|
Add `scripts/init-page-jump.mjs` to wire `.jump-input` + `.jump-btn` inside pagination containers to the URL hash:
|
|
|
|
- Updates `#page=N` via `setPage()` on click/Enter.
|
|
- Clamps to `min`/`max` when available, else to >= 1.
|
|
- Syncs input when hash changes externally.
|
|
|
|
## Consequences
|
|
|
|
- One script tag in `index.html`.
|
|
- Works with both legacy pagination and the new builder.
|