forked from WorldWindEarth/worldwind-web-app
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
239 lines (227 loc) · 14.6 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
<!doctype html>
<!--
Copyright (c) 2018 Bruce Schubert.
The MIT License
http://www.opensource.org/licenses/mit-license
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="International Space Station tracker">
<!-- <meta name="author" content="Bruce Schubert"> -->
<link rel="icon" href="images/world.png">
<title>ISS Tracker</title>
<!-- Bootstrap 4.0 CSS compiled and minified -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Font Awesome icons (see: https://fontawesome.com/icons?d=gallery) -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css"
integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
<!-- Custom styles and overrides -->
<link href="custom.css" rel="stylesheet">
</head>
<body>
<!--Main Menu-->
<nav class="navbar navbar-expand-md fixed-top navbar-dark bg-dark">
<!--Branding icon and text-->
<a class="navbar-brand" href="https://github.com/worldwindearth/worldwind-web-app">
<img src="images/world.png" width="32" height="36" class="d-inline-block align-top" alt="">
ISS Tracker
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!--Main menu content-->
<div class="collapse navbar-collapse" id="main-menu">
<ul class="navbar-nav mr-auto">
<!--Layers-->
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#layers" role="button">
<span class="fas fa-list" aria-hidden="true"></span>
<span class="d-md-none d-lg-inline" aria-hidden="true">Layers</span>
</a>
</li>
<!--Markers-->
<!-- <li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#markers" role="button">
<span class="fas fa-map-marker-alt" aria-hidden="true"></span>
<span class="d-md-none d-lg-inline" aria-hidden="true">Markers</span>
</a>
</li> -->
<!--Settings-->
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#settings" role="button">
<span class="fas fa-cog" aria-hidden="true"></span>
<span class="d-md-none d-lg-inline" aria-hidden="true">Settings</span>
</a>
</li>
<li class="nav-item">
<p id="demo"></p>
</li>
</ul>
<!--Search Box-->
<!-- <form id="search" class="form-inline">
<input id="searchText" class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search"
data-bind="value: searchText, valueUpdate: 'keyup'"/>
<button id="searchButton" class="btn btn-outline-success" data-bind="click: $root.performSearch">
<span class="fas fa-search" aria-hidden="true"></span>
</button>
</form> -->
</div>
</nav>
<!-- Main content -->
<!-- Use container-fluid for 100% width and set padding to 0 -->
<main role="main" class="container-fluid p-0">
<!-- WorldWindow -->
<div id="globe" class="globe p-0">
<!--.d-block ensures the size is correct (prevents a scrollbar from appearing)-->
<canvas id="globe-canvas" class="d-block"
style="width: 100%; height: 100%;">
Try Chrome or FireFox.
</canvas>
</div>
<!--WorldWindow Tools-->
<!-- <div id="tools" class="globe-overlay noninteractive">
</div> -->
<!--WorldWindow Panels-->
<div class="globe-overlay noninteractive">
<div class="card-columns">
<!--Layers-->
<div id="layers" class="collapse" >
<div class="card globe-card interactive">
<div class="card-header">
<h5 class="card-title">
<span class="fas fa-list" aria-hidden="true"></span>
Layers
<button type="button" class="close pull-right" aria-label="Close">
<span aria-hidden="true">×</span>
</button></h5>
</div>
<div class="card-body">
<div class="list-group" data-bind="template: { name: 'layer-list-template', foreach: overlayLayers}"></div>
<hr/>
<div class="list-group" data-bind="template: { name: 'layer-list-template', foreach: baseLayers}"></div>
</div>
</div>
</div>
<!--Markers-->
<!-- <div id="markers" class="collapse">
<div class="card globe-card interactive">
<div class="card-header">
<h5 class="card-title">
<span class="fas fa-map-marker-alt" aria-hidden="true"></span>
Markers
<button type="button" class="close pull-right" aria-label="Close">
<span aria-hidden="true">×</span>
</button></h5>
</div>
<div class="card-body">
<!-- Bind the list to the 'markers' observableArray --
<ul id="markers-list" class="list-group" data-bind="foreach: $root.markers">
<li class="list-group-item list-group-item-action p-0">
<div class="btn-group" role="group">
<!-- Goto Button --
<button type="button" class="btn btn-light" data-bind="click: $root.gotoMarker">
<span><img width="16px" height="16px" data-bind="attr:{src: $data.attributes.imageSource}" /> </span>
<span data-bind="text: $data.label"></span>
</button>
<!-- Edit Button --
<button type="button" class="btn btn-light fas fa-edit" data-bind="click: $root.editMarker"></button>
<!-- Delete Button --
<button type="button" class="btn btn-light fas fa-trash" data-bind="click: $root.removeMarker"></button>
</div>
</li>
</ul>
</div>
</div>
</div> -->
<!--Settings-->
<div id="settings" class="collapse">
<div class="card globe-card interactive">
<div class="card-header">
<h5 class="card-title">
<span class="fas fa-cog" aria-hidden="true"></span>
Settings
<button type="button" class="close pull-right" aria-label="Close">
<span aria-hidden="true">×</span>
</button></h5>
</div>
<div class="card-body">
<div class="list-group" data-bind="template: { name: 'layer-list-template', foreach: settingLayers}"></div>
<hr/>
<div class="list-group" data-bind="template: { name: 'layer-list-template', foreach: debugLayers}"></div>
</div>
</div>
</div>
</div>
<script type="text/html" id="layer-list-template">
<button type="button" class="list-group-item list-group-item-action"
data-bind="click: $root.toggleLayer, css: { active: $data.enabled }">
<span data-bind="text: $data.displayName"></span>
</button>
</script>
</div>
<!--Search Preview Dialog-->
<div id="preview" class="hidden">
<div id="previewDialog" class="modal" tabindex="-1" role="dialog" >
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Search Results</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="modal-body-canvas pb-3" title="Preview" >
<canvas id="preview-canvas" style="width: 100%; height: 100%;">
<h1>Your browser does not support HTML5 Canvas.</h1>
</canvas>
</div>
<div class="modal-body-table">
<div class="alert alert-warning alert-dismissible fade show" role="alert" data-bind="visible: showApiWarning">
MapQuest API key missing. Get a free key at
<a href="https://developer.mapquest.com/" class="alert-link" target="_blank">developer.mapquest.com</a>
and set the MAPQUEST_API_KEY variable to your key.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Type</th>
</tr>
</thead>
<tbody data-bind="template: { name: 'search-results-template', foreach: searchResults}"></tbody>
</table>
<script type="text/html" id="search-results-template">
<tr data-bind="click: $parent.previewSelection">
<td><span data-bind="text: $data.display_name"></span></td>
<td><span data-bind="text: $data.type"></span></td>
</tr>
</script>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal" data-bind="enable: selected, click: gotoSelected">Go to</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</main><!-- /.container-fluid -->
<!-- JavaScript placed at the end of the document so the page loads faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 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="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<script src="https://unpkg.com/[email protected]/build/dist/worldwind.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/satellite.js/4.1.3/satellite.min.js" integrity="sha512-JxDmggH93+jdpfW+JF5CgtX1VNBAsvZVbswpqCtTMPyRvPkI+BMdm0L7JR9fbjxEoWt93AyPeiK0OrvfQWx++A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://unpkg.com/tle.js@^4"></script>
<script type="module" src="app.js"></script>
</body>
</html>