-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (50 loc) · 1.74 KB
/
index.html
File metadata and controls
52 lines (50 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<title>Corn Yield Estimator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<table>
<tr>
<td>Ears per 18 feet</td>
<td><input onchange="estimateYield();" type="number" id="earsPerLengthInput" value="30"/></td>
</tr>
<tr>
<td>Row Width (in.)</td>
<td><input onchange="estimateYield();" type="number" id="rowWidthInput" value="30"/></td>
</tr>
<tr>
<td>Kernels per Bushel</td>
<td><input onchange="estimateYield();" type="number" id="kernelsPerBushelInput" value="850000"/></td>
</tr>
</table>
<table>
<thead>
<tr>
<th></th>
<th>Kernels per Row</th>
<th>Rows Around per Ear</th>
</tr>
</thead>
<tbody id="tableBody">
</tbody>
<tfoot>
<tr>
<td>
<button onclick="addRow()">Add Row</button>
</td>
</tr>
</tfoot>
</table>
<div id="estimateOutput"></div>
<template id="rowTemplate">
<tr>
<td><button class="removeButton">🗑️</button></td>
<td><input onchange="estimateYield();" type="number" class="kernelsPerBandInput" value="20"/></td>
<td><input onchange="estimateYield();" type="number" class="bandsPerEarInput" value="20" /></td>
</tr>
</template>
<script src="index.js"></script>
</body>
</html>