-
Notifications
You must be signed in to change notification settings - Fork 0
/
createTrenchOptions.js
22 lines (21 loc) · 1.21 KB
/
createTrenchOptions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function createTrenchOptions() {
document.getElementById('trenchWidthDiv').style.display = 'none';
document.getElementById('trenchHeightDiv').style.display = 'none';
document.getElementById('reserveBetweenTrenchesDiv').style.display = 'none';
document.getElementById('result-trenchSurfaceAreaDiv').style.display = 'none';
document.getElementById('result-minTrenchNumDiv').style.display = 'none';
document.getElementById('result-recTrenchNumDiv').style.display = 'none';
var fieldOrTrenches = document.getElementById('UserInput-fieldOrTrenches').value;
switch (fieldOrTrenches) {
case 'Trenches':
document.getElementById('trenchWidthDiv').style.display = 'block';
document.getElementById('trenchHeightDiv').style.display = 'block';
document.getElementById('reserveBetweenTrenchesDiv').style.display = 'block';
document.getElementById('result-trenchSurfaceAreaDiv').style.display = 'block';
document.getElementById('result-minTrenchNumDiv').style.display = 'block';
document.getElementById('result-recTrenchNumDiv').style.display = 'block';
break;
case 'Field':
break;
}
}