Compare commits
No commits in common. "bc21a05b29e495c79dcc6666f8938ecff6c67dd2" and "d9512c929b865493bddf582445569c285197c681" have entirely different histories.
bc21a05b29
...
d9512c929b
|
@ -145,7 +145,7 @@ if __name__ == '__main__':
|
||||||
'''
|
'''
|
||||||
# app.secret_key = os.urandom(16)
|
# app.secret_key = os.urandom(16)
|
||||||
# app.run(debug=False, port='6000')
|
# app.run(debug=False, port='6000')
|
||||||
app.run(host='127.0.0.1', port=5000, debug=True)
|
app.run(debug=True)
|
||||||
# app.run(debug=True, port='6000')
|
# app.run(debug=True, port='6000')
|
||||||
# app.run(host='0.0.0.0', debug=True, port='6000')
|
# app.run(host='0.0.0.0', debug=True, port='6000')
|
||||||
# print(mod5('123'))
|
# print(mod5('123'))
|
||||||
|
|
|
@ -11,7 +11,7 @@ function containsDigitsLettersSpecialCharacters(s) {
|
||||||
resultL = /[a-z]/i.test(s);
|
resultL = /[a-z]/i.test(s);
|
||||||
|
|
||||||
// Special charater test
|
// Special charater test
|
||||||
'+-*/,.:;/\[]<>$%&()!?^~@'.split('').forEach((x) => {
|
'+-*/,.:;/\[]<>$%&()!?^~'.split('').forEach((x) => {
|
||||||
if (s.includes(x))
|
if (s.includes(x))
|
||||||
resultS = 1;
|
resultS = 1;
|
||||||
});
|
});
|
||||||
|
|
|
@ -87,18 +87,7 @@
|
||||||
|
|
||||||
<div id="text-content">
|
<div id="text-content">
|
||||||
<div id="found">
|
<div id="found">
|
||||||
{% if today_article and today_article["ratio"] is not none %}
|
<div class="alert alert-success" role="alert">According to your word list, your level is <span class="text-decoration-underline" id="user_level">{{ today_article["user_level"] }}</span> and we have chosen an article with a difficulty level of <span class="text-decoration-underline" id="text_level">{{ today_article["text_level"] }}</span> for you. The Oxford word coverage is <span class="text-decoration-underline" id="ratio">{{ (today_article["ratio"] * 100) | int }}%.</span></div>
|
||||||
<div class="alert alert-success" role="alert">
|
|
||||||
According to your word list, your level is
|
|
||||||
<span class="text-decoration-underline" id="user_level">{{ today_article["user_level"] }}</span>
|
|
||||||
and we have chosen an article with a difficulty level of
|
|
||||||
<span class="text-decoration-underline" id="text_level">{{ today_article["text_level"] }}</span>
|
|
||||||
for you. The Oxford word coverage is
|
|
||||||
<span class="text-decoration-underline" id="ratio">{{ (today_article["ratio"] * 100) | int }}%.</span>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
<div class="alert alert-warning">No article or article is incomplete.</div>
|
|
||||||
{% endif %}
|
|
||||||
<p class="text-muted" id="date">Article added on: {{ today_article["date"] }}</p><br/>
|
<p class="text-muted" id="date">Article added on: {{ today_article["date"] }}</p><br/>
|
||||||
|
|
||||||
<button onclick="saveArticle()" >标记文章</button>
|
<button onclick="saveArticle()" >标记文章</button>
|
||||||
|
@ -125,9 +114,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<button onclick="toggle_visibility('answer');">ANSWER</button>
|
<button onclick="toggle_visibility('answer');">ANSWER</button>
|
||||||
<div id="answer" style="display:none;">
|
<div id="answer" style="display:none;">{{ today_article['answer'] }}</div><br/>
|
||||||
{{ today_article['answer'] }}
|
|
||||||
</div><br/>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="tooltip"></div>
|
<div id="tooltip"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue