0
0
Fork 0

After loading the next article, show its difficulty level in a larger size for one second.

Bug-561
Hui Lan 2023-07-17 16:13:56 +08:00
parent 79bdec2a7d
commit 78d9a66e88
1 changed files with 2 additions and 0 deletions

View File

@ -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){