Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (47 sloc) 1.52 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Crossword Finder</title>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Crossword Finder</h1>
<form>
<p>Enter the letters you know, using a period (<tt>.</tt>) to indicate unknown letters (blanks). For example: <tt>a..w.r</tt>.</p>
<fieldset>
<input id="q" type="text" name="q" value="{{ q }}" autofocus></input>
<select name="l">
{% for language in languages %}
<option value="{{ language }}" {% if language == l %}selected{% endif %}>
{{ language }}
</option>
{% endfor %}
</select>
<button type="submit">Search</button>
</fieldset>
{% if results %}
<p class="results">
{% case results.length %}
{% when 0 %}
Found <strong>no</strong> results
{% when 1 %}
Found <strong>1</strong> result
{% else %}
Found <strong>{{ results | size }}</strong> results
{% endcase %}
for <tt>{{ q }}</tt> ({{ q | size }} letters)
</p>
<ul>
{% for result in results %}
<li>{{ result }}</li>
{% endfor %}
</ul>
{% endif %}
</form>
<div class="footer">
<p>A <a href="http://frozenfractal.com/">Frozen Fractal</a> product. Source code on <a href="http://github.com/ttencate/crosswordfinder">GitHub</a>.</p>
</div>
</body>
</html>
Something went wrong with that request. Please try again.