Commit Graph
14 Commits
Author SHA1 Message Date
Mark Eaton a426ce34e6 Merge branch 'main' of tildegit.org:MarkEEaton/Kingsborough-LibGuide 2026-04-13 11:55:33 -04:00
Mark Eaton dfbe8875f5 move theme toggle to own Vue app for better tab order
Relocate the light/dark toggle button out of #app1 and into a new
#app3 mount just before the back-to-top element so keyboard focus
reaches it near the end of the page instead of right after the main
nav. Replace the library logo's reactive :src binding with a plain
src plus data-light-src/data-dark-src so app1 no longer needs any
theme state; app3 now owns toggleTheme, overlay updates, logo swap,
and the OS preference listener.
2026-04-13 11:53:20 -04:00
Mark Eaton 8feb832dfa move #main-content reference 2026-04-01 13:28:49 +00:00
Mark EatonandClaude Opus 4.6 a272b054ad fix TypeError on obsolete_browser_alert innerHTML access
Add null check before accessing innerHTML, since the element may not
exist in the DOM when the CMS renders the page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 10:26:38 -05:00
Mark Eaton 9afd7790a1 use full paths for image 2026-02-23 10:20:50 -05:00
Mark EatonandClaude Opus 4.6 898e623b2b swap onesearch logo based on dark/light mode
Use onesearch_logo2.png (black text) in light mode and
onesearch_logo3.png (white text) in dark mode via MutationObserver.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 10:12:42 -05:00
Mark Eaton 3fd860a065 switch text to white in onesearch_logo 2026-02-23 10:00:40 -05:00
Mark Eaton 7ec70c8274 use new onesearch logo on bootstrap5 site 2026-02-23 09:50:28 -05:00
Mark EatonandClaude Opus 4.6 a978df4af9 add dark/light mode toggle with OS preference detection
Uses Bootstrap 5.3 data-bs-theme attribute for automatic component
theming. Adds CSS custom properties for dark mode, a toggle button
in the header, localStorage persistence, and a flash-prevention
script. Background image overlay adjusts per theme.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 23:27:53 -05:00
Mark EatonandClaude Opus 4.6 05e7e8942a move obsolete browser warning from home1.css to home1.js
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 23:28:44 -05:00
Mark EatonandClaude Opus 4.6 5a2bc3b4cb move ES6 feature detection from home1.css to home1.js
Combine the two inline script blocks into a single try/catch
using new Function() so old browsers fail gracefully.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 23:22:21 -05:00
Mark Eaton ddcb471eac add randomized background images 2026-02-07 22:34:36 -05:00
Mark Eaton 36847a4660 bug fixes on bs5 version 2026-02-05 14:00:55 -05:00
Mark Eaton 7b18219029 first bootstrap5 version of homepage 2026-02-04 23:46:01 -05:00