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
This commit is contained in:
Bkk1234 committed 2026-11-04 02:05:47 +07:00
1 parent 1adc2a6cd0
commit b6ccb66ce2
8 files changed
+189 -39

No files matched your search

+2 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.27.123"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.27.124"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [
@@ -33,6 +33,7 @@ const PRECACHE = [
"./popular.js",
"./analytics.js",
"./theme.js",
"./share.js",
"./theme.css",
"./router.js",
"./motion.js",