Skip to content

Commit

Permalink
flightaware link
Browse files Browse the repository at this point in the history
  • Loading branch information
jvde-github committed Jan 30, 2025
1 parent a552e99 commit 0c2cf49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HTML/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,10 @@
onclick="toggleTrack(card_mmsi)"><i id="shipcard_track_icon" class="timeline_icon"></i><span
id="shipcard_track">Track</span></div>

<div title="Search on FlightAware" onclick="openFlightAware(card_mmsi)"
data-context-type="plane">
<i class="search_icon"></i><span>FlightAware</span>
</div>

<div title="Search on PlaneSpotters" onclick="openPlaneSpotters(card_mmsi)"
data-context-type="plane">
Expand Down
3 changes: 3 additions & 0 deletions HTML/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ function openADSBExchange(m) {
window.open("https://globe.adsbexchange.com/?icao=" + getICAOfromHexIdent(m));
}

function openFlightAware(m) {
window.open("https://flightaware.com/live/modes/" + getICAOfromHexIdent(m)) + "/redirect";
}

const mapMenu = document.getElementById("map-menu");

Expand Down

0 comments on commit 0c2cf49

Please sign in to comment.