From b2777b68a57f0fa7196104b8efe54aa0d5b337fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Thu, 15 Oct 2020 18:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E9=99=84=E5=8A=A0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=8A=A8=E6=80=81=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multi.html | 6 +++--- script.js | 14 +++++++++++++- solo.html | 6 +++--- triple.html | 6 +++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/multi.html b/multi.html index 852390dd..19251bba 100644 --- a/multi.html +++ b/multi.html @@ -658,15 +658,15 @@ var formation = new Formation(teamsCount,5);
+ + +
- - -
diff --git a/script.js b/script.js index c5141c25..4d0157aa 100644 --- a/script.js +++ b/script.js @@ -1167,6 +1167,7 @@ function initialize() { const s_add_show_CD = searchBox.querySelector("#add-show-CD"); //是否显示CD const s_add_show_abilities = searchBox.querySelector("#add-show-abilities"); //是否显示三维 const s_add_show_abilities_with_awoken = searchBox.querySelector("#add-show-abilities-with-awoken"); //是否显示计算觉醒的三维 + showSearch = function(searchArr) { editBox.show(); searchBox.classList.remove(className_displayNone); @@ -1191,6 +1192,17 @@ function initialize() { } searchMonList.classList.remove(className_displayNone); }; + //对已经搜索到的Cards重新附加显示 + function reShowSearch() + { + const oldArr = searchMonList.originalHeads.map(head=>head.card); + showSearch(oldArr); + } + s_add_show_awoken.onchange = reShowSearch; + s_add_show_CD.onchange = reShowSearch; + s_add_show_abilities.onchange = reShowSearch; + s_add_show_abilities_with_awoken.onchange = reShowSearch; + const startSearch = function(cards) { const attr1Filter = s_attr1s.filter(returnCheckedInput).map(returnInputValue); const attr2Filter = s_attr2s.filter(returnCheckedInput).map(returnInputValue); @@ -1280,7 +1292,7 @@ function initialize() { return headsArray; } - //对搜索到的Cards重新排序 + //对已经搜索到的Cards重新排序 function reSortCards() { const headsArray = sortHeadsArray(searchMonList.originalHeads); if (!headsArray || headsArray.length === 0) return; //没有数据时,直接返回 diff --git a/solo.html b/solo.html index 1660fa50..d4377ab1 100644 --- a/solo.html +++ b/solo.html @@ -608,15 +608,15 @@ var formation = new Formation(teamsCount,6);
+ + +
- - -
diff --git a/triple.html b/triple.html index 0a4911c2..8799b29a 100644 --- a/triple.html +++ b/triple.html @@ -1303,15 +1303,15 @@ var formation = new Formation(teamsCount,6);
+ + +
- - -