wordle/templates/game.html

23 lines
748 B
HTML
Raw Normal View History

2022-01-18 21:52:14 +01:00
{% include "layout.html" %}
{% block body %}
<a href="{{ url_for('home') }}">home</a>
<hr>
<ul>
{% for guess in guesses %}
<li>
{% for letter, color in guess %}
<span class="letter" style="color:{{ color }};">{{ letter|upper }}</span>
{% endfor %}
</li>
{% endfor %}
</ul>
{% if state_playing %}
<form method="post" action="{{ url_for('make_guess') }}">
2022-01-18 22:33:49 +01:00
<input maxlength="5" minlength="5" size="5" name="guess" autofocus autocomplete="off"
style="text-transform:uppercase"/>
2022-01-18 21:52:14 +01:00
<input type="submit">
</form>
{% else %}
<p>{{ state }}</p>
{% endif %}
{% endblock %}