forked from MarseyWorld/MarseyWorld
master
parent
1e316595b3
commit
2a70630d82
|
@ -1065,10 +1065,10 @@ def handle_wordle_action(cid, v):
|
|||
for i in guess:
|
||||
result += i.upper()
|
||||
if i == answer[pos]:
|
||||
result += "🟩/"
|
||||
result += "🟩 "
|
||||
not_finished[pos] = " "
|
||||
elif i in not_finished: result += "🟨/"
|
||||
else: result += "🟥/"
|
||||
elif i in not_finished: result += "🟨 "
|
||||
else: result += "🟥 "
|
||||
pos += 1
|
||||
|
||||
guesses += result[:-1]
|
||||
|
|
|
@ -288,7 +288,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if c.wordle_result %}
|
||||
<em>{{wordle_guesses}}</em>
|
||||
<small>{{wordle_guesses}}</small>
|
||||
{% 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;
|
||||
display: initial;" placeholder="5-letter guess"></input>
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
{% if v %}
|
||||
|
||||
{% 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' %}
|
||||
{% set path = "assets/images/" + SITE_NAME + "/banners_bhm" %}
|
||||
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?a=21' %}
|
||||
|
|
Loading…
Reference in New Issue