Skip to content

Commit ed1f87b

Browse files
authored
Update index.html
1 parent 5d3cb22 commit ed1f87b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,12 +1501,6 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
15011501
document.getElementById('segment-area').innerText = '';
15021502
return;
15031503
}
1504-
1505-
if ( ratio === 1) {
1506-
document.getElementById('segment-area').innerText =
1507-
`Area of semi-circle: ${area.toFixed(5)} square units`;
1508-
return;
1509-
}
15101504

15111505
if ( ratio > 1) {
15121506
document.getElementById('segment-area').innerText = 'A circle-segment is less than half as high as long.';
@@ -1520,6 +1514,12 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
15201514

15211515
const area = segmentArea(length, height, angle, radius);
15221516

1517+
if ( ratio === 1) {
1518+
document.getElementById('segment-area').innerText =
1519+
`Area of semi-circle: ${area.toFixed(5)} square units`;
1520+
return;
1521+
}
1522+
15231523
document.getElementById('segment-area').innerText =
15241524
`Area: ${area.toFixed(5)} square units`;
15251525
}

0 commit comments

Comments
 (0)