diff options
| author | Saksham Mittal <gotlouemail@gmail.com> | 2022-04-02 19:15:26 +0530 |
|---|---|---|
| committer | Saksham Mittal <gotlouemail@gmail.com> | 2022-04-02 19:15:26 +0530 |
| commit | 991fb1191a2680bc0827a85407792e95cc36356f (patch) | |
| tree | 45a31dea62cbc5577c4ca40583372f8e30cb4d02 /index.html | |
| parent | fda6bdf1ebf59f1f86f122186ba726c1e83881f7 (diff) | |
| download | purple-991fb1191a2680bc0827a85407792e95cc36356f.tar.gz | |
Add attempt counter and disable further play if won
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/index.html b/index.html index 5438389..39427fa 100644 --- a/index.html +++ b/index.html @@ -8,9 +8,11 @@ </head> <body> <h1>Guessing Game</h1> - <form onsubmit="hello(event)"> + <form onsubmit="checkAnswer(event)"> <input type="text" placeholder="Guess" autofocus> </form> <p id="result"></p> + <p id="win"></p> + <p id="attempt"></p> </body> </html> |
