-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
142 lines (116 loc) · 5.25 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
<!DOCTYPE HTML>
<html>
<head>
<link rel='stylesheet' type='text/css' href='style.css' media='screen' />
<script type='text/javascript' src='calculator.js'> </script>
<meta name='viewport' content='width=device, initial-scale=1.0'>
<title>Hover Power Calculator</title>
</head>
<body onload=init()>
<form id='form_parameters'>
<div class=mainBox>
<div class=section>
<h1>Hover Power Calculator <a class=detail href=info.html>[?]</a> </h1>
<span class=alert id=critical_alert></span>
</div>
<div class=section>
<label for='alt_setting' class=label>Altimeter Setting</label> <span class=detail>(in Hg)</span><br>
<input type='number' id='altimeter_setting' value=29.92 onblur=calc_power_available() tabindex=0>
<br><br>
<label for='true_altitude' class=label>True Altitude</label> <span class=detail>(in feet)</span><br>
<input type='number' id='true_altitude' value=0 onblur=calc_power_available() tabindex=1>
<br><br>
<label for='pressure_altitude' class=label>Pressure Altitude</label><br>
<span id='pressure_altitude' class=selected_value>0</span> <span class=alert id=pressure_altitude_alert></span>
<br><br>
<label for='temperature' class=label>Temperature<label> <span class=detail>(°C)</span>
<div class=row>
<div class=column style='width: 20%'>
<span id='temperature_display' class=selected_value>0</span>
</div>
<div class=column style='width: 80%'>
<input type='range' min='-40' max='40' step='5' value='0' class=slider id='temperature' oninput=calc_power_available() tabindex=2>
</div>
</div>
<br>
<label for='wind' class=label>Wind</label> <span class=detail>(kts)</span><br>
<div class=row>
<div class=column style='width: 20%'>
<span id='wind_display' class=selected_value>0</span>
</div>
<div class=column style='width: 80%'>
<input type='range' min='0' max='30' step='5' value='0' class=slider id='wind' oninput=calc_wind() tabindex=3>
</div>
</div>
</div>
<div class=section>
<label for='aircraft' class=label>Aircraft zero-fuel weight</label><br>
<div class=row>
<div class=column>
<span id='aircraft_weight' class=selected_value>11,300<//span>
</div>
<div class=column>
<select id='aircraft' onchange=calc_auw()>
<option value='11300'>912</option>
<option value='11200'>904</option>
</select>
</div>
</div>
<br>
<label for='load' class=label>Load / Pax weight</label> <span class=detail>(+/- kg)</span><br>
<input type='number' min='0' max='2000' value='0' id='load' onblur='calc_auw()' tabindex=4><br>
<br>
<label for='fuel' class=label>Fuel</label> <span class=detail>(kg)</span><br>
<div class=row>
<div class=column style='width: 20%'>
<span id='fuel_display' class=selected_value>2000</span>
</div>
<div class=column style='width: 80%'>
<input type='range' min='0' max='4100' step='100' value='2000' class=slider id='fuel' oninput=calc_auw(true) tabindex=5>
</div>
</div>
<label for='auw' class=label>AUW</label><br>
<span id='auw' class=selected_value>13,300</span> <span class=alert id=auw_alert></span>
</div>
<div class=section>
<h2>Power Available</h2>
<div class=row style='width: 100%'>
<div class=column>Anti-Ice Off <br><span id=pa_aa_off class=selected_value>x</span></div>
<div class=column style='align: right; text-align: right;'>Anti-Ice On <br><span id=pa_aa_on class=selected_value style='text-align: right'>x</span></div>
</div>
<div class=alert id=pa_fail style='text-align: center'></span>
</div>
<div class=section>
<h2>Power Required</h2>
<div class=row style='width: 100%'>
<div class=column>Anti-Ice Off <br><span id=pr class=selected_value>x</span></div>
<div class=column style='align: right; text-align: right;'>Anti-Ice On <br><span id=pr_aa class=selected_value style='text-align: right'>x</span></div>
</div>
<div class=alert id=pr_fail style='text-align: center'></span>
</div>
</form>
</body>
</html>
<!--
<tr>
<td><label for='alt_setting'>Altimeter Setting<label></td>
<td><input type='text' id='alt_setting' value='29.92'></td>
<td>in/mg</td>
</tr>
<tr>
<td><label for='altitude'>Altitude</label></td>
<td><input type='text' id='altitude'></td>
<td>feet</td>
</tr>
<tr>
<td><label for='pressure_altitude'>Pressure Altitude</label></td>
<td><input type='text' id='pressure_altitude' disabled></td>
<td>feet</td>
</tr>
<tr><td> </td><tr>
<tr>
<td><label for='temperature'>Temperature<label></td>
<td><input type='range' min='-40' max='40' value='0' id='temperature'></td>
<td>C</td>
</tr>
-->