From f798b043f0cc364ac87ca1d1ef15a12503d5be63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 26 Feb 2020 01:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=80=BB=E8=BE=91=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E5=B0=8F=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 11 ++++------- style.css | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/script.js b/script.js index 603ecf48..0ad0a0c6 100644 --- a/script.js +++ b/script.js @@ -1471,6 +1471,10 @@ function changeid(mon,monDom,latentDom) monDom.classList.add("allowable-assist"); else monDom.classList.remove("allowable-assist"); + if (card.awakenings.indexOf(49)>=0)//武器 + monDom.classList.add("wepon"); + else + monDom.classList.remove("wepon"); } const levelDom = monDom.querySelector(".level"); if (levelDom) //如果提供了等级 @@ -1510,13 +1514,6 @@ function changeid(mon,monDom,latentDom) { awokenIcon.classList.remove("full-awoken"); } - if (card.awakenings.indexOf(49)>=0) - {//武器 - awokenIcon.classList.add("wepon"); - }else - { - awokenIcon.classList.remove("wepon"); - } } } const sawoken = monDom.querySelector(".super-awoken"); diff --git a/style.css b/style.css index 2eb59589..ec8ed98a 100644 --- a/style.css +++ b/style.css @@ -277,7 +277,7 @@ ul{ content: none; } /*武器*/ -.monster.allowable-assist .awoken-count.full-awoken.wepon{ +.monster.wepon .awoken-count.full-awoken{ transform: scale(0.80) translateY(4px); width:32px;height:32px; background-image: url(images/awoken.png); @@ -886,7 +886,7 @@ ul{ background: grey; } .search-mon-list.only-display-can-assist .monster{ - opacity: 0.3; + opacity: 0.25; } .search-mon-list.only-display-can-assist .monster.allowable-assist{ opacity: 1;