Add PlaneFinder link

This commit is contained in:
Chris Bowles 2016-03-29 17:50:39 -04:00
parent 03c29a3721
commit f53bca99e4
2 changed files with 2 additions and 0 deletions

View file

@ -126,6 +126,7 @@
<span id="selected_links"> <span id="selected_links">
<a id="selected_fr24_link" href="" target="_blank">[FR24]</a> <a id="selected_fr24_link" href="" target="_blank">[FR24]</a>
<a id="selected_flightstats_link" href="" target="_blank">[FlightStats]</a> <a id="selected_flightstats_link" href="" target="_blank">[FlightStats]</a>
<a id="selected_planefinder_link" href="" target="_blank">[PlaneFinder]</a>
</span> </span>
</td> </td>
</tr> </tr>

View file

@ -621,6 +621,7 @@ function refreshSelected() {
$('#selected_links').css('display','inline'); $('#selected_links').css('display','inline');
$('#selected_fr24_link').attr('href','http://fr24.com/'+selected.flight); $('#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_flightstats_link').attr('href','http://www.flightstats.com/go/FlightStatus/flightStatusByFlight.do?flightNumber='+selected.flight);
$('#selected_planefinder_link').attr('href','https://planefinder.net/flight/'+selected.flight);
} else { } else {
$('#selected_callsign').text('n/a'); $('#selected_callsign').text('n/a');
$('#selected_links').css('display','none'); $('#selected_links').css('display','none');