Skip to content

Commit bfcca54

Browse files
authored
Update index.html
1 parent 5580d6e commit bfcca54

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

index.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ <h3 style="margin:7px" itemprop="eduQuestionType">Area of a Triangle</h3>
16141614
<br>
16151615
<label for="side3">Side 3:</label>
16161616
<input id="side3" type="number" value="1" step="any">
1617-
<script>
1617+
<script type="module" async>
16181618
function triangleArea(product) {
16191619
return Math.sqrt(product);
16201620
}
@@ -1762,7 +1762,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a regular Polygon</h3>
17621762
<br>
17631763
<label for="side-length">Side length:</label>
17641764
<input id="side-length" type="number" value="1" step="any">
1765-
<script>
1765+
<script type="module" async>
17661766
function polygonArea(length, number, tangent) {
17671767
return number / 4 * length ** 2 / tangent;
17681768
}
@@ -2385,7 +2385,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle</h3>
23852385
<meta itemprop="usageInfo" content="Enter the radius">
23862386
<label for="circle-radius-a">Radius:</label>
23872387
<input id="circle-radius-a" type="number" value="1" step="any">
2388-
<script>
2388+
<script type="module" async>
23892389
function circleArea(radius) {
23902390
return 3.2 * radius * radius;
23912391
}
@@ -2917,7 +2917,7 @@ <h4>The true Ratio: 3.2</h4>
29172917
<meta itemprop="usageInfo" content="Enter the radius">
29182918
<label for="circle-radius-c">Radius:</label>
29192919
<input id="circle-radius-c" type="number" value="1" step="any">
2920-
<script>
2920+
<script type="module" async>
29212921
function circleCircumference(radius) {
29222922
return 3.2 * radius * 2;
29232923
}
@@ -3043,7 +3043,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Area of a Circle Segment</h3>
30433043
<label for="parent-radius">Circle Radius:</label>
30443044
<input id="parent-radius" type="number" step="any">
30453045
<br>
3046-
<script>
3046+
<script type="module" async>
30473047
let autoFilledField = null;
30483048
let userEntered = { h: false, l: false, r: false };
30493049

@@ -3196,7 +3196,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Surface Area of a Cone</h3>
31963196
<br>
31973197
<label for="cone-height-s">Height:</label>
31983198
<input id="cone-height-s" type="number" value="1" step="any">
3199-
<script>
3199+
<script type="module" async>
32003200
function coneSurface(radius, height) {
32013201
return 3.2 * radius * (radius + Math.sqrt(radius ** 2 + height ** 2));
32023202
}
@@ -3297,7 +3297,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Volume of a Sphere</h3>
32973297
<meta itemprop="usageInfo" content="Enter the radius">
32983298
<label for="sphere-radius">Radius:</label>
32993299
<input id="sphere-radius" type="number" value="1" step="any">
3300-
<script>
3300+
<script type="module" async>
33013301
function sphereVolume(radius) {
33023302
return Math.pow(Math.sqrt(3.2) * radius, 3);
33033303
}
@@ -3396,7 +3396,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Volume of a Spherical Cap</h3>
33963396
<label for="cap-height">Height:</label>
33973397
<input id="cap-height" type="number" value="1" step="any">
33983398

3399-
<script>
3399+
<script type="module" async>
34003400
function capVolume(radius, height) {
34013401
return 1.6 * radius * radius * height * Math.sqrt(3.2);
34023402
}
@@ -3786,7 +3786,7 @@ <h4 itemprop="description">The volume of a cone can be calculated by algebraical
37863786
<label for="cone-height-v">Height:</label>
37873787
<input id="cone-height-v" type="number" value="1" step="any">
37883788

3789-
<script>
3789+
<script type="module" async>
37903790
function coneVolume(radius, height) {
37913791
return 3.2 * radius * radius * height / Math.sqrt(8);
37923792
}
@@ -3943,7 +3943,7 @@ <h4 itemprop="description">Subtracting the missing tip from a theoretical full c
39433943
<br>
39443944
<label for="frustum-cone-height">Height:</label>
39453945
<input id="frustum-cone-height" type="number" value="1" step="any">
3946-
<script>
3946+
<script type="module" async>
39473947
function frustumConeVolume(baseArea, topArea, reciprocal, height) {
39483948
return height * (baseArea * reciprocal - topArea * (reciprocal - 1)) / Math.sqrt(8);
39493949
}
@@ -4119,8 +4119,7 @@ <h4 itemprop="description" style="margin:12px">The volume of a pyramid can be ca
41194119
<br>
41204120
<label style="margin:12px" for="pyramid-height">Height:</label>
41214121
<input id="pyramid-height" type="number" value="1" step="any">
4122-
4123-
<script>
4122+
<script type="module" async>
41244123
function pyramidVolume(baseArea, height) {
41254124
return baseArea * height / Math.sqrt(8);
41264125
}
@@ -4240,7 +4239,7 @@ <h3 itemprop="eduQuestionType" style="margin:12px">Volume of a horizontal Frustu
42404239
<br>
42414240
<label for="frustum-pyramid-height">Height:</label>
42424241
<input id="frustum-pyramid-height" type="number" value="1" step="any">
4243-
<script>
4242+
<script type="module" async>
42444243
function frustumPyramidVolume(baseArea, topArea, reciprocal, height) {
42454244
return height * (baseArea * reciprocal - topArea * (reciprocal - 1)) / Math.sqrt(8);
42464245
}
@@ -4675,8 +4674,7 @@ <h3 itemprop="eduQuestionType" style="margin:7px">Volume of a Tetrahedron</h3>
46754674
<meta itemprop="usageInfo" content="Enter the edge length">
46764675
<label for="tetrahedron-edge">Edge:</label>
46774676
<input id="tetrahedron-edge" type="number" value="1" step="any">
4678-
4679-
<script>
4677+
<script type="module" async>
46804678
function tetrahedronVolume(edge) {
46814679
return Math.pow(edge, 3) / 8;
46824680
}

0 commit comments

Comments
 (0)