Added link to FlightStats for flights with flight number.

modified:   public_html/script.js
	modified:   public_html/style.css
This commit is contained in:
terribl 2013-05-20 11:21:08 +03:00
parent e1a06656d5
commit 9e8c1053bd
2 changed files with 9 additions and 2 deletions

View file

@ -103,7 +103,13 @@ function refreshSelectedInfo() {
} }
var html = '<table id="selectedinfo">'; var html = '<table id="selectedinfo">';
html += '<tr><td colspan=2><b>'+p.flight+'&nbsp;</b></td></tr>'; if (p.flight != "") {
html += '<tr><td colspan=2><b>'+p.flight+'&nbsp;&nbsp;</b>';
html += '[<a href="http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?';
html += 'flightNumber='+p.flight+'" target="_blank">FlightStats</a>]</td></tr>';
} else {
html += '<tr><td colspan=2><b>&nbsp;</b></td></tr>';
}
html += '<tr><td>ICAO:</td><td>'+p.hex+'</td></tr>'; html += '<tr><td>ICAO:</td><td>'+p.hex+'</td></tr>';
if (p.squawk != "0000") { if (p.squawk != "0000") {
html += '<tr><td>Squawk:</td><td>'+p.squawk+'</td></tr>'; html += '<tr><td>Squawk:</td><td>'+p.squawk+'</td></tr>';

View file

@ -1,5 +1,6 @@
html { height: 100% } html { height: 100%; }
body { height: 100%; margin: 0; padding: 0; font-size: small;} body { height: 100%; margin: 0; padding: 0; font-size: small;}
a { color: blue; }
#map_canvas { #map_canvas {
height: 100%; height: 100%;
margin-right:390px; margin-right:390px;