Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
add form
Browse files Browse the repository at this point in the history
  • Loading branch information
app6460 committed Feb 27, 2022
1 parent ddf05c3 commit 2879f9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ <h1>WORDLE</h1>
</div>
</div>
<div class="input">
<input type="text" id="word" maxlength="1" autocomplete="off" oninput="this.value = this.value.replace(/[^A-Za-z]/ig, '').toUpperCase()" autofocus>
<form>
<input type="text" id="word" maxlength="1" autocomplete="off" oninput="this.value = this.value.replace(/[^A-Za-z]/ig, '').toUpperCase()" autofocus>
</form>
</div>
</body>
</html>
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ body {
text-align: center;
}

.input > input {
.input > form > input {
text-align: center;
width: 100px;
height: 100%;
Expand All @@ -76,6 +76,6 @@ body {
transition: border-width 500ms ease-out;
}

.input > input:focus {
.input > form > input:focus {
border-width: 3px black;
}

0 comments on commit 2879f9b

Please sign in to comment.