From 4479a0fb392de6c6f0f587b3b6e12c7893293cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E6=A2=93=E9=94=9F?= <1640384813@qq.com> Date: Mon, 6 May 2024 11:05:42 +0800 Subject: [PATCH] Bug561-WanZiKun MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了在前后切换文章时生词高亮功能不生效的问题。 Signed-off-by: 万梓锟 <1640384813@qq.com> --- userpage_get.html | 264 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100644 userpage_get.html diff --git a/userpage_get.html b/userpage_get.html new file mode 100644 index 0000000..232a747 --- /dev/null +++ b/userpage_get.html @@ -0,0 +1,264 @@ + + + + + + + + + + {{ yml['header'] | safe }} + {% if yml['css']['item'] %} + {% for css in yml['css']['item'] %} + + {% endfor %} + {% endif %} + {% if yml['js']['head'] %} + {% for js in yml['js']['head'] %} + + {% endfor %} + {% endif %} + + EnglishPal Study Room for {{ username }} + + + + + +
+

English Pal for {{ username }} + + {% if username == admin_name %} + 管理 + {% endif %} + 退出 + 重设密码 + +

+ {% for message in get_flashed_messages() %} + + {% endfor %} + + + + +

阅读文章并回答问题

+
+
+ +

Article added on: {{ today_article["date"] }}


+

+

{{ today_article["article_title"] }}


+

{{ today_article["article_body"] }}


+
+

{{ today_article['source'] }}


+
+ +

{{ today_article['question'] }}


+ + +
+
+
+ + +
+ + 生词高亮 + 大声朗读 + 划词入库 +
+
+
+ +
+ +
+
+

收集生词吧 (可以在正文中划词,也可以复制黏贴)

+
+
+ + +
+ {% if session.get['thisWord'] %} + + {% endif %} + + {% if d_len > 0 %} +

+ 我的生词簿 + +

+ +
+ {% for x in lst3 %} + {% set word = x[0] %} + {% set freq = x[1] %} + {% if session.get('thisWord') == x[0] and session.get('time') == 1 %} + {% endif %} +

+ {{ word }} + ( {{ freq }} ) + 熟悉 + 不熟悉 + 删除 + 朗读 +

+ {% endfor %} +
+ + {% endif %} +
+{{ yml['footer'] | safe }} +{% if yml['js']['bottom'] %} + {% for js in yml['js']['bottom'] %} + + {% endfor %} +{% endif %} + + + + +