From 8a1c08cafb4c72bc76fef67d1e6a529d2505ebf6 Mon Sep 17 00:00:00 2001 From: Dynomity Date: Wed, 26 Aug 2015 10:00:19 -0600 Subject: [PATCH 1/2] Moved loading of flags.js above script.js --- public_html/gmap.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/gmap.html b/public_html/gmap.html index f6dd954..aba36ed 100644 --- a/public_html/gmap.html +++ b/public_html/gmap.html @@ -11,8 +11,8 @@ - + @@ -113,7 +113,7 @@ - + From b5d49b451b10995a7afc2db77ed1a33c7281b7cf Mon Sep 17 00:00:00 2001 From: Dynomity Date: Wed, 26 Aug 2015 10:07:50 -0600 Subject: [PATCH 2/2] just cleaning up the formatting --- public_html/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public_html/script.js b/public_html/script.js index 7dbca23..01968c2 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -71,7 +71,6 @@ function processReceiverUpdate(data) { // Lookup ICAO country flag var hexa = +("0x" + hex); - for (var i = 0; i < ICAO_Codes.length; i++) { if ( hexa >= ICAO_Codes[i].start && hexa <= ICAO_Codes[i].end) { plane.Country = ICAO_Codes[i].Country; @@ -608,11 +607,11 @@ function refreshSelected() { $('#selected_seen').text(selected.seen.toFixed(1) + 's'); } -// add the country and flag to the selected section + // add the country and flag to the selected section $('#selected_country').text(selected.Country); if (selected.Flag !== null) { $('#selected_flag').html(selected.Flag); - } + } if (selected.position === null) { $('#selected_position').text('n/a');