df
This commit is contained in:
parent
c98cc3a5fe
commit
28fbdf773d
3 changed files with 5 additions and 5 deletions
|
@ -1065,10 +1065,10 @@ def handle_wordle_action(cid, v):
|
||||||
for i in guess:
|
for i in guess:
|
||||||
result += i.upper()
|
result += i.upper()
|
||||||
if i == answer[pos]:
|
if i == answer[pos]:
|
||||||
result += "🟩/"
|
result += "🟩 "
|
||||||
not_finished[pos] = " "
|
not_finished[pos] = " "
|
||||||
elif i in not_finished: result += "🟨/"
|
elif i in not_finished: result += "🟨 "
|
||||||
else: result += "🟥/"
|
else: result += "🟥 "
|
||||||
pos += 1
|
pos += 1
|
||||||
|
|
||||||
guesses += result[:-1]
|
guesses += result[:-1]
|
||||||
|
|
|
@ -288,7 +288,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if c.wordle_result %}
|
{% if c.wordle_result %}
|
||||||
<em>{{wordle_guesses}}</em>
|
<small>{{wordle_guesses}}</small>
|
||||||
{% if wordle_status == 'active' and v.id == c.author_id %}
|
{% if wordle_status == 'active' and v.id == c.author_id %}
|
||||||
<input autocomplete="off" id="guess_box" type="text" name="guess" class="form-control" maxsize="4" style="width: 200px;
|
<input autocomplete="off" id="guess_box" type="text" name="guess" class="form-control" maxsize="4" style="width: 200px;
|
||||||
display: initial;" placeholder="5-letter guess"></input>
|
display: initial;" placeholder="5-letter guess"></input>
|
||||||
|
|
|
@ -221,7 +221,7 @@
|
||||||
{% if v %}
|
{% if v %}
|
||||||
|
|
||||||
{% if sub %}
|
{% if sub %}
|
||||||
<img alt="/s/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:20vw">
|
<img alt="/s/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
|
||||||
{% elif SITE_NAME == 'Drama' %}
|
{% elif SITE_NAME == 'Drama' %}
|
||||||
{% set path = "assets/images/" + SITE_NAME + "/banners_bhm" %}
|
{% set path = "assets/images/" + SITE_NAME + "/banners_bhm" %}
|
||||||
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?a=21' %}
|
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?a=21' %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue