-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
174 lines (174 loc) · 6.26 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SpaceX Launches</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-theme.min.css" />
<style>
.container {
overflow-x: auto;
}
canvas {
height: 400px;
width: 100%;
}
footer {
margin-bottom: 25px;
}
</style>
</head>
<body>
<div class="container">
<h1>
SpaceX Launches
<a class="btn btn-primary pull-right" download="SpaceX-Falcon9-Launches.png" id="download-btn"><i class="glyphicon glyphicon-download"></i> Download</a>
</h1>
</div>
<div class="container">
<canvas></canvas>
</div>
<div class="container">
<em class="help-block">Half size preview</em>
<h2>Customise</h2>
<form class="form-horizontal" role="form">
<div class="form-group">
<div class="col-sm-3">
<label for="width-range" class="control-label">Width</label>
<span class="help-block">Width of the full size image</span>
</div>
<div class="col-sm-7">
<input type="range" id="width-range" value="2400" min="800" max="3200">
</div>
<div class="col-sm-2">
<input type="text" class="form-control" id="width-value" value="2400">
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="height-range" class="control-label">Height</label>
<span class="help-block">Height of the full size image</span>
</div>
<div class="col-sm-7">
<input type="range" id="height-range" value="1000" min="600" max="2400">
</div>
<div class="col-sm-2">
<input type="text" class="form-control" id="height-value" value="1000">
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="spread-range" class="control-label">Spread</label>
<span class="help-block">Spread X axis around the current date</span>
</div>
<div class="col-sm-7">
<input type="range" id="spread-range" value="1" min="1" max="4" step="0.01">
</div>
<div class="col-sm-2">
<input type="text" class="form-control" id="spread-value" value="1">
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="start-date" class="control-label">Date Range</label>
<span class="help-block">What is the earliest and latest date you want to show</span>
</div>
<label for="start-date" class="control-label col-sm-1">From:</label>
<div class="col-sm-2">
<input type="date" class="form-control" id="start-date">
</div>
<label for="end-date" class="control-label col-sm-1">To:</label>
<div class="col-sm-2">
<input type="date" class="form-control" id="end-date">
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="future-check" class="control-label">Future Launches</label>
<span class="help-block">Show ghosts of planned launches</span>
</div>
<div class="col-sm-9">
<button class="btn btn-primary active" id="future-check" data-toggle="button">Future Launches</button>
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="now-check" class="control-label">Now Marker</label>
<span class="help-block">Show a small marker to indicate today's date</span>
</div>
<div class="col-sm-9">
<button class="btn btn-primary active" id="now-check" data-toggle="button">Now Marker</button>
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="orbit-check" class="control-label">Orbit Indicators</label>
<span class="help-block">Show a rough indication of orbit heights</span>
</div>
<div class="col-sm-9">
<button class="btn btn-primary active" id="orbit-check" data-toggle="button">Show Orbits</button>
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="scale-select" class="control-label">Scale</label>
<span class="help-block">Show certain objects for rough scale</span>
</div>
<div class="col-sm-2">
<select class="form-control" id="scale-select">
<option value="">None</option>
<option value="human">Human</option>
<option value="t-rex">T. rex</option>
<option value="bananas">100 Bananas</option>
<option value="statueofliberty">Statue of Liberty</option>
</select>
</div>
<div class="col-sm-2">
<div class="btn-group" data-toggle="buttons">
<label for="scale-layer-front-radio" class="btn btn-primary active">
In Front
<input type="radio" name="scale-layer" value="front" id="scale-layer-front-radio" checked />
</label>
<label for="scale-layer-back-radio" class="btn btn-primary">
Behind
<input type="radio" name="scale-layer" value="back" id="scale-layer-back-radio" />
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="sky-select" class="control-label">Sky</label>
<span class="help-block">Colour of the sky in the background</span>
</div>
<div class="col-sm-2">
<select class="form-control" id="sky-select">
<option value="midday">Midday</option>
<option value="day">Day</option>
<option value="twilight">Twilight</option>
<option value="night">Night</option>
<option value="midnight">Midnight</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-3">
<label for="altitude-check" class="control-label">Altitude Indication</label>
<span class="help-block">Show average altitude of payload orbit</span>
</div>
<div class="col-sm-9">
<button class="btn btn-primary active" id="altitude-check" data-toggle="button">Show Altitudes</button>
</div>
</div>
</form>
</div>
<div class="container">
<footer class="text-muted small">Source available at <a href="https://github.com/IJMacD/spacex-launches">github.com/IJMacD/spacex-launches</a>.</footer>
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/promise-0.1.1.min.js"></script>
<script src="js/spacex.js"></script>
</body>
</html>