Hide flag icon if registration is 00.

This commit is contained in:
Don Willingham 2016-03-31 21:24:38 -04:00
parent 86b651af54
commit 7ab16113a5

View File

@ -94,8 +94,10 @@
html += 'Altitude: '+p.altitude+' feet<br>';
html += 'Speed: '+p.speed+' knots<br>';
html += 'Coordinates: '+p.lat+', '+p.lon+'<br>';
html += 'Registration: '+p.reg+
' <img src="flags/'+p.reg.toLowerCase()+'.png"/><br>';
html += 'Registration: '+p.reg;
if (p.reg != "00") {
html += ' <img src="flags/'+p.reg.toLowerCase()+'.png"/><br>';
}
i.innerHTML = html;
}