diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index 6f08ab7..ae4aa7b 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -43,6 +43,17 @@ white-space: pre-wrap; } + .arrow { + padding: 0; + font-size: 20px; + line-height: 21px; + display: inline-block; + } + + .arrow:hover { + cursor: pointer; + } + @@ -75,7 +86,7 @@
-

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


+

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



{{ today_article["article_title"] }}


{{ today_article["article_body"] }}


@@ -219,7 +230,7 @@ } - function load_next_article() { + function load_next_article(){ $.ajax({ url: '/get_next_article/{{username}}', dataType: 'json', @@ -252,9 +263,7 @@ } }); } - - - function update(today_article) { + function update(today_article){ $('#user_level').html(today_article['user_level']); $('#text_level').html(today_article["text_level"]); $('#date').html('Article added on: '+today_article["date"]); @@ -269,7 +278,6 @@ document.querySelector('#user_level').classList.add('mark'); // do the same thing for user difficulty level setTimeout(() => {document.querySelector('#user_level').classList.remove('mark');}, 2000); } - function check_pre(visited_articles){ if((visited_articles=='')||(visited_articles['index']<=0)){ $('#load_pre_article').addClass('gray-background'); // 设置为灰色 diff --git a/app/templates/userpage_post.html b/app/templates/userpage_post.html index 94816c5..6b3520b 100644 --- a/app/templates/userpage_post.html +++ b/app/templates/userpage_post.html @@ -46,5 +46,7 @@ {% endfor %} {% endif %}
+