Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to the receiver's FlightAware stats page #118

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add link to the receiver's FlightAware stats page
  • Loading branch information
e2jk committed Mar 7, 2021
commit a5b8ff8c0a4328de47537f664f7a131f4590a115
4 changes: 4 additions & 0 deletions public_html/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ SiteShow = false; // true to show a center marker
SiteLat = 45.0; // position of the marker
SiteLon = 9.0;
SiteName = "My Radar Site"; // tooltip of the marker
// FlightAware stats page for this receiver.
// Defaults to https://flightaware.com/adsb/stats/user/ which
// redirects to the user's stats page if the user is logged in.
SiteStats = "";

// -- Marker settings -------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions public_html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@
<td>
<div class="button buttonTable" id="show_map_button"><span class="buttonText">Show Map</span></div>
</td>
<td style="text-align: right">
<a href="https://flightaware.com/adsb/stats/user/" id="flightaware_radar_stats" target="_blank">Your receiver's FlightAware stats</a>
</td>
<td style="text-align: right">
<a href="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/flightaware/dump1090" id="dump1090_version" target="_blank"></a>
</td>
Expand Down
3 changes: 3 additions & 0 deletions public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ var PositionHistorySize = 0;
function initialize() {
// Set page basics
document.title = PageName;
if (SiteStats) {
$('#flightaware_radar_stats').attr("href", SiteStats);
}

flightFeederCheck();

Expand Down