From 4b23bdaadccec8330837cc5f6b6e889d68ad5c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Tue, 1 Oct 2024 02:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=80=AA=E7=89=A9=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=B8=BB=E5=A4=B4=E5=83=8F=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=BF=9D=E5=AD=98=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- languages/language-list.js | 1 + multi.html | 10 +++++----- script.js | 11 ++++++++++- solo.html | 10 +++++----- triple.html | 10 +++++----- 5 files changed, 26 insertions(+), 16 deletions(-) diff --git a/languages/language-list.js b/languages/language-list.js index 964a7cd6..cee74a6c 100644 --- a/languages/language-list.js +++ b/languages/language-list.js @@ -32,6 +32,7 @@ function sanbonGuideUrl(id) { } function mydelfGuideUrl(id) { const url = new URL(location); + url.searchParams.delete('d'); url.searchParams.set("guide",1); url.searchParams.set("id",id); return url; diff --git a/multi.html b/multi.html index 927b8b7d..d64b9880 100644 --- a/multi.html +++ b/multi.html @@ -1290,11 +1290,11 @@ const teamsCount = 2;
- -
-
-
-
+
diff --git a/script.js b/script.js index 76395e5e..eb7dabc6 100644 --- a/script.js +++ b/script.js @@ -4230,6 +4230,12 @@ function initialize() { }; const monInfoBox = editBox.querySelector(".monsterinfo-box"); + const monInfoBoxMainAvatar = monInfoBox.querySelector(".monster"); + monInfoBoxMainAvatar.onclick = function(){ //主头像修改为点击保存自身画面 + const id = parseInt(this.dataset.cardid, 10) || 0; + captureScreenshot(this, `${id}`, true); + } + const searchBox = editBox.querySelector(".search-box"); const settingBox = editBox.querySelector(".setting-box"); @@ -5840,10 +5846,13 @@ function changeid(mon, monDom, latentDom, assist) { attrDoms[1].classList.toggle("changed-sub-attr", Boolean(changeAttrAwoken)); monDom.title = `No.${monId} ${card.otLangName ? (card.otLangName[currentLanguage.searchlist[0]] || card.name) : card.name}`; - monDom.href = currentLanguage.guideURL(monId, card.name); + monDom.classList.toggle("allowable-assist", card.canAssist);; //可作为辅助 monDom.classList.toggle("wepon", card.awakenings.includes(49));; //武器 + + //如果是链接,增加链接 + if (monDom instanceof HTMLAnchorElement) monDom.href = currentLanguage.guideURL(monId, card.name); } const levelDom = monDom.querySelector(".level"); if (levelDom) { //如果提供了等级 diff --git a/solo.html b/solo.html index 2b20ab57..fab6faca 100644 --- a/solo.html +++ b/solo.html @@ -980,11 +980,11 @@ const teamsCount = 1;
    - -
    -
    -
    -
    +
    diff --git a/triple.html b/triple.html index 8d3c77d5..beb8f13f 100644 --- a/triple.html +++ b/triple.html @@ -1825,11 +1825,11 @@ const teamsCount = 3;
      - -
      -
      -
      -
      +