-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.html
427 lines (424 loc) · 30.6 KB
/
Index.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
<title>Title V Bot</title>
<link rel="stylesheet" type="text/css" href="css\bot.css">
<!-- <script src="https://kit.fontawesome.com/2449b843f7.js" crossorigin="anonymous"></script> -->
</head>
<body>
<!-- <div class="topnav">
<a class="active" href="#home">Home</a>
</div> -->
<div class="backgroundImageClass">
<form id="titleVBotForm">
<div class='formFlexContainer'>
<div class='flexCol'>
<div class='flexRow'>
<fieldset id="designFlowFormFieldset" class="inputFieldset">
<legend>
Design Flow Calculation Input
</legend>
<div class="formDiv">
<label for="UserInput-establishmentType" class="formLabel"> Type of Establishment
</label><br>
<select type="text" id="UserInput-establishmentType" oninput="createUseTypeOptions()"
onfocus="createUseTypeOptions()"><br>
<option value=''></option>
<option value='Residential'>Residential</option>
<option value='Commercial'>Commercial</option>
<option value='Institutional'>Institutional</option>
</select><br>
</div>
<div id="resUseTypeDiv" style="display:none" class="formDiv">
<label for="UserInput-resUseType" class="formLabel"> Type of Use </label><br>
<select type="text" id="UserInput-resUseType" oninput="createUnitFlowOptions()"><br>
<option value='0'></option>
<option value='1'>Bed & Breakfast, without restaurant open to the public</option>
<option value='2'>Bed & Breakfast, with restaurant open to the public</option>
<option value='3'>Camp, resident, mess hall, washroom and toilets</option>
<option value='4'>Camp, day, washroom and toilets</option>
<option value='5'>Camp, day, mess hall, washroom and toilets</option>
<option value='6'>Campground, showers and toilets</option>
<option value='7'>Family Dwelling, Single</option>
<option value='8'>Family Dwelling, Multiple</option>
<option value='9'>Family Mobile Home Park</option>
<option value='10'>Motel, Hotel, Boarding House</option>
<option value='11'>Retirement Mobile Home Park</option>
<option value='12'>Housing for the Elderly</option>
<option value='13'>Work or Construction Camp</option>
</select><br>
</div>
<div id="comUseTypeDiv" style="display:none" class="formDiv">
<label for="UserInput-comUseType" class="formLabel"> Type of Use </label><br>
<select type="text" id="UserInput-comUseType" oninput="createUnitFlowOptions()"><br>
<option value='0'></option>
<option value='1'>Airport</option>
<option value='2'>Barber Shop/Beauty Salon</option>
<option value='3'>Bowling Alley</option>
<option value='4'>Country Club, with dining room</option>
<option value='5'>Country Club, snack bar or lunch room</option>
<option value='6'>Country Club, lockers and showers</option>
<option value='7'>Doctors Office</option>
<option value='8'>Dentist Office</option>
<option value='9'>Factory, Industrial Plant, Warehouse or Dry Storage Space without
Cafeteria</option>
<option value='10'>Factory, Industrial Plant, Warehouse or Dry Storage Space with
Cafeteria</option>
<option value='11'>Gasoline Station</option>
<option value='12'>Kennel/Veterinary Office</option>
<option value='13'>Lounge, Tavern</option>
<option value='14'>Marina</option>
<option value='15'>Movie Theater</option>
<option value='16'>Non-single family/automatic clothes washer</option>
<option value='17'>Office building</option>
<option value='18'>Retail Store</option>
<option value='19'>Restaurant</option>
<option value='20'>Restaurant, thruway service area</option>
<option value='21'>Restaurant, Fast Food</option>
<option value='22'>Restaurant, kitchen flow [for sizing grease trap only]</option>
<option value='23'>Service Station [no gas]</option>
<option value='24'>Skating Rink</option>
<option value='25'>Supermarkets</option>
<option value='26'>Tennis Club</option>
<option value='27'>Theater, Auditorium</option>
<option value='28'>Trailer, dump station</option>
</select><br>
</div>
<div id="instUseTypeDiv" style="display:none" class="formDiv">
<label for="UserInput-instUseType" class="formLabel"> Type of Use </label><br>
<select type="text" id="UserInput-instUseType" oninput="createUnitFlowOptions()"><br>
<option value='0'></option>
<option value='1'>Place of worship, without kitchen</option>
<option value='2'>Place of worship, with kitchen</option>
<option value='3'>Correctional Facility</option>
<option value='4'>Function Hall</option>
<option value='5'>Gymnasium</option>
<option value='6'>Hospital</option>
<option value='7'>Nursing Home/Rest Home</option>
<option value='8'>Assisted Living Facilities</option>
<option value='9'>Public Park, toilet waste only</option>
<option value='10'>Public Park, bathhouse, showers and flush toilets</option>
<option value='11'>Day Care Facility</option>
</select><br>
</div>
<div id="schoolUseTypeDiv" style="display:none" class="formDiv">
<label for="UserInput-schoolUseType" class="formLabel"> Type of Use </label><br>
<select type="text" id="UserInput-schoolUseType" oninput="createUnitFlowOptions()"><br>
<option value='0'></option>
<option value='1'>Elementary School, without cafeteria, gymnasium or showers
</option>
<option value='2'>Elementary School, with cafeteria, but no gymnasium or showers
</option>
<option value='3'>Elementary School, with cafeteria, gymnasium and showers</option>
<option value='4'>Secondary/Middle School, without cafeteria, gymnasium or showers
</option>
<option value='5'>Secondary/Middle School, with cafeteria, but no gymnasium or
showers</option>
<option value='6'>Secondary/Middle School, with cafeteria, gymnasium and showers
</option>
<option value='7'>Boarding Schools, Colleges</option>
</select><br>
</div>
<div id="flowUnitDiv" style="display:none" class="formDiv">
<label for="UserInput-flowUnitNumber" class="formLabel"> Number of <span
id="flowUnitLabelSpan"></span> </label><br>
<input type="text" id="UserInput-flowUnitNumber" onblur="validateFlowUnitNumber()"><br>
</div>
<div id="flowUnitAddDiv" style="display:none" class="formDiv">
<label for="UserInput-flowUnitAddNumber" class="formLabel"> Number of <span
id="flowUnitAddLabelSpan"></span> </label><br>
<input type="text" id="UserInput-flowUnitAddNumber"
onblur="validateFlowUnitAddNumber()"><br>
</div>
<button id='button-designFlowForm-cancel' type="button" onclick="clearCalcDesignForm()">
Cancel </button>
<button id='button-designFlowForm-runProgram' type="button" onclick="calcDesignFlow()">
Calculate My Design Flow
</button>
</fieldset>
<!-- </form>
<form id="networkLayoutResultForm"> -->
<fieldset id="networkLayoutResultsFieldset" class="resultFieldset">
<legend>
Design Flow Calculation Results
</legend>
<div class="formDiv" id="result-flowUnitDiv">
<label for="result-flowUnit" class="formLabel"> Flow per <span
id="result-flowUnitLabelSpan"></span> </label><br>
<span class="resultSpan"><output type="number" id="result-flowUnit"></output> gallons per day</span><br>
</div>
<div class="formDiv" id="result-flowUnitAddDiv" style="display: none;">
<label for="result-flowUnitAdd" class="formLabel"> Flow per <span
id="result-flowUnitAddLabelSpan"></span> </label><br>
<span class="resultSpan"><output type="number" id="result-flowUnitAdd"></output> gallons per day</span><br>
</div>
<div class="formDiv">
<label for="result-designFlow" class="formLabel"> Total Design Flow </label><br>
<span class="resultSpan"><output type="number" id="result-designFlow"></output> gallons per day</span><br>
</div>
</fieldset>
</div>
<div class='flexRow'>
<fieldset id="networkLayoutFieldset" class="inputFieldset">
<legend>
Soil Absorption System Sizing Input
</legend>
<div class="formDiv">
<label for="UserInput-designFlow" class="formLabel"> Design Flow </label><br>
<input type="number" id="UserInput-designFlow" required placeholder="gallons per day"
oninput="validateDesignFlow()"><br>
</div>
<div class="formDiv">
<label for="UserInput-fieldOrTrenches" class="formLabel"> Is your Soil Absorption System a field or
Trenches? </label><br>
<select type="text" id="UserInput-fieldOrTrenches" oninput="createTrenchOptions()"><br>
<option value=''></option>
<option value='Trenches'>Trenches</option>
<option value='Field'>Field</option>
</select><br>
</div>
<div id='trenchWidthDiv' style="display:none" class="formDiv">
<label for="UserInput-trenchWidth" class="formLabel"> Trench Width </label><br>
<input type="number" id="UserInput-trenchWidth" required placeholder="feet"
oninput="validateTrenchWidth()"><br>
</div>
<div id='trenchHeightDiv' style="display:none" class="formDiv">
<label for="UserInput-trenchHeight" class="formLabel"> Trench Height </label><br>
<input type="number" id="UserInput-trenchHeight" required placeholder="feet"
oninput="validateTrenchHeight()"><br>
</div>
<div id='reserveBetweenTrenchesDiv' style="display:none" class="formDiv">
<label for="UserInput-reserveAreaBetweenTrenches" class="formLabel"> Is the reserve area between the
trenches? </label><br>
<select type="text" id="UserInput-reserveAreaBetweenTrenches"><br>
<option value="Yes"> Yes </option>
<option value="No"> No </option>
</select>
</div>
<div class="formDiv">
<label for="UserInput-sasAreaLength" class="formLabel"> Desired Maximum SAS Area Length </label><br>
<input type="number" id="UserInput-sasAreaLength" required placeholder="feet"
onchange="validateDesiredLength()"><br>
</div>
<div class="formDiv">
<label for="UserInput-altBed" class="formLabel"> Are you using an alternating bed system? </label><br>
<select type="text" id="UserInput-altBed" oninput="createAltBedOptions()"><br>
<option value='Yes'>Yes</option>
<option value='No'>No</option>
</select><br>
</div>
<div class="formDiv">
<label for="UserInput-percRate" class="formLabel"> Percolation Rate </label><br>
<input type="number" id="UserInput-percRate" required placeholder="inches per hour"
onchange="createSoilClassOptions()"><br>
</div>
<div class="formDiv">
<label for="UserInput-soilClass" class="formLabel"> Soil Class </label><br>
<select type="text" id="UserInput-soilClass" required>
<option value=""></option>
<option value="I" disabled> I </option>
<option value="II" disabled> II </option>
<option value="III" disabled> III </option>
<option value="IV" disabled> IV </option>
</select>
<br>
</div>
<button id='button-networkLayoutForm-cancel' type="button"
onclick="clearSasNetworkLayout()"> Cancel </button>
<button id='button-networkLayoutForm-runProgram' type="button" onclick="sasNetworkLayout()">
Size My SAS
</button>
</fieldset>
<!-- </form>
<form id="networkLayoutResultForm"> -->
<fieldset id="networkLayoutResultsFieldset" class="resultFieldset">
<legend>
Soil Absorption System Sizing Results
</legend>
<div id='result-LTARDiv' class="formDiv">
<label for="result-LTAR" class="formLabel"> Long Term Acceptance Rate(LTAR) </label><br>
<span class="resultSpan"><output type="number" id="result-LTAR"></output> gallons per day per SF</span><br>
</div>
<div id='result-reqSASAreaDiv' class="formDiv">
<label for="result-reqSasSurfArea" class="formLabel"> Minimum Required SAS Surface Area </label><br>
<span class="resultSpan"><output type="number" id="result-reqSasSurfArea"></output> square feet</span><br>
</div>
<div id='result-minTrenchNumDiv' style="display:none" class="formDiv">
<label for='result-minTrenchNum' class="formLabel"> Minimum Required Number of Trenches </label><br>
<span class="resultSpan"><output type="number" id='result-minTrenchNum'></span><br>
</div>
<div id='result-recTrenchNumDiv' style="display:none" class="formDiv">
<label for='result-recTrenchNum' class="formLabel"> Provided Number of Trenches per Area </label><br>
<span class="resultSpan"><output type="number" id='result-recTrenchNum'></output></span><br>
</div>
<div id='result-trenchSurfaceAreaDiv' style="display:none" class="formDiv">
<label for='result-recTrenchSurfaceArea' class="formLabel"> Surface Area per Trench </label><br>
<span class="resultSpan"><output type="number" id='result-recTrenchSurfaceArea'></output> square feet</span><br>
</div>
<div id='result-recLengthDiv' class="formDiv">
<label for='result-recLength' class="formLabel"> Provided SAS Area Length </label><br>
<span class="resultSpan"><output type="number" id='result-recLength'></output> feet</span><br>
</div>
<div id='result-SASWidthDiv' class="formDiv">
<label for='result-minimumSASAreaWidth' class="formLabel"> Provided Width per Area </label><br>
<span class="resultSpan"><output type="number" id='result-minimumSASAreaWidth'></output> feet</span><br>
</div>
<div id='result-surfaceAreaDiv' class="formDiv">
<label for='result-providedSurfaceArea' class="formLabel"> Overall Provided SAS Surface Area </label><br>
<span class="resultSpan"><output type="number" id='result-providedSurfaceArea'></output> square feet</span><br>
</div>
</fieldset>
</div>
<!-- </form> -->
<div class='flexRow'>
<!-- <form id="pressureNetworkForm"> -->
<fieldset id="pressureNetworkFieldset" class="inputFieldset">
<legend>
Pressure Network Sizing Input
</legend>
<div class="formDiv">
<label for="UserInput-latSpacing" class="formLabel"> Lateral Spacing </label><br>
<input type="number" id="UserInput-latSpacing" required placeholder="feet"
onchange="validateLatSpacing()" min="0"><br>
</div>
<div class="formDiv">
<label for="UserInput-distalHead" class="formLabel"> Desired Distal Head </label><br>
<input type="number" id="UserInput-distalHead" required onchange="validateDistalHead()"
placeholder="feet" min="0" step="0.5"><br>
</div>
<div class="formDiv">
<label for="UserInput-perfSpacing" class="formLabel"> Desired Perforation Spacing </label><br>
<input type="number" id="UserInput-perfSpacing" required
onchange="validatePerfSpacing()" placeholder="feet" step="0.5"><br>
</div>
<div class="formDiv">
<label for="UserInput-perfDia" class="formLabel"> Desired Perforation Diameter </label><br>
<input type="number" id="UserInput-perfDia" required onchange="validatePerfDia()"
placeholder="inches" step="0.01"><br>
</div>
<div class="formDiv">
<label for="UserInput-manifoldType" class="formLabel"> Are you using an end manifold or center manifold?
</label><br>
<select type="text" id="UserInput-manifoldType"><br>
<option value=''></option>
<option value='End'>End</option>
<option value='Center'>Center</option>
</select>
</div>
<div class="formDiv">
<label for="UserInput-pipeMaterial" class="formLabel"> What type of material is your lateral piping?
</label><br>
<select type="text" id="UserInput-pipeMaterial"><br>
<option value=''></option>
<option value='pvc'>polyvinyl chloride (PVC)</option>
<option value='hdpe'>high density polyethylene (HDPE)</option>
<option value='abs'>acrylonitrile-butadiene-styrene (ABS)</option>
</select>
</div>
<div class="formDiv">
<label for="UserInput-latSize" class="formLabel"> Desired Lateral Size </label><br>
<select type="text" id="UserInput-latSize" required onfocus="createLatSizeOptions()">
<option value="" style="display:block"></option>
<option value="1" style="display:block"> 1" </option>
<option value="1.25" style="display:block"> 1-1/4" </option>
<option value="1.5" style="display:block"> 1-1/2" </option>
<option value="2" style="display:block"> 2" </option>
<option value="3" style="display:block"> 3" </option>
<option value="4" style="display:block"> 4" </option>
</select><br>
</div>
<div class="formDiv">
<label for="UserInput-maniSize" class="formLabel"> Desired Manifold Size </label><br>
<select type="text" id="UserInput-maniSize" required onfocus="createManiSizeOptions()">
<option value="" style="display:block"></option>
<option value="1" style="display:block"> 1" </option>
<option value="1.25" style="display:block"> 1-1/4" </option>
<option value="1.5" style="display:block"> 1-1/2" </option>
<option value="2" style="display:block"> 2" </option>
<option value="3" style="display:block"> 3" </option>
<option value="4" style="display:block"> 4" </option>
<option value="5" style="display:block"> 5" </option>
<option value="6" style="display:block"> 6" </option>
<option value="8" style="display:block"> 8" </option>
<option value="10" style="display:block"> 10" </option>
<option value="12" style="display:block"> 12" </option>
<option value="14" style="display:block"> 14" </option>
<option value="16" style="display:block"> 16" </option>
<option value="18" style="display:block"> 18" </option>
</select><br>
</div>
<button id='button-networkLayoutForm-cancel' type="button"
onclick="clearPressureNetworkForm()"> Cancel </button>
<button id='button-networkLayoutForm-pressureNetworkButton' type="button"
onclick="pressureNetworkSizing()">
Size My Pressure Network
</button>
</fieldset>
<fieldset id="pressureNetworkResultsFieldset" class="resultFieldset">
<legend>
Pressure Network Sizing Results
</legend>
<div class="formDiv">
<label for="result-perfNum" class="formLabel"> Number of Perforation per Lateral </label><br>
<span class="resultSpan"><output type="number" id="result-perfNum"></output></span><br>
</div>
<div class="formDiv">
<label for="result-perfDis" class="formLabel"> Perforation Discharge Rate </label><br>
<span class="resultSpan"><output type="number" id="result-perfDis"></output> gallons per minute</span><br>
</div>
<div class="formDiv">
<label for="result-latNum" class="formLabel"> Number of Laterals </label><br>
<span class="resultSpan"><output type="number" id="result-latNum"></output></span><br>
</div>
<div class="formDiv">
<label for="result-latLength" class="formLabel"> Length of Laterals </label><br>
<span class="resultSpan"><output type="number" id="result-latLength"></output> feet</span><br>
</div>
<div class="formDiv">
<label for="result-latDis" class="formLabel"> Lateral Discharge Rate </label><br>
<span class="resultSpan"><output type="number" id="result-latDis"></output> gallons per minute</span><br>
</div>
<div class="formDiv">
<label for="result-minPumpDisRate" class="formLabel"> Minimum Pump Discharge Rate </label><br>
<span class="resultSpan"><output type="number" id="result-minPumpDisRate"></output> gallons per minute</span><br>
</div>
<div class="formDiv">
<label for="result-latPipingVol" class="formLabel"> Lateral Piping Volume </label><br>
<span class="resultSpan"><output type="number" id="result-latPipingVol"></output> gallons</span><br>
</div>
<div class="formDiv">
<label for="result-minDoseVol" class="formLabel"> Minimum Dosing Volume </label><br>
<span class="resultSpan"><output type="number" id="result-minDoseVol"></output> gallons</span><br>
</div>
<div class="formDiv">
<label for="result-maxDoseVol" class="formLabel"> Maximum Dosing Volume </label><br>
<span class="resultSpan"><output type="number" id="result-maxDoseVol"></output> gallons</span><br>
</div>
</fieldset>
</div>
</div>
</div>
</form>
</div>
</body>
<footer>
<script src="DesignFlowCalculator.js">
</script>
<script src="TitleVBotFormValidation.js">
</script>
<script src="createTrenchOptions.js">
</script>
<script src="createAltBedOptions.js">
</script>
<script src="createSoilClassOptions.js">
</script>
<script src="createLatSizeOptions.js">
</script>
<script src="createManiSizeOptions.js">
</script>
<script src="SASBot.js">
</script>
<script src="pressureNetworkBot.js">
</script>
</footer>