From 7d8752be5084bf607c4271660a3f386dbcc5a36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Sun, 3 Nov 2024 07:45:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E6=A6=82=E8=BF=81=E7=A7=BB=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=BA=86=EF=BC=8C=E6=89=80=E4=BB=A5=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 50 +++++++++++++++++++++++------------------------ service-worker.js | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/script.js b/script.js index 20223c2c..8aeb6e26 100644 --- a/script.js +++ b/script.js @@ -2584,39 +2584,39 @@ window.onload = initialize; //界面初始化 //初始化 function initialize() { - if (/localhost/i.test(location.hostname) || /mapaler\.com/i.test(location.hostname)) { - // const alert = document.createElement("dialog"); - // const h1 = alert.appendChild(document.createElement("h1")); - // h1.textContent = "Notice | 公告"; - const alert = document.createElement("div"); - const title1 = alert.appendChild(document.createElement("h3")); - title1.textContent = "Notice"; + // if (/localhost/i.test(location.hostname) || /mapaler\.com/i.test(location.hostname)) { + // // const alert = document.createElement("dialog"); + // // const h1 = alert.appendChild(document.createElement("h1")); + // // h1.textContent = "Notice | 公告"; + // const alert = document.createElement("div"); + // const title1 = alert.appendChild(document.createElement("h3")); + // title1.textContent = "Notice"; - const link1 = document.createElement("a"); - link1.href = "https://mapaler.github.io/PADDashFormation"; - link1.textContent = "GitHub Pages Mirror"; + // const link1 = document.createElement("a"); + // link1.href = "https://mapaler.github.io/PADDashFormation"; + // link1.textContent = "GitHub Pages Mirror"; - const link1_2 = document.createElement("a"); - link1_2.href = "https://pad.ideawork.cn"; - link1_2.textContent = "Mirror by @BigBug"; + // const link1_2 = document.createElement("a"); + // link1_2.href = "https://pad.ideawork.cn"; + // link1_2.textContent = "Mirror by @BigBug"; - const p1 = alert.appendChild(document.createElement("p")); - p1.append("Since my VPS is currently CentOS 7 that has been discontinued, and I am ready to migrate to a new version OS in the near future. I need to rebuild the server environment after the upgrade, this website cannot be accessed, please use ",link1, " or ", link1_2," during this time."); + // const p1 = alert.appendChild(document.createElement("p")); + // p1.append("Since my VPS is currently CentOS 7 that has been discontinued, and I am ready to migrate to a new version OS in the near future. I need to rebuild the server environment after the upgrade, this website cannot be accessed, please use ",link1, " or ", link1_2," during this time."); - const title2 = alert.appendChild(document.createElement("h3")); - title2.textContent = "公告"; + // const title2 = alert.appendChild(document.createElement("h3")); + // title2.textContent = "公告"; - const link2 = link1.cloneNode(); - link2.textContent = "GitHub Pages 镜像"; + // const link2 = link1.cloneNode(); + // link2.textContent = "GitHub Pages 镜像"; - const link2_2 = link1_2.cloneNode(); - link2_2.textContent = "@大虫子搭的国内镜像"; + // const link2_2 = link1_2.cloneNode(); + // link2_2.textContent = "@大虫子搭的国内镜像"; - const p2 = alert.appendChild(document.createElement("p")); - p2.append("由于本人的 VPS 目前是已经停止维护的 CentOS 7,准备近期迁移到新版本系统。升级后我需要重新搭建服务器环境,本网站无法正常访问,请先使用 ",link2, " 或 ", link2_2,"。"); + // const p2 = alert.appendChild(document.createElement("p")); + // p2.append("由于本人的 VPS 目前是已经停止维护的 CentOS 7,准备近期迁移到新版本系统。升级后我需要重新搭建服务器环境,本网站无法正常访问,请先使用 ",link2, " 或 ", link2_2,"。"); - document.body.appendChild(alert); - } + // document.body.appendChild(alert); + // } const drawScreenshot = document.querySelector("#draw-screenshot"); diff --git a/service-worker.js b/service-worker.js index f70fb27e..9851b824 100644 --- a/service-worker.js +++ b/service-worker.js @@ -37351,7 +37351,7 @@ const cachesMap = new Map([ ], [ "script.js", - "7e8e7d901aafcf1b204d42b87eaba41d" + "d7cf66ad3d4915542187f82a294b66e3" ], [ "solo.html",