-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
287 lines (253 loc) · 12.9 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
<!doctype html>
<html lang="en">
<head>
<title>Fly Space-A Flight Finder</title>
<meta name="Description" content="Space Available flight schedule lookup and signup for US military members. Flights updated in real time." />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="apple-itunes-app" content="app-id=1351293665">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-select.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/location-dropdown.css" rel="stylesheet">
<link href="css/flights-view.css" rel="stylesheet">
<script type="text/javascript" src="js/polyfills.js"></script>
<script type="text/javascript" src="js/es5-shim.min.js"></script>
<script type="text/javascript" src="js/es6-shim.min.js"></script>
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="js/moment-with-locales.min.js"></script>
<script type="text/javascript" src="js/moment-timezone-with-data.min.js"></script>
<script type="text/javascript" src="js/disclaimer.js"></script>
<script type="text/javascript" src="js/handlers.js"></script>
<script type="text/javascript" src="js/ui-states.js"></script>
<script type="text/javascript" src="js/spacea.js"></script>
<script type="text/javascript" src="js/email-template.js"></script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Fly Space-A",
"url": "https://flyspacea.com",
"sameas": [
"https://facebook.com/flyspacea",
"https://github.com/flyspacea"
],
"logo": "https://flyspacea.com/assets/art/flyspacea-logo-transparent.png",
"foundingDate": "2018",
"description": "Next generation Space Available flight schedule lookup and signup for US military members. Flights updated in real time."
}
</script>
</head>
<body>
<div class="container" id="flights-container">
<div class="row" id="flights-filter-row">
<div class="col-sm-5">
<!-- Uncomment to use bootstrap dropdown menu + uncomment commented code in ui-states.js
<div class="btn-group" id="location-dropdown-btn-group">
<button class="btn btn-secondary btn-lg dropdown-toggle disabled" id="location-dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>…</span></button>
<div class="dropdown-menu">
<h6 class="dropdown-header" id="location-dropdown-menu-header">72 HR flight locations ⚠</h6>
<a class="dropdown-item" href="#">…</a>
<a class="dropdown-item" href="#">…</a>
</div>
</div>
-->
<div id="location-dropdown-btn-group">
<select class="selectpicker" id="location-dropdown-btn" data-width="100%" data-style="btn-secondary" data-live-search="true" title="Select a Space-A location">
<option value="">Latest Flights</option>
</select>
</div>
</div>
<div class="col-sm-5">
<div class="btn-group btn-group-toggle" id="direction-toggle-btn-group" data-toggle="buttons">
<!--
To check radio button
$('input[name=flightDirection][value=departures]').prop("checked", true);
$('input[name=flightDirection][value=departures]').parent().addClass('active');
$('input[name=flightDirection][value=departures]').prop("checked");
-->
<label class="btn btn-lg btn-secondary disabled" id="departures-label">
<input type="radio" name="flightDirection" value="departures" autocomplete="off"> Departures
</label>
<label class="btn btn-lg btn-secondary disabled" id="arrivals-label">
<input type="radio" name="flightDirection" value="arrivals" autocomplete="off"> Arrivals
</label>
</div>
</div>
<div class="col-sm-2">
<div class="btn-group" id="location-options-btn-group" data-toggle="buttons">
<!-- Facebook SVG icon -->
<button class="btn btn-lg btn-primary" id="terminal-facebook-page-btn" style="padding-top:0px;padding-bottom:0px;padding-left: 0px; padding-right: 0px;font-size: 0.5rem; width:50%">
<a href="#" class="" id="" title="Terminal Facebook Page" style="height: 2em; display: block; width: 2em; margin: auto;"><svg viewBox="0 0 512 512" style="fill: white"><path d="M211.9 197.4h-36.7v59.9h36.7V433.1h70.5V256.5h49.2l5.2-59.1h-54.4c0 0 0-22.1 0-33.7 0-13.9 2.8-19.5 16.3-19.5 10.9 0 38.2 0 38.2 0V82.9c0 0-40.2 0-48.8 0 -52.5 0-76.1 23.1-76.1 67.3C211.9 188.8 211.9 197.4 211.9 197.4z"/></svg></a><span id="terminal-facebook-page-title">Fly Space-A</span><br/>FB Page
</button>
<button class="btn btn-lg btn-info" id="email-template-btn" data-toggle="modal" data-target="#emailTemplateModal" style="padding-top: 0px;padding-bottom: 0px;padding-left: 0px; padding-right: 0px;font-size: 0.5rem; width:50%"">
<a href="#" class="" title="Flight Email Sign Up template" style="height: 2em; display: block; width: 2em; margin: auto;" title="Space-A flight email sign up template" data-toggle="tooltip"><svg viewBox="0 0 512 512" style="fill: white"><path d="M101.3 141.6v228.9h0.3 308.4 0.8V141.6H101.3zM375.7 167.8l-119.7 91.5 -119.6-91.5H375.7zM127.6 194.1l64.1 49.1 -64.1 64.1V194.1zM127.8 344.2l84.9-84.9 43.2 33.1 43-32.9 84.7 84.7L127.8 344.2 127.8 344.2zM384.4 307.8l-64.4-64.4 64.4-49.3V307.8z"/></svg></a>Flight<br/>Sign Up
</button>
<!--
<button class="btn btn-lg btn-secondary" id="" style="padding-top: 0px;padding-bottom: 0px; padding-left: 0px; padding-right: 0px; width:30%;">
<div class="fb-like" data-href="https://facebook.com/flyspacea" data-layout="box_count" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div>
</button>
-->
</div>
</div>
</div>
<div class="row" id="progress-bar-row">
<div class="col col-offset-1">
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" id="loading-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
<span>Javascript must be enabled to view flights.</span>
</div>
</div>
</div>
</div>
<div class="row" id="flights-view-row">
<div class="col col-offset-1 table-responsive">
<table class="table disabled" id="flights-view-table">
<thead id="flights-view-table-head">
<tr>
<th scope="col">Roll Call</th>
<th scope="col">Location</th>
<th scope="col">Seats</th>
<th scope="col">…</th>
</tr>
</thead>
<tbody id="flights-view-table-body">
<!--
<tr class="flights-view-date-table-row">
<th>…</th>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th>…</th>
<td>…</td>
<td>…</td>
<td>…</td>
</tr>
<tr>
<th>…</th>
<td>…</td>
<td>…</td>
<td>…</td>
</tr>
-->
<tr>
<th>…</th>
<td>…</td>
<td>…</td>
<td>…</td>
</tr>
</tbody>
</table>
</div>
</div>
<hr class="footer-hrule"/>
<div class="row" id="info-footer-row">
<div><a href="https://facebook.com/flyspacea">About Fly Space-A</a></div> <div><a href="https://itunes.apple.com/us/app/fly-space-a/id1351293665?ls=1&mt=8">iOS app</a></div> <div><a href="https://play.google.com/store/apps/details?id=com.ansonliu.flyspacea">Android app</a></div> <div><a href="http://ansonliu.com">Hire Me</a></div>
<div class="footer-fb-elements">
<div class="fb-login-button" data-size="medium" data-button-type="login_with" data-show-faces="false" data-auto-logout-link="true" data-use-continue-as="false"></div>
<div class="fb-like" data-href="https://facebook.com/flyspacea" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="photoReportModal" tabindex="-1" role="dialog" aria-labelledby="photoReportModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="photoReportModalLabel">Report Flight Data Issue</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<label for="message-text" class="col-form-label">List missing/wrong locations or other issue:</label>
<textarea class="form-control" id="message-text"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="reportSubmit">Submit</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="emailTemplateModal" tabindex="-1" role="dialog" aria-labelledby="emailTemplateModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="">Space-A Flight Email Sign Up Template</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h3>General steps for Space-A sign up</h3>
<ol>
<li>Determine eligibility and <a href="http://www.amc.af.mil/Home/AMC-Travel-Site/Space-A-Travel-Categories/">category</a>.</li>
<li>Find a flight on Fly Space-A and verify the flight on the terminal's Facebook page or website.</li>
<li>Email, call, or fax <a href="http://www.amc.af.mil/Portals/12/documents/AFD-140926-014.pdf">AMC Form 140</a> or equivalent information to the terminal. See terminal's facebook page for specific contact info.</li>
<li>Go to terminal the day of flight and inquire about flight.</li>
<li><a href="http://www.amc.af.mil/Home/AMC-Travel-Site/">Click for Official Space-A site</a></li>
</ol>
<label for="message-text" class="col-form-label">AMC Form 140 equivalent email template below. You may Copy & Paste into your email:</label>
<textarea class="form-control" id="message-text" readonly></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- Disclaimer -->
<div class="alert alert-warning disclaimer" role="alert">
<h3>What is Fly Space-A?</h3>
<p>Fly Space-A shows you upcoming flights for Space-A and provides sign up email template for eligible passengers. </p>
<p>Flights can be filtered by location, departure, and arrival; saving time from reading every AMC Space-A site. </p>
<p>Space Available flight is a privilege for members of the US DoD to be transported on DoD aircraft when capacity allows. </p>
<p>Fly Space-A analyzes official <a href="http://www.amc.af.mil/Home/AMC-Travel-Site/" class="alert-link">USAF AMC public sites</a> to find flights. Algorithms may be inaccurate at times due to social media post format, terminal personnel updating/removing social media posts, and constrained computing power. </p>
<p>All data is provided as is and the user is responsible for verifying any data and flight information with offical sources.</p>
<p>Fly Space-A is NOT endorsed by the U.S. GOVERNMENT. For more information regarding Space-Available flights and eligibility, <a href="http://www.amc.af.mil/Home/AMC-Travel-Site/" class="alert-link">click here.</a></p>
<br/>
<button type="button" class="btn btn-primary" id="disclaimer-btn">I Understand</button>
</div>
<!-- FB SDK include for like box -->
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '522755171230853',
cookie : true,
xfbml : true,
version : 'v3.0'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
/**
* This function will log selectedLocation App Event
* @param {string} location
*/
function logSelectedLocationEvent(location) {
var params = {};
params['location'] = location;
FB.AppEvents.logEvent('selectedLocation', null, params);
}
function logSelectedSourceEvent(origin, destination) {
var params = {};
params['origin'] = origin;
params['destination'] = destination;
FB.AppEvents.logEvent('selectedSource', null, params);
}
</script>
</body>
</html>