-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
119 lines (115 loc) · 5.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Tunguska Event</title>
<!-- Bootstrap -->
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Navigator <small>A suborbital hop calculator</small></h1>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Input</h3>
</div>
<form class="panel-body" id="form_input">
<div class="form-group">
<label for="starting_position" class="control-label">Starting Position <small>Example: -37.1336 N, 109.3768 E</small></label>
<input type="text" id="starting_position" class="form-control" value="10.0 N, 0.0 E"/>
<p class="help-block">Negative values or S or W acceptable.</p>
</div>
<div class="form-group">
<label for="starting_asl" class="control-label">Starting Altitude Above Sea Level <small>Example: 213m</small></label>
<input type="text" id="starting_asl" class="form-control" value="0m"/>
</div>
<div class="form-group">
<label for="target_position" class="control-label">Target Position <small>Example: 37.1336 S, -109.3768 W</small></label>
<input type="text" id="target_position" class="form-control" value="0.0 N, 0.0 E"/>
<p class="help-block">Negative values or S or W acceptable.</p>
</div>
<div class="form-group">
<label for="target_asl" class="control-label">Target Altitude Above Sea Level <small>Example: 213m</small></label>
<input type="text" id="target_asl" class="form-control" value="0m"/>
</div>
<div class="form-group">
<label for="body_select" class="control-label">Body</label>
<select class="form-control" id="body_select">
<optgroup label="Stock System">
<option value="bop">Bop</option>
<option value="dres">Dres</option>
<option value="duna">Duna</option>
<option value="eeloo">Eeloo</option>
<option value="eve">Eve</option>
<option value="gilly">Gilly</option>
<option value="ike">Ike</option>
<option value="jool">Jool</option>
<option value="kerbin">Kerbin</option>
<option value="laythe">Laythe</option>
<option value="minmus">Minmus</option>
<option value="moho">Moho</option>
<option value="mun" selected>Mun</option>
<option value="pol">Pol</option>
<option value="tylo">Tylo</option>
<option value="vall">Vall</option>
</optgroup>
</select>
</div>
<div class="btn-group">
<button type="button" id="submit" class="btn btn-success">Calculate</button>
</div>
</form>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Trajectory</h3>
</div>
<form class="panel-body">
<div class="form-group">
<label for="heading_output" class="control-label">Heading (degrees clockwise from North)</label>
<input type="text" id="heading_output" class="form-control" disabled />
</div>
<div class="form-group">
<label for="pitch_output" class="control-label">Pitch (degrees)</label>
<input type="text" id="pitch_output" class="form-control" disabled />
</div>
<div class="form-group">
<label for="deltav_output" class="control-label">Delta-V Required</label>
<input type="text" id="deltav_output" class="form-control" disabled />
</div>
<div class="form-group">
<label for="v_liftoff_output" class="control-label">Velocity at Lift-off</label>
<input type="text" id="v_liftoff_output" class="form-control" disabled />
</div>
<div class="form-group">
<label for="v_impact_output" class="control-label">Velocity at Impact</label>
<input type="text" id="v_impact_output" class="form-control" disabled />
</div>
</form>
</div>
</div>
</div>
</div>
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<script src="./node_modules/jquery-validation/dist/jquery.validate.min.js"></script>
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="./script.js"></script>
</body>
</html>