-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
146 lines (137 loc) · 5.72 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<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">
<link rel="image_src" href="http://ukube.colinwaddell.com/img/screenshot.png" />
<meta property="og:title" content="Clyde Space Satellite Tracker" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://ukube.colinwaddell.com/img/screenshot.png" />
<meta property="og:url" content="http://ukube.colinwaddell.com/" />
<meta name="description" content="Clyde Space Satellite Tracker">
<meta property="og:description" content="Clyde Space Satellite Tracker">
<meta name="author" content="Colin Waddell">
<title>
Clyde Space Satellite Tracker
</title><!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"><!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="libs/moment.min.js" type="text/javascript">
</script>
<script src="libs/readable-range.js" type="text/javascript">
</script><!--<script src="js/angular.min.js"></script>-->
<!--<script src="js/zacube.angular.js"></script>-->
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"> </script>
<script src="http://d3js.org/topojson.v1.min.js" type="text/javascript"> </script>
<script src="libs/jquery-3.1.1.min.js" type="text/javascript"> </script>
<script src="app/colourMap.js" type="text/javascript"> </script>
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono" rel="stylesheet">
<script src="app/sat_trajectory.datamaps.js" type="text/javascript"> </script>
<script src="app/sat_marker.datamaps.js" type="text/javascript"> </script>
<script src="app/move_marker.datamaps.js" type="text/javascript"> </script>
<script src="libs/datamaps.world.js" type="text/javascript"> </script>
<script src="libs/satellite.js" type="text/javascript"> </script>
<link href="css/style.css" rel="stylesheet" type="text/css"><!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/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-lg-12">
<div id="sat_area" style="position: relative; margin: 0 auto; width: 1140px; height: 800px; margin-top:-120px;"></div>
</div>
</div>
<div class="row">
<div class="footer">
<div class="row">
<div class="col-xs-8">
<div id="sat_info">
<div id="progress_bar_area">
<span id="sat_name"></span>
<div id="progress_bar">
<div id="progress_bar_mark">
</div>
</div>
</div>
SPEED: <span class="sat_data" id="sat_velocity"></span>
ALTITUDE: <span class="sat_data" id="sat_height"></span>
LAT:<span class="sat_data latlng" id="sat_latitude"></span>
LNG:<span class="sat_data latlng" id="sat_longitude"></span>
<p> Built for <a href="http://clyde.space">Clyde Space</a>
by <a href="https://github.com/ColinWaddell/ZACUBE-Pass-Information/">Colin Waddell</a>
and <a href="https://github.com/leonsteenkamp/cubesat-passtimes">Leon Steenkamp</a>
</p>
</div>
</div>
<div class="col-xs-4">
<a href="http://clyde.space"><div id="cslogo" /></a>
</div>
</div>
</div>
</div>
</div><!-- /container -->
<script src="app/satellite.datamap.js" type="text/javascript">
</script><!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script>
var satList =
[
"PICASSO-BEL",
"KIPP",
"KEPLER-1 (CASE)",
"KEPLER-2 (TARS)",
"SEAHAWK-1",
"UKUBE-1",
"NSL-1",
"ZACUBE-2",
"DAVINCI",
"MIR-SAT 1",
"APRIZESAT 1",
"APRIZESAT 2",
"APRIZESAT 3",
"APRIZESAT 4",
"APRIZESAT 5",
"APRIZESAT 6",
"APRIZESAT 7",
"APRIZESAT 8",
"APRIZESAT 9",
"APRIZESAT 10",
"THEA",
"BRIO",
];
var satmap = new satelliteDatamap(
'sat_area', { satelliteName: satList });
var satIndex = 0;
var infoTime = 10;
var index = 0
// Put the sat list in order for readability
satList = satList.sort();
var infoTimer = window.setInterval(function(){
// Pull satellite info
var sat = satmap.getSatelliteInfo(satList[satIndex]);
if(sat && sat.attitude){
var lat = (sat.attitude.latitude < 0 ? '' : ' ') + sat.attitude.latitude.toFixed(2)
var lng = (sat.attitude.longitude < 0 ? '' : ' ') + sat.attitude.longitude.toFixed(2)
$('#sat_info').show();
$('#sat_name').html(sat.name);
$('#sat_name').css({'color': colorLuminance(sat.colour, 0.25)});
$('#progress_bar_mark').css({'background-color': sat.colour});
$('#cslogo').css({'background-color': sat.colour});
$('#progress_bar_mark').animate({'width': (250*((infoTime - index)/infoTime))}, 250);
$('#sat_velocity').html(sat.attitude.velocity.toFixed(0) + ' km/h');
$('#sat_height').html(sat.attitude.altitude.toFixed(2) + ' km');
$('#sat_latitude').html(lat + '°');
$('#sat_longitude').html(lng + '°');
}
// Update Counters and
// watch for overflow
index = (index+1)%infoTime;
if (!index) satIndex++;
if (satIndex==satList.length) satIndex = 0;
}, 1000);
</script>
</body>
</html>