From 78d9a66e88da5aacb249fcfd9ea1649fbeaab755 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Mon, 17 Jul 2023 16:13:56 +0800 Subject: [PATCH] After loading the next article, show its difficulty level in a larger size for one second. --- app/templates/userpage_get.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 1e46cb3..b2d37a8 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -204,6 +204,8 @@ $('#source').html(today_article['source']); $('#question').html(today_article["question"]); $('#answer').html(today_article["answer"]); + $('#text_level').classList.add('display-5'); // enlarge text difficult level for one second + setTimeOut(() => {$('#text_level').classList.remove('display-5');}, 1000); } function check_pre(visited_articles){