From f9f406f54b474a46208062b701348660b867372a Mon Sep 17 00:00:00 2001 From: ywsabc2 Date: Tue, 6 Oct 2026 06:22:44 +0000 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E6=88=B7=EF=BC=9A=E5=9C=A8=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E4=B8=8A=E6=94=B9=E5=9C=B0=E5=9D=80=E6=A0=8F=E7=9A=84?= =?UTF-8?q?=E6=97=A7=E5=9C=B0=E5=9D=80=EF=BC=88#/gallery=E3=80=81#0003?= =?UTF-8?q?=E2=80=A6=EF=BC=89=E4=B9=9F=E4=BC=9A=E8=B7=B3=E5=88=B0=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=9B=E8=B5=84=E6=BA=90=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=20v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- portal/about.html | 10 +++++----- portal/assets/pages.js | 3 ++- portal/gallery.html | 12 ++++++------ portal/index.html | 10 +++++----- portal/links.html | 10 +++++----- portal/tools.html | 10 +++++----- portal/universe.html | 18 +++++++++--------- 7 files changed, 37 insertions(+), 36 deletions(-) diff --git a/portal/about.html b/portal/about.html index dd34b1f..52a9070 100644 --- a/portal/about.html +++ b/portal/about.html @@ -9,7 +9,7 @@ - + @@ -28,13 +28,13 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - + + + diff --git a/portal/assets/pages.js b/portal/assets/pages.js index 98eb368..66b8735 100644 --- a/portal/assets/pages.js +++ b/portal/assets/pages.js @@ -71,12 +71,13 @@ })(); /* ---------- 旧链接兼容:原来的单页版地址(#/gallery、#/universe、#0001 …)跳到对应的新页面 ---------- */ - if (page === 'home' && location.hash) { + function legacy() { var h = location.hash.replace(/^#\/?/, '').replace(/\/+$/, ''); var map = { gallery: 'gallery.html', apps: 'tools.html', universe: 'universe.html', rack: 'universe.html', links: 'links.html', about: 'about.html' }; if (map[h]) location.replace(map[h] + location.search); else if (/^\d{4}$/.test(h)) location.replace('universe.html' + location.search + '#' + h); } + if (page === 'home') { if (location.hash) legacy(); addEventListener('hashchange', legacy); } // 在首页上改地址栏的 # 也要跳 /* ---------- 共用小件 ---------- */ var GALLERY = (C.gallery || []).filter(function (g) { return !g.hidden; }); diff --git a/portal/gallery.html b/portal/gallery.html index 62269b7..8068b67 100644 --- a/portal/gallery.html +++ b/portal/gallery.html @@ -9,7 +9,7 @@ - + @@ -49,15 +49,15 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - - + + + + diff --git a/portal/index.html b/portal/index.html index 8c43b3e..aa08dae 100644 --- a/portal/index.html +++ b/portal/index.html @@ -9,7 +9,7 @@ - + @@ -34,13 +34,13 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - + + + diff --git a/portal/links.html b/portal/links.html index daea9a8..c9f25ba 100644 --- a/portal/links.html +++ b/portal/links.html @@ -9,7 +9,7 @@ - + @@ -24,13 +24,13 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - + + + diff --git a/portal/tools.html b/portal/tools.html index 6572cf4..1669434 100644 --- a/portal/tools.html +++ b/portal/tools.html @@ -9,7 +9,7 @@ - + @@ -25,13 +25,13 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - + + + diff --git a/portal/universe.html b/portal/universe.html index ee2edfc..7bbe3ec 100644 --- a/portal/universe.html +++ b/portal/universe.html @@ -9,8 +9,8 @@ - - + + @@ -31,18 +31,18 @@ try{if(sessionStorage.getItem('jz-boot')||matchMedia('(prefers-reduced-motion: r - + - - - - - + + + + +