- Run record
- loading
Loading this Run…
Loading the Revisions of this Run…
A published source file of Revision 0 of Fjora — Taste the North 1.0.0, shown as text in the browser.
/** Scrolls a section into view and moves focus there for keyboard users. */
export function scrollToSection(id: string) {
const target = document.getElementById(id);
if (!target) return;
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
target.scrollIntoView({
behavior: reduced ? "auto" : "smooth",
block: "start",
});
if (history.replaceState) history.replaceState(null, "", `#${id}`);
target.focus({ preventScroll: true });
}Source is browser-viewable only. There is no download or archive endpoint, and no additional license is granted beyond inspection and research.