Skip to content

Commit

Permalink
restrict user input to 2 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
BenDavidAaron committed Jan 25, 2018
1 parent cdfe6cb commit cc84ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ <h1>bad-calculator</h1>
<form id='numbers' method="post">
Pick two Numbers
<br>
<input type="text" name="number1" value="{{n1}}" size="3" maxlength="3">
<input type="text" name="number1" value="{{n1}}" size="2" maxlength="2">
+
<input type="text" name="number2" value="{{n2}}" size="3" maxlength="3">
<input type="text" name="number2" value="{{n2}}" size="2" maxlength="2">
<br>
Pick a model to compute the sum
<br>
Expand Down

0 comments on commit cc84ecd

Please sign in to comment.