10 Commits
Author SHA1 Message Date
Bkk1234 82d784963e footer: contact email [email protected]
Replaces the old [email protected] in the SPA shell footer and the static
stop page · VERSION 2026.09.27.129
2026-11-04 22:00:45 +07:00
Bkk1234 d155d479ad dark: make dropdowns readable (select options + pop menus)
- theme.css: form controls inherit color-scheme per theme, and explicit
  dark/light overrides so the native <option> popup is not white-on-white;
  option/optgroup use --c-surface/--c-ink, :checked uses the purple tint
- _shared.css: .mu-pop-panel/.mu-pop-item/.mu-pop-btn carry token fallbacks so
  the theme/lang menus stay readable even if tokens are missing (stale cache)
- VERSION 2026.09.27.128
2026-11-04 02:24:32 +07:00
Bkk1234 14e7ec524f navbar: finish pixel parity with the Next header
- .mu-brand-title 1rem (was 1.05rem in index.html + responsive.css)
- .mu-logo-img radius var(--radius) (8px) and brand gap 8px like Next
- .mu-nav a colour var(--c-info) (Next uses --c-info, mock had --c-ink-2)
- measured at 1600px: credits 1083-1132, CTA 1150-1279, tools 1297-1405 —
  identical to web-at-transit; nav/CTA/tools positions now match exactly
- VERSION 2026.09.27.126
2026-11-04 02:08:13 +07:00
Bkk1234 b6ccb66ce2 check page: add share button (parity with Next) + shared share row styles
- ui/share.js: one handler for all pages (id=share-btn / id=share-status),
  short link = origin+path+hash, navigator.share + clipboard, LINE link,
  re-binds after router swaps the view (MutationObserver), skips buttons that
  a page already bound itself
- checkSchedule.html: share row inside .mu-container (same position as Next)
- _shared.css: .mu-share-* moved here from home.html, values copied from Next
  (ghost button, radius 8, 44px, tokens) so light/dark match
- home.init.js marks its own binding so the shared handler does not double-bind
- index.html + sw PRECACHE: share.js · VERSION 2026.09.27.124
2026-11-04 02:05:47 +07:00
Bkk1234 1adc2a6cd0 navbar: theme icons + CTA order to match Next exactly
- theme.js: icon SVGs now carry width/height 18 (sun / moon / monitor) so the
  icon renders inside the 40px button and switches with the mode
- .mu-topbar-tools { order: 2 } — the CTA now sits right after the credits link
  and the theme/lang tools move to the far right, same visual order as
  web-at-transit (CTA 1144-1273 vs tools 1291-1405 at 1600px)
- icon sizing scoped (#theme-icon svg) so the language chevron stays 12px;
  lang button back to 59px, tools 107px == Next
- VERSION 2026.09.27.123
2026-11-04 01:43:18 +07:00
Bkk1234 eabcff197c navbar: rebuild mock header from the Next implementation (source of truth)
- markup: lang + theme moved into .mu-topbar-tools (theme first, then lang),
  same order as web-at-transit: brand, nav, menu, tools, CTA
- CSS: replaced mock's .mu-lang-*/.mu-theme-* buttons with the Next rules
  (.mu-pop / .mu-pop-btn / .mu-pop-btn-lang / .mu-pop-panel / .mu-pop-item,
  40px tall, radius 8px, surface bg, 44px on coarse pointers)
- lang button keeps short label + 12px chevron; menu items use
  .mu-pop-item-th/.mu-pop-item-en and data-active for the selected row
- nav 0.95rem (was .92rem), header border -> var(--c-border)
- theme.js was never included in the shell (regex missed the versioned src) —
  added after i18n.js + precached with theme.css; that was why the theme menu
  did not open in the previous build
- VERSION 2026.09.27.120
2026-11-04 01:37:50 +07:00
Bkk1234 5800a61da3 theme: align nav colours with the shared tokens (parity with Next)
- .mu-nav a -> var(--c-ink-2), .mu-nav a.active -> var(--c-danger)
  so light and dark render identically in both projects
- VERSION 2026.09.27.116
2026-11-04 01:30:32 +07:00
Bkk1234 cdfd77ffff theme: dark mode + theme tokens (parity with web-at-transit)
- ui/theme.css: token set copied value-for-value from the Next app
  (--c-surface/-ink/-border/-brand/-tint/-glass + radius), light and dark blocks
- ui/theme.js: 3-mode switch (light / dark / auto=prefers-color-scheme) with a
  header dropdown, aria-haspopup/menu, Esc/outside close, live matchMedia listener
- index.html: pre-paint theme script (no flash), theme.css link before _shared.css
- remapped ~290 literal colours in _shared.css/index.html/partials to var(--c-*)
  so both projects render from the same tokens; dark patch block covers the
  remaining decorative gradients
- DESIGN.md: new section 3.2 (theme tokens + where to add colours)
- VERSION 2026.09.27.114
2026-11-04 01:29:37 +07:00
Bkk1234 bea8f0773e header: language dropdown + Thai as default language
- replace the two inline TH/EN buttons with a single dropdown (icon + label +
  caret) mirroring the Next app's LangSwitch: aria-haspopup/expanded,
  menuitemradio + aria-checked, close on Esc/outside, focus management
- i18n.js: default language is Thai (no longer guesses from navigator.language);
  saved choice still wins via at_lang
- bump VERSION 2026.09.27.109
2026-11-04 01:17:32 +07:00
Bkk1234 fcdab3ac80 pwa: automatic update UX - no more hard refresh
- ui/version.json: server-side version marker, polled by pwa.js (load, 5 min,
  tab focus, network online); mismatch -> toast + auto reload once per version
- pwa.js: silent reload when tab hidden, guarded reload (sessionStorage) so a
  partial deploy cannot loop, ATUpdate.check() exposed for testing
- _shared.css: .mu-update-toast pill (bottom center, reduced-motion aware)
- shell js/css get ?v=<version> automatically (bump-version.py) so HTTP cache
  cannot serve stale files before the service worker takes control
- sw: cache fallback now ignores query string (precache still matches ?v= URLs)
- bump-version.py: writes version.json + verifies it in --check
- VERSION 2026.09.27.108
2026-11-03 00:32:41 +07:00