Skip to content

Commit

Permalink
index.html: set personal adsblol link for non-stage2 installs
Browse files Browse the repository at this point in the history
this works nicer for people on VPN or when using multiple receivers
behind the same IP
  • Loading branch information
wiedehopf committed Nov 15, 2024
1 parent dc2ccc0 commit 3f2a7c2
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h5>Additional aggregator links</h5>
<a href="https://www.adsb.lol/docs/feeders-only/introduction/">ADSB.lol feeder introduction</a>
</li>
{% if num_micro_sites == 1 %}
<li><a href="https://my.adsb.lol/">personal ADSB.lol URL with the planes you are sending</a></li>
<li><a id="adsblol-link-0" href="https://my.adsb.lol/">personal ADSB.lol URL with the planes you are sending</a></li>
<li><a
href="https://mlat.adsb.lol/syncmap/#lat={{ list_value_by_tag('lat', 0) }}#lon={{ list_value_by_tag('lon', 0) }}#zoom=10">ADSB.lol
MLAT feeder map for the area around {{ list_value_by_tag('site_name', 0) }}</a></li>
Expand Down Expand Up @@ -563,10 +563,8 @@ <h5>Additional aggregator links</h5>
$("#" + agg + "span" + idx).attr("class", 'text-dark')
}
if (agg == "adsblol") {
if (idx > 0) {
// console.log("set adsblol-link" + idx + " to " + data["adsblollink"])
$("#adsblol-link-" + idx).attr("href", data["adsblollink"])
}
// console.log("set adsblol-link" + idx + " to " + data["adsblollink"])
$("#adsblol-link-" + idx).attr("href", data["adsblollink"])
}
if (agg == "alive") {
$("#alivemaplink_" + idx).attr("href", data["alivemaplink"])
Expand Down

0 comments on commit 3f2a7c2

Please sign in to comment.