about summary refs log tree commit diff
path: root/index.html
diff options
context:
space:
mode:
authorSaksham Mittal <gotlouemail@gmail.com>2022-04-02 19:15:26 +0530
committerSaksham Mittal <gotlouemail@gmail.com>2022-04-02 19:15:26 +0530
commit991fb1191a2680bc0827a85407792e95cc36356f (patch)
tree45a31dea62cbc5577c4ca40583372f8e30cb4d02 /index.html
parentfda6bdf1ebf59f1f86f122186ba726c1e83881f7 (diff)
downloadpurple-991fb1191a2680bc0827a85407792e95cc36356f.tar.gz
Add attempt counter and disable further play if won
Diffstat (limited to 'index.html')
-rw-r--r--index.html4
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>