NGU-Web/index.html
Zaldimmar 2b009beac1 Use organization-neutral names in code and browser keys
- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is
  siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__
  is window.__SITE__; QR downloads are qr-<page>.png
- Browser keys (theme, closed banner and privacy notice, chunk reload)
  start site-; the page's first script moves any old ngu- values over
  once, so nobody loses their theme or sees a closed notice again
- Session and Google sign-in cookies are site_session and site_oauth
  (__Host- over https); everyone signs in again once

Record ids, server paths, the service and the database file keep
their names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:23:29 -05:00

38 lines
1.5 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. -->
<script>
try {
// Once: browser keys used to start "ngu-"; move them to "site-"
// so a visitor keeps their theme and closed notices.
for (var i = localStorage.length - 1; i >= 0; i--) {
var k = localStorage.key(i);
if (k && k.indexOf("ngu-") === 0) {
var nk = "site-" + k.slice(4);
if (localStorage.getItem(nk) === null) localStorage.setItem(nk, localStorage.getItem(k));
localStorage.removeItem(k);
}
}
var t = localStorage.getItem("site-theme");
document.documentElement.dataset.theme =
t === "dark" || t === "light" ? t : matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
} 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>