-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (83 loc) · 4.62 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
<!DOCTYPE html>
<html>
<head>
<title>FSEconomy All-In Mission Plotter</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">FSEconomy All-In Mission Plotter</a>
</nav>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Why is your access key needed?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p> This tool needs your FSEconomy access key in order to be able to request the relevant information.</p>
<p>The code is open source and runs in your browser, so your key isn't sent anywhere. For technical reasons, an open-source <a href="https://cors-anywhere.herokuapp.com/">proxy</a> is used to enable the requests.</p>
<p>Get your access key from FSEconomy <a href="https://server.fseconomy.net/datafeeds.jsp">here</a>.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="input" class="jumbotron centered">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Access Key</span>
</div>
<input type="text" class="form-control" id="input-access-key">
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#exampleModal">
Why the access key?
</button>
</div>
<div class="form-group">
<select class="form-control" id="plane-select"></select>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="saveDataTick" onclick="tickBoxTicked()">
<label class="form-check-label" for="saveDataTick">Use a cookie to save your inputs for next time</label>
</div>
</br>
<button id="btn-plot" type="button" class="btn btn-success" onclick="plot()">Plot</button>
<div class="btn-group">
<button id="btn-show-map" type="button" class="btn btn-success hidden" onclick="swapMapTable('map')">Map</button>
<button id="btn-show-table" type="button" class="btn btn-secondary hidden" onclick="swapMapTable('table')">Table</button>
</button>
</div>
</div>
<div id="map-jumbo" class="jumbotron centered">
<div id="map" class="maximised transition"></div>
<div id="table" class="minimised transition">
<table id="mission-table"></table>
</div>
</div>
<div id="footer" class="text-center">
Code on <a href="https://github.com/felixgravila/fseconomy-plot-missions"><i class="fa fa-github" aria-hidden="true"></i> github</a>
</div>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" crossorigin=""></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="jquery.csv.min.js"></script>
<script src="helpers.js"></script>
<script src="cookieHelper.js"></script>
<script src="code.js"></script>
</body>
</html>