Snapshot flask development.

Dictionary and solver pages can partially display, but can't
make any changes.
This commit is contained in:
dongar committed 2023-04-02 08:25:24 -05:00
1 parent f7dd7c40f8
commit 17c8aefbed
5 files changed
+102 -13

No files matched your search

+15 -1
View File
@@ -5,5 +5,19 @@
{% endblock %}
{% block content %}
Words go here.
{% if page > 0 %}<a href="{{ url_for('dictionary', page=page-1) }}">Prev</a>{% endif %}
Page {{ page }} / {{ max_pages }}
{% if page < max_pages %}<a href="{{ url_for('dictionary', page=page+1) }}">Next</a>{% endif %}
<ul>
{% for word in words %}
<li>{{ word }}</li>
{% endfor %}
</ul>
{% endblock %}
+2 -1
View File
@@ -18,7 +18,8 @@
{% endblock %}
<hr />
<footer>
I did this!
This is not associated with the New York Times or the offical version of
Wordle in any way.
</footer>
</div>
</body>
+24 -3
View File
@@ -1,9 +1,30 @@
{% extends "layout.html" %}
{% block title %}
Solver!
Solver!
{% endblock %}
{% block content %}
Welcome to solver!
{% endblock %}
<ul>
{% for guess in guesses %}
<li>{{ guess }}
{% for i in range(5) %}
<select name="g{{i}}" id="g{{i}}">
<option value="U">Unknown</option>
<option value="I">Incorrect</option>
<option value="M">Move</option>
<option value="C">Correct</option>
</select>
{% endfor %}
</li>
{% endfor %}
</ul>
{%if solution %}
The proposed solution is <b>{{ solution }}</b>.
{% else %}
No solution found.
{% endif %}
{% endblock %}