Skip to content

Commit 4d32057

Browse files
authored
Update index.html
1 parent e940693 commit 4d32057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3100,7 +3100,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
31003100
document.getElementById('segment-area').innerText =
31013101
'Invalid input: must satisfy h ≤ r, l ≥ 2h, r ≥ h.';
31023102
// no return here — keep listening for further input
3103-
} else {
3103+
}
31043104
// Compute angle and area
31053105
let angle = Acos((r - h) / r);
31063106
let area = angle * r ** 2 - (r - h) * (l / 2);
@@ -3114,7 +3114,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
31143114
`Area: ${area.toFixed(5)} square units`;
31153115
}
31163116
}
3117-
}
3117+
31183118
// Attach listeners to all inputs
31193119
document.getElementById('segment-height').addEventListener('input', segmentArea);
31203120
document.getElementById('parent-radius').addEventListener('input', segmentArea);

0 commit comments

Comments
 (0)