-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
514 lines (481 loc) · 17.7 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
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name='author' content='Sean Campbell'>
<meta name=description content="Service Calculator">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Natac's Appartment Service Calculator</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/icons.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Work+Sans:400,900'
rel='stylesheet' type='text/css'>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 text-center">
<header>
<h1>Natac's Service Calculator for Apartment Buildings</h1>
<h4>Based off the CEC 2012 Rule Book.</h4>
</header>
</div>
</div> <!-- End header row -->
</div>
<div class="container app text-center">
<div class="row">
<!-- ############## Main input #####################-->
<form role="form" id="unit_demands" class="col-xs-11">
<legend>Unit Area / Equipment Demands 8-202(1)</legend>
<div class="row">
<div class="form-group">
<label for="area" class="col-sm-12 col-md-2">Area (m2)</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="area" placeholder="79">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="range" class="col-sm-12 col-md-2">Range W</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="range"
placeholder="12000">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="heat" class="col-sm-12 col-md-2">Heat W</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="heat" placeholder="6000">
</div>
</div>
</div>
<div class="row extra-loads-wrapper">
<div class="form-group">
<label for="extra1" class="col-sm-12 col-md-2">Extra Load W</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control extra-load" id="extra1"
placeholder="4000">
</div>
</div>
<div class="form-group">
<label for="extra2" class="col-sm-12 col-md-2">Extra Load W</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control extra-load" id="extra2"
placeholder="1800">
</div>
</div>
</div>
<div class="row">
<div class="col-xs-4 col-xs-offset-4">
<button type="button" class='btn btn-info btn-block' id="add-load">
<i class="glyphicon glyphicon-plus"></i> Extra Load</button>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="a-c" class="col-sm-12 col-md-2">A/C W</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="a-c" placeholder="0">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="suite-voltage" class="col-sm-12 col-md-2">
Suite Voltage V
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="suite-voltage"
placeholder="208">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="suite-phase" class="col-sm-12 col-md-2">
Suite Phase
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="suite-phase"
placeholder="1 or 3">
</div>
</div>
</div>
</form>
</div> <!-- End form row -->
<div class="row well">
<form role="form" id="suite_answer" class="col-xs-11">
<div class="col-sm-12 col-md-2">
<button type="button" class="btn btn-primary" id="check">
<i class="glyphicon glyphicon-flash"></i> Check
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" id="user-answer"
placeholder="Suite Ampacity (2 deciaml places)">
</div>
<div class="col-sm-12 col-md-2 col-md-offset-1 ">
<button type="button" class="btn btn-warning" id="answer">
<i class="glyphicon glyphicon-education"></i> Answer
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" readonly="readonly"
id="display-suite-answer">
</div>
</form>
<div class="col-xs-10 col-xs-offset-1" id="congrats1">
</div>
</div>
<!-- ############## Start of the Owners form ############## -->
<div class="row">
<form role="form" id="owner-form" class="col-xs-11">
<legend>Owner Area Demands 8-202(4)</legend>
<div class="row">
<div class="form-group">
<label for="mis-loads" class="col-sm-12 col-md-2">Miscellaneous Loads</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="mis-loads"
placeholder="22000">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="parking" class="col-sm-12 col-md-2">Number of Parking Stalls</label>
<div class="col-sm-12 col-md-6">
<input type="text" class="form-control" name="parking"
placeholder="18" id="parking-demand">
</div>
<div class="col-sm-12 col-md-4" id="parking-wrapper">
<div class="radio col-sm-12 col-md-6">
<label for="res"><input type="radio" name="parking" id="res"
value="restricted">Restricted
</label>
</div>
<div class="radio col-sm-12 col-md-6">
<label for="unres"><input type="radio" name="parking" id="unres"
value="unrestricted">Unrestricted
</label>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="owner-heat" class="col-sm-12 col-md-2">
Owner's Heating
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-heat"
placeholder="22000">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="other-loads" class="col-sm-12 col-md-2">
Other Loads
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="other-loads"
placeholder="22000">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="owner-voltage" class="col-sm-12 col-md-2">
Owner Voltage V
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-voltage"
placeholder="208">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="owner-phase" class="col-sm-12 col-md-2">
Owner Phase
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-phase"
placeholder="1 or 3">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<div class="col-sm-12" id="install-wrapper">
<div class="radio-inline col-xs-2 col-xs-offset-4">
<label for="conduit"><input type="radio" name="install"
id="conduit" value="conduit">Conduit
</label>
</div>
<div class="radio-inline col-xs-2">
<label for="freeair"><input type="radio" name="install" id="freeair"
value="freeair">Freeair
</label>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="row well">
<p>The Owner's Panel is continuous, therefore this calculation will be base
off a derating factor of 80% for wire in conduit and 70% for wire run in free
air</p>
<form role="form" id="owner-button-form" class="col-xs-11">
<div class="col-sm-12 col-md-2">
<button type="button" class="btn btn-primary" id="owner-check">
<i class="glyphicon glyphicon-flash"></i> Check
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" id="owner-user-answer"
placeholder="Owners Ampacity (2 decimal places)">
</div>
<div class="col-sm-12 col-md-2 col-md-offset-1 ">
<button type="button" class="btn btn-warning" id="owner-answer">
<i class="glyphicon glyphicon-education"></i> Answer
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" readonly="readonly"
id="display-owner-answer">
</div>
</form>
<div class="col-xs-10 col-xs-offset-1" id="congrats2">
</div>
</div> <!-- end of owners row -->
<!-- ############## Start of the Total form ############## -->
<div class="row">
<form role="form" id="total-form" class="col-xs-11">
<legend>Main Service 8-202(3)</legend>
<p>Non-continuous Section (suites)</p>
<div class="row">
<div class="form-group unit-info">
<label for="unit-demand-1" class="col-sm-12 col-md-2">
Unit 1 Subtotal Demand
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-demand-1"
placeholder="15000" name="demand">
</div>
<label for="unit-count-1" class="col-sm-12 col-md-2">
Unit 1 Count
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-count-1"
placeholder="3" name="count">
</div>
<label for="unit-heat-1" class="col-sm-12 col-md-2">
Unit 1 Heat Demand (W)
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-heat-1"
placeholder="8000" name="heat">
</div>
</div>
</div>
<div class="row">
<div class="form-group unit-info">
<label for="unit-demand-2" class="col-sm-12 col-md-2">
Unit 2 Subtotal Demand
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-demand-2"
placeholder="25000" name="demand">
</div>
<label for="unit-count-2" class="col-sm-12 col-md-2">
Unit 2 Count
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-count-2"
placeholder="4" name="count">
</div>
<label for="unit-heat-2" class="col-sm-12 col-md-2">
Unit 2 Heat Demand (W)
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-heat-2"
placeholder="8000" name="heat">
</div>
</div>
</div>
<div class="row">
<div class="form-group unit-info">
<label for="unit-demand-3" class="col-sm-12 col-md-2">
Unit 3 Subtotal Demand
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-demand-3"
placeholder="10000" name="demand">
</div>
<label for="unit-count-3" class="col-sm-12 col-md-2">
Unit 3 Count
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-count-3"
placeholder="2" name="count">
</div>
<label for="unit-heat-3" class="col-sm-12 col-md-2">
Unit 3 Heat Demand (W)
</label>
<div class="col-sm-12 col-md-2">
<input type="text" class="form-control" id="unit-heat-3"
placeholder="8000" name="heat">
</div>
</div>
</div>
</form>
<div class="row">
<div class="col-xs-3 col-xs-offset-4">
<button type="button" class='btn btn-info btn-block' id="add-unit">
<i class="glyphicon glyphicon-plus"></i> Another Unit</button>
</div>
</div>
</div>
<div class="row well">
<form role="form" class="col-xs-11">
<div class="col-sm-12 col-md-2">
<button type="button" class="btn btn-primary" id="total-check">
<i class="glyphicon glyphicon-flash"></i> Check
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" id="total-user-answer"
placeholder="Total Watts of Non-continuous Loads">
</div>
<div class="col-sm-12 col-md-2 col-md-offset-1 ">
<button type="button" class="btn btn-warning"
id="total-answer-btn">
<i class="glyphicon glyphicon-education"></i> Answer
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" readonly="readonly"
id="display-total-answer">
</div>
</form>
<div class="col-xs-10 col-xs-offset-1" id="congrats3">
</div>
</div>
<div class="row continuous">
<form role="form" id="continuous-form" class="col-xs-11">
<label>Continuous Section (owner's) Apply 8-202(3)(e)</label>
<p class='info'>
Any loads that are to be taken at 100% (EV charging) will have to be
included by you the user afterwards</p>
<div class="row">
<div class="form-group">
<label for="owner-sec-heating" class="col-sm-12 col-md-2">
Total Owner's Heating
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-sec-heating"
placeholder="30000">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="owner-sec-parking" class="col-sm-12 col-md-2">
Owner's Parking Loads
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-sec-parking"
placeholder="13200">
</div>
</div>
</div>
<div class="row">
<div class="form-group">
<label for="owner-sec-other-loads" class="col-sm-12 col-md-2">
Owner's Other Loads
<span class="small">
(includes everything that will get 8-202(3)(e) applied)
</span>
</label>
<div class="col-sm-12 col-md-10">
<input type="text" class="form-control" id="owner-sec-other-loads"
placeholder="22000">
</div>
</div>
</div>
</form>
</div>
<div class="row well">
<form role="form" id="continuous-answer" class="col-xs-11">
<div class="col-sm-12 col-md-2">
<button type="button" class="btn btn-primary" id="continuous-check">
<i class="glyphicon glyphicon-flash"></i> Check
</button>
</div>
<div class="col-sm-3 ">
<input type="text" class="form-control" id="continuous-user-answer"
placeholder="continuous">
</div>
<div class="col-sm-12 col-md-2 col-md-offset-1 ">
<button type="button" class="btn btn-warning" id="con-answer">
<i class="glyphicon glyphicon-education"></i> Answer
</button>
</div>
<div class="col-sm-12 col-md-3 ">
<input type="text" class="form-control" readonly="readonly"
id="display-continuous-answer">
</div>
</form>
<div class="col-xs-10 col-xs-offset-1" id="congrats4">
</div>
</div>
</div> <!-- End Container for body -->
<footer class="container-fluid text-center">
<div class="row">
<div class="col-xs-12">
<p>
Application By: Sean Campbell
<i class="glyphicon glyphicon-copyright-mark"></i>
<span class="year"></span>
</p>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<h3>Contact Info</h3>
<ul class="list-unstyled list-inline">
<li><a href="http://seancampbellnatac.com/" title="Portfolio page">
<i class="collecticon collecticon-house"></i>
</a></li>
<li><a href="https://natacseanc.wordpress.com/" title="Blog">
<i class="glyphicon glyphicon-bullhorn"></i>
</a></li>
<li><a href="https://github/natac13" title="GitHub Profile">
<i class="collecticon collecticon-github"></i>
</a></li>
<li><a href="https://twitter.com/natac1311" title="Twitter Profile`">
<i class="collecticon collecticon-twitter"></i>
</a></li>
<li><a href="https://ca.linkedin.com/pub/sean-campbell/b4/862/b90">
<i class="collecticon collecticon-linkedin"></i>
</a></li>
<li><a href="http://www.freecodecamp.com/natac13"
title="Free Code Camp Profile">
<img src="css/favicon.png" alt="FCC Logo" class="img-responsive">
</a></li>
</ul>
</div>
</div>
</footer>
<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/dist/bundle.js"></script>
</body>
</html>