mutability / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
529 stars 137 forks source link

Add Plane Finder link https://planefinder.net in Dump #89

Closed cerberusde closed 8 years ago

cerberusde commented 8 years ago

Add Plane Finder link https://planefinder.net in Dump

The following changes have been made in the files and gmap.html and script.js

script.js

if (selected.flight !== null && selected.flight !== "") {
  $('#selected_callsign').text(selected.flight);
  $('#selected_links').css('display','inline');
  $('#selected_fr24_link').attr('href','http://fr24.com/'+selected.flight);
  $('#selected_flightstats_link').attr('href','http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?flightNumber='+selected.flight);
  $('#selected_flightaware_link').attr('href','http://flightaware.com/live/flight/'+selected.flight);
  $('#selected_planefinder_link').attr('href','https://planefinder.net/flight/'+selected.flight);

gmap.html

<span id="selected_links">
   <a id="selected_fr24_link" href="" target="_blank">[FR24]</a>
   <a id="selected_flightaware_link" href="" target="_blank">[FlightAware]</a>
   <a id="selected_planefinder_link" href="" target="_blank">[PlainFinder]</a>
   <a id="selected_flightstats_link" href="" target="_blank">[FlightStats]</a>
mutability commented 8 years ago

A pull request would be good.