From 9e8c1053bd6fc1679357721ccbb9ffc90908c279 Mon Sep 17 00:00:00 2001 From: terribl Date: Mon, 20 May 2013 11:21:08 +0300 Subject: [PATCH] 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 = ''; - html += ''; + if (p.flight != "") { + html += ''; + } else { + html += ''; + } html += ''; if (p.squawk != "0000") { html += ''; 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;
'+p.flight+' 
'+p.flight+'  '; + html += '[FlightStats]
 
ICAO:'+p.hex+'
Squawk:'+p.squawk+'