From 785a080bd3efe809a9df17d62ee860fa483df4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Fri, 12 Mar 2021 15:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A02P=E4=B8=8E3P=E7=9A=84?= =?UTF-8?q?=E8=A7=89=E9=86=92=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multi.html | 96 ++++++++++++++++++++++++++++++- script.js | 8 +++ style.css | 17 ++++-- triple.html | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 272 insertions(+), 8 deletions(-) diff --git a/multi.html b/multi.html index 20a1b9f4..b95c4a94 100644 --- a/multi.html +++ b/multi.html @@ -38,6 +38,11 @@ var formation = new Formation(teamsCount,5); { display: none; } +.show-team-name-left .team-menber-awoken, +.show-team-name-left .team-assist-awoken +{ + padding-left: var(--head-block-width); +} @@ -59,8 +64,9 @@ var formation = new Formation(teamsCount,5);
- + +
@@ -93,6 +99,50 @@ var formation = new Formation(teamsCount,5); + +
    @@ -465,6 +515,50 @@ var formation = new Formation(teamsCount,5);
+ +
diff --git a/script.js b/script.js index 17d26874..f93c677c 100644 --- a/script.js +++ b/script.js @@ -3113,6 +3113,10 @@ function refreshTeamTotalHP(totalDom, team, teamIdx) { setTextContentAndAttribute(tHpDom_general, tHP.bigNumberToString()); setTextContentAndAttribute(tHpDom_noAwoken, tHPNoAwoken.bigNumberToString()); + if (totalReduce > 0) + tHpDom_reduce.classList.remove("no-reduce"); + else + tHpDom_reduce.classList.add("no-reduce"); setTextContentAndAttribute(tHpDom_reduce.querySelector(".reduce-scale"), (totalReduce * 100).toFixed(2)); setTextContentAndAttribute(tHpDom_reduce.querySelector(".general"), tReduceHP.bigNumberToString()); setTextContentAndAttribute(tHpDom_reduce.querySelector(".awoken-bind"), tReduceHPNoAwoken.bigNumberToString()); @@ -3178,6 +3182,10 @@ function refreshFormationTotalHP(totalDom, teams) { setTextContentAndAttribute(tHpDom_general, tHP.bigNumberToString()); setTextContentAndAttribute(tHpDom_noAwoken, tHPNoAwoken.bigNumberToString()); + if (totalReduce > 0) + tHpDom_reduce.classList.remove("no-reduce"); + else + tHpDom_reduce.classList.add("no-reduce"); setTextContentAndAttribute(tHpDom_reduce.querySelector(".reduce-scale"), (totalReduce * 100).toFixed(2)); setTextContentAndAttribute(tHpDom_reduce.querySelector(".general"), tReduceHP.bigNumberToString()); setTextContentAndAttribute(tHpDom_reduce.querySelector(".awoken-bind"), tReduceHPNoAwoken.bigNumberToString()); diff --git a/style.css b/style.css index 8d9c287d..ad04ae74 100644 --- a/style.css +++ b/style.css @@ -583,8 +583,8 @@ ul{ .tIf-total-hp .general::before, .tIf-total-hp .awoken-bind::before, .tIf-total-hp .reduce .reduce-scale::before, -.tIf-total-hp .reduce .equal-general::before, -.tIf-total-hp .reduce .equal-awoken-bind::before, +.tIf-total-hp .reduce .general::before, +.tIf-total-hp .reduce .awoken-bind::before, .tIf-total-move .general::before, .tIf-total-move .awoken-bind::before, .tIf-total-move.fixed-move-time .general::after @@ -596,14 +596,14 @@ ul{ height: 16px; } .tIf-total-hp .awoken-bind::before, -.tIf-total-hp .reduce .equal-awoken-bind::before, +.tIf-total-hp .reduce .awoken-bind::before, .tIf-total-move .awoken-bind::before { background-image: url(images/icon-awoken-bind.png); } .tIf-total-hp .general::before, -.tIf-total-hp .reduce .equal-general::before +.tIf-total-hp .reduce .general::before { background-image: url(images/icon-HP.png); } @@ -612,10 +612,15 @@ ul{ background-image: url(images/icon-reduce.png); } .tIf-total-hp .reduce .reduce-scale::after{ + content: "%⇔"; +} +.tIf-total-hp .reduce.no-reduce .reduce-scale::after{ content: "%"; } -.tIf-total-hp .reduce .reduce-scale:not([data-value="0.00"])::after{ - content: "%⇔"; +.tIf-total-hp .reduce.no-reduce .general, +.tIf-total-hp .reduce.no-reduce .awoken-bind +{ + display: none; } .tIf-total-move .general::before{ diff --git a/triple.html b/triple.html index 66a40233..9f6cdabc 100644 --- a/triple.html +++ b/triple.html @@ -58,8 +58,9 @@ var formation = new Formation(teamsCount,6);
- + +
@@ -325,6 +326,58 @@ var formation = new Formation(teamsCount,6);
+ + + + + +