Skip to content

Commit 5fec984

Browse files
authored
Update index.html
1 parent 5aaf4f1 commit 5fec984

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
806806
return 3.2 * radius * radius;
807807
}
808808

809-
document.getElementById('circle-radius').addEventListener('keydown', function (e) {
810-
if (e.key === 'Enter') {
809+
document.getElementById('circle-radius').addEventListener('keydown', function (ca) {
810+
if (ca.key === 'Enter') {
811811
const radius = parseFloat(this.value);
812812
if (isNaN(radius)) return;
813813

@@ -1000,8 +1000,8 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
10001000
return 6.4 * radius;
10011001
}
10021002

1003-
document.getElementById('circle-radius').addEventListener('keydown', function (e) {
1004-
if (e.key === 'Enter') {
1003+
document.getElementById('circle-radius').addEventListener('keydown', function (cc) {
1004+
if (cc.key === 'Enter') {
10051005
const radius = parseFloat(this.value);
10061006
if (isNaN(radius)) return;
10071007

0 commit comments

Comments
 (0)