cloakfall
    Preparing search index...

    Function gameLayout

    • The page's landmarks: a header with the page's h1 (visually hidden, so the game looks the same, but a screen reader user can find the page by its heading) and the main element the game renders into. Reuses them when the page already has them (a re-run, or a page which provides its own main or h1), creating them at the top of the body otherwise. header is null when the page brought its own h1.

      Parameters

      • doc: Document

      Returns { header: HTMLElement | null; main: HTMLElement }