Compare commits

...

2 Commits

Author SHA1 Message Date
徐嘉辉 74eccfbebd 重复文章刷新 2022-12-20 19:55:02 +08:00
徐嘉辉 c76d4f21ec SPM2022F-CONTRIBUTORS-XieQiuHan 2022-12-13 20:01:50 +08:00
2 changed files with 16 additions and 3 deletions

View File

@ -180,5 +180,4 @@ Demo video link: https://b23.tv/QuB77m
Bug report: http://118.25.96.118/bugzilla/show_bug.cgi?id=215
*Last modified on 2021-10-17*
*Last modified on 2021-10-17*

View File

@ -17,10 +17,19 @@
<script src="{{ js }}"></script>
{% endfor %}
{% endif %}
<script type="text/javascript">
function fresh(){
try{
document.getElementById('rv').click();
}
catch{
}
}
</script>
<title>EnglishPal Study Room for {{ username }}</title>
</head>
<body>
<body onload="fresh()">
<div class="container-fluid">
<p><b>English Pal for <font id="username" color="red">{{ username }}</font></b>
<a class="btn btn-secondary" href="/logout" role="button">退出</a>
@ -29,6 +38,11 @@
{{ flashed_messages|safe }}
<a class="btn btn-success" href="/{{ username }}/reset" role="button"> 下一篇 Next Article </a>
{% if session.get('articleID') == session.get('old_articleID') %}
{% if session.get('old_articleID') != None %}
<a class="btn btn-success" href="/{{ username }}/reset" role="button" id="rv"> 出bug了 </a>
{% endif%}
{% endif %}
{% if session.get('articleID') != session.get('old_articleID') %}
{% if session.get('old_articleID') != None %}
<a class="btn btn-success" href="/{{ username }}/back" role="button"> 上一篇 Previous Article </a>