From 10aa681b6096c6829fac640fc59a23bde28d2187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Tue, 24 Dec 2024 23:20:56 +0800 Subject: [PATCH] . --- py/LunaTranslator/cishu/jisho.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/py/LunaTranslator/cishu/jisho.py b/py/LunaTranslator/cishu/jisho.py index 7ddccc7e..8bf902a3 100644 --- a/py/LunaTranslator/cishu/jisho.py +++ b/py/LunaTranslator/cishu/jisho.py @@ -14,13 +14,13 @@ class jisho(cishubase): for title, res in allres: idx += 1 btns.append( - """""".format( - idx=idx, title=title + """""".format( + idx=idx, title=title, klass='' if idx==0 else ' active' ) ) contents.append( - """
{res}
""".format( - idx=idx, res=res + """
{res}
""".format( + idx=idx, res=res,klass='' if idx==0 else ' active' ) ) commonstyle = """ @@ -85,10 +85,6 @@ function onclickbtn_xxxxxx_internal(_id) { - """.format( commonstyle=commonstyle, btns="".join(btns), contents="".join(contents) )