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

+1
View File
@@ -419,6 +419,7 @@
var btn = document.getElementById('share-btn');
var status = document.getElementById('share-status');
if (!btn) return;
btn.dataset.bound = '1'; /* หน้าแรกมี logic ลิงก์สั้นของตัวเอง */
var tr = window.I18N ? window.I18N.t : function (k) { return k; };
function paint(msg) {