Skip to content

Commit 1ef9650

Browse files
committed
add decimal input.
1 parent 89f7e6e commit 1ef9650

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ArithemeticGame/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
<h1>Arithmetic Game</h1>
1212
<form id="game">
1313
<p id="problem"></p>
14-
<input type="number" id="answer" placeholder="Enter your answer" />
14+
<input
15+
type="number"
16+
id="answer"
17+
placeholder="Enter your answer"
18+
step="0.01"
19+
/>
1520
<button id="submit">Submit</button>
1621
</form>
1722
<p id="result"></p>

0 commit comments

Comments
 (0)