[hamradio-commits] [dump1090] 179/373: Added link to FlightStats for flights with flight number.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 9e8c1053bd6fc1679357721ccbb9ffc90908c279
Author: terribl <terri at rannalla.net>
Date:   Mon May 20 11:21:08 2013 +0300

    Added link to FlightStats for flights with flight number.
    
    	modified:   public_html/script.js
    	modified:   public_html/style.css
---
 public_html/script.js | 8 +++++++-
 public_html/style.css | 3 ++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/public_html/script.js b/public_html/script.js
index 50df145..9a3186d 100644
--- a/public_html/script.js
+++ b/public_html/script.js
@@ -103,7 +103,13 @@ function refreshSelectedInfo() {
     }
     
     var html = '<table id="selectedinfo">';
-    html += '<tr><td colspan=2><b>'+p.flight+' </b></td></tr>';
+    if (p.flight != "") {
+        html += '<tr><td colspan=2><b>'+p.flight+'  </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> </b></td></tr>';
+    }
     html += '<tr><td>ICAO:</td><td>'+p.hex+'</td></tr>';
     if (p.squawk != "0000") {
         html += '<tr><td>Squawk:</td><td>'+p.squawk+'</td></tr>';
diff --git a/public_html/style.css b/public_html/style.css
index 5ed73c0..72324b2 100644
--- a/public_html/style.css
+++ b/public_html/style.css
@@ -1,5 +1,6 @@
-html { height: 100% }
+html { height: 100%; }
 body { height: 100%; margin: 0; padding: 0; font-size: small;}
+a { color: blue; }
 #map_canvas { 
 height: 100%;
 margin-right:390px;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list