href to flightaware flight tracking website for flight
This commit is contained in:
parent
aecc86fa00
commit
3bd70f6341
@ -38,6 +38,7 @@
|
|||||||
src="https://maps.googleapis.com/maps/api/js?sensor=true">
|
src="https://maps.googleapis.com/maps/api/js?sensor=true">
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
hrefFlightawareLookup = "http://uk.flightaware.com/live/flight/";
|
||||||
Map=null;
|
Map=null;
|
||||||
CenterLat=45.0;
|
CenterLat=45.0;
|
||||||
CenterLon=9.0;
|
CenterLon=9.0;
|
||||||
@ -88,7 +89,7 @@
|
|||||||
if (!p) return;
|
if (!p) return;
|
||||||
var html = 'ICAO: '+p.hex+'<br>';
|
var html = 'ICAO: '+p.hex+'<br>';
|
||||||
if (p.flight.length) {
|
if (p.flight.length) {
|
||||||
html += '<b>'+p.flight+'</b><br>';
|
html += '<b><a href="' +hrefFlightawareLookup + p.flight + '" target="_blank">'+p.flight+'</a></b><br>';
|
||||||
}
|
}
|
||||||
html += 'Altitude: '+p.altitude+' feet<br>';
|
html += 'Altitude: '+p.altitude+' feet<br>';
|
||||||
html += 'Speed: '+p.speed+' knots<br>';
|
html += 'Speed: '+p.speed+' knots<br>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user