22 lines
696 B
HTML
22 lines
696 B
HTML
|
{% 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') }}">
|
||
|
<input maxlength="5" minlength="5" size="5" name="guess" autofocus autocomplete="off"/>
|
||
|
<input type="submit">
|
||
|
</form>
|
||
|
{% else %}
|
||
|
<p>{{ state }}</p>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|