Nathan Esquenazi 0205ef810a fix: mobile nav broken JS, hamburger menu, viewport overflow
index.html:
- CRITICAL JS BUG: setTheme() had a ghost orphan 'else' block left from
  the old hljs-switching version that was never fully removed. The function
  correctly closed at line 2077 but a dangling '} else { ... hljsTheme.href
  ... }' remained at lines 2078-2082. This caused a JS syntax error that
  silently killed the entire <script> block — theme toggle, hamburger menu,
  copy buttons, nav active state, smooth scroll: all broken. Fixed by
  removing the dead code entirely.
- Add overflow-x: hidden to html element to prevent any overflowing content
  from enabling horizontal scroll on mobile.

compare/*.html (all 9 pages):
- Add overflow-x: hidden to html element (same fix, same reason)
- Add @media (max-width: 640px) block that hides .nav-back span text and
  the 'Get started' CTA on narrow screens. The compare nav has three items
  (logo, back-link, theme+CTA) with no hamburger — at mobile widths these
  were colliding/overflowing. Now at ≤640px: back-link shows '←' only
  (span hidden), CTA hidden, theme toggle stays visible and usable.
- Wrap nav-back text in <span> so the mobile rule can target it
- Add word-break: break-word and min-width: 0 to .narrative to prevent
  long words/URLs from forcing horizontal overflow
2026-04-11 23:49:09 +00:00
S
Description
Languages
Python 72.3%
JavaScript 22.4%
CSS 3.2%
HTML 1.6%
Shell 0.4%
Other 0.1%