Skip to content

Commit

Permalink
limited char length for input
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashesh Shroff committed Jan 29, 2022
1 parent 275a246 commit 89759fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ input[type=textletter] {
font-family: monospace;
font-size: 20px;
padding-left: 3px;
letter-spacing: 12px;
letter-spacing: 3px;
}

/*# Alternate Mobile First Redesign CSS
Expand Down
14 changes: 7 additions & 7 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ <h1>{{message}}</h1>
<h2>Congratulations, you are about to master Wordle</h2>
<form action="{{ url_for('wordle') }}" method="post">
<label for="use">Letters that must be <b>used</b>:</label>
<input id="use" type="textbox" name="use" value="{{ request.form['use'] }}"> <br>
<input id="use" type="textbox" name="use" maxlength="5" value="{{ request.form['use'] }}"> <br>
<label for="avoid">Letters that must be <b>avoided</b>:</label>
<input id="avoid" type="textbox" name="avoid" value="{{ request.form['avoid'] }}">
<br>
<label for="place">Letter slots known (optional):</label><br>
<input id="place1" type="textletter" name="place1" value="{{ request.form['place1'] }}">
<input id="place2" type="textletter" name="place2" value="{{ request.form['place2'] }}">
<input id="place3" type="textletter" name="place3" value="{{ request.form['place3'] }}">
<input id="place4" type="textletter" name="place4" value="{{ request.form['place4'] }}">
<input id="place5" type="textletter" name="place5" value="{{ request.form['place5'] }}"><br>
<input type="submit">
<input id="place1" type="textletter" name="place1" maxlength="1" value="{{ request.form['place1'] }}">
<input id="place2" type="textletter" name="place2" maxlength="1" value="{{ request.form['place2'] }}">
<input id="place3" type="textletter" name="place3" maxlength="1" value="{{ request.form['place3'] }}">
<input id="place4" type="textletter" name="place4" maxlength="1" value="{{ request.form['place4'] }}">
<input id="place5" type="textletter" name="place5" maxlength="1" value="{{ request.form['place5'] }}">
<br><input type="submit">
</form>
</div>
<br>
Expand Down

1 comment on commit 89759fe

@vercel
Copy link

@vercel vercel bot commented on 89759fe Jul 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.