-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVolumes.html
161 lines (141 loc) · 4.83 KB
/
Volumes.html
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
<title>GarThor's Volume Calculator</title>
<head>
<style>
table,
th,
td {
border: 1px solid black;
border-collapse: collapse;
}
.slide {
height: 0px;
width: 0px;
visibility: hidden;
-webkit-transition: height 500ms ease;
/* Add vendor prefixes for cross-browser support */
-moz-transition: height 500ms ease;
-ms-transition: height 500ms ease;
-o-transition: height 500ms ease;
transition: height 500ms ease;
}
</style>
</head>
<body>
<p>
</p>
<div id="Type-Dropdown">
<label for="Primitive">Material: </label>
<select name="Primitive" id="Primitive" onchange="ChangePrimative()">
<option name="cube">cube</option>
<option name="cylinder">cylinder</option>
</select>
</div>
<div id="Cube_Inputs" class="slide">
Mold Box:
<table>
<tr>
<td>X: </td>
<td><input id="X" tabindex="1" size=26></td>
</tr>
<tr>
<td>Y: </td>
<td><input id="Y" tabindex="1" size=26></td>
</tr>
<tr>
<td>Z: </td>
<td><input id="Z" tabindex="1" size=26></td>
</tr>
<tr>
<td>Units: </td>
<td>
<select name="CubeMoldBoxUnits" id="CubeMoldBoxUnits" onchange="ChangeMoldBoxUnits()">
<option name="inch">inches</option>
<option name="cm">centimeters</option>
</select>
</td>
</tr>
</table>
</div>
<div id="Cylinder_Inputs" class="slide">
Mold Cylinder!
<table>
<tr>
<td>Radius: </td>
<td><input id="Radius" tabindex="1" size=26></td>
</tr>
<tr>
<td>Height: </td>
<td><input id="Height" tabindex="1" size=26></td>
</tr>
<tr>
<td>Units: </td>
<td>
<select name="CylinderMoldBoxUnits" id="CylinderMoldBoxUnits" onchange="ChangeMoldBoxUnits()">
<option name="inch">inches</option>
<option name="cm">centimeters</option>
</select>
</td>
</tr>
</table>
</div>
<p></p>
<div id="MoldVolume_div">
<table>
<tr>
<td>Calculated Mold Volume: </td>
<td><input id="MoldVolume" tabindex="1" size=26></td>
<td>
<select aria-label="Units" name="MoldVolumeUnits" id="MoldVolumeUnits" onchange="ChangeMoldVolumeUnits()">
<option value = "cubic-inch" name = "cubic-inch">cubic inches</option>
<option value = "cubic-cm" name = "cubic-cm" >cubic centimeters</option>
<option value = "oz" name = "oz" >ounce</option>
</select>
</td>
</tr>
</table>
</div>
<p></p>
<div id="ObjVolume">
<table>
<tr>
<td>Cast Object Volume: </td>
<td><input id="ObjVol" tabindex="1" size=26></td>
<td>
<select name="ObjVolUnits" id="Primitive" onchange="ChangeObjVolUnits()">
<option name="cubic-inch">cubic inches</option>
<option name="cubic cm">cubic centimeters</option>
<option name="oz">ounce</option>
</select>
</td>
</tr>
</table>
</div>
<p></p>
<div id="Output">
<table>
<tr>
<td>Silicone: </td>
<td><input id="SiliconeVolume" tabindex="1" size=26></td>
<td>
<select aria-label="Units" name="SiliconeUnits" id="SiliconeUnits" onchange="ChangeSiliconeUnits(event)">
<option name="cubic-inch" value="cubic-inch" >cubic inches</option>
<option name="cubic-cm" value="cubic-cm" >cubic centimeters</option>
<option name="fl-oz" value="fl-oz" >fluid ounce</option>
</select>
</td>
</tr>
</table>
</div>
<p></p>
<button type="button" onclick="CalculateVolumes()">Give me volume or give me death!</button><br>
<p>
</p>
<div id="Debug"></div>
<p></p>
<script src="Volumes.js"></script>
<br><br>
v 1.0.0.1
</body>
</html>