NGU-Web/index.html
Zaldimmar b816203c0c Accessibility: reading and color blind modes, audit fixes, calendar window
- Accessibility panel: the switch knob stays in its track; the panel
  follows its button in the Tab order and opens on its first switch.
- Reading mode is the page as plain text: one column, no colors,
  pictures, cards or motion; descriptions stay in place.
- Color blind mode (protanopia, deuteranopia, tritanopia, monochrome):
  palette swaps chosen by simulation, applied to code, data and CSS
  colors on public pages only. The newsletter uses the stored palette.
- Audit fixes: focus not hidden by the header, focus on page change
  and in-page jumps, focus return for the menu, day list and people
  details, labelled admin fields and dialogs, keyboard map tiles,
  scrollable tables, and more.
- Calendar asks /events for its six weeks only (?from=&to=); carousels
  take their 12 most recent past events (?past=12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 14:33:09 -05:00

38 lines
1.8 KiB
HTML

<!doctype html>
<html lang="<!-- site:lang -->">
<head>
<!-- site:head-start -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><!-- site:title --></title>
<!-- The browser chrome around the page, for each mode. -->
<meta name="theme-color" content="#073d4a" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0c1d21" media="(prefers-color-scheme: dark)" />
<!-- Theme before first paint, so a dark visitor never sees a white
flash: this browser's choice (ThemeToggle), else the system;
and the accessibility choices, for the same reason. -->
<script>
try {
var t = localStorage.getItem("site-theme");
document.documentElement.dataset.theme =
t === "dark" || t === "light" ? t : matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
// The accessibility panel's choices (AccessibilityPanel.tsx).
// Reading and color blind modes are for the public pages: the
// admin edits colors and layout, which they would hide.
if (localStorage.getItem("site-font") === "dyslexic") document.documentElement.dataset.font = "dyslexic";
if (!location.pathname.startsWith("/admin")) {
if (localStorage.getItem("site-reading") === "on") document.documentElement.dataset.reading = "on";
var v = localStorage.getItem("site-vision");
if (/^(protanopia|deuteranopia|tritanopia|monochrome)$/.test(v || "")) document.documentElement.dataset.vision = v;
}
} catch (e) {}
</script>
<!-- site:head-end -->
</head>
<body>
<!-- site:body-start -->
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<!-- site:body-end -->
</body>
</html>