From 38ec089a53daa1b29e4d7d817efde3afdaf5ae9f Mon Sep 17 00:00:00 2001 From: Uskompuf <22492406+Uskompuf@users.noreply.github.com> Date: Sat, 13 Nov 2021 11:53:57 +1100 Subject: [PATCH] instant predictions --- js/tracker.js | 204 +++++++++++++++++++++++++++----------------------- 1 file changed, 112 insertions(+), 92 deletions(-) diff --git a/js/tracker.js b/js/tracker.js index 5343fd8..af3dcf0 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -671,53 +671,60 @@ function launchSitePredictions(times, station, properties, marker) { deletePredictions(marker); popupContent = popupContent.split(""; } else { - popupContent = "" + json[key].station_name + "

Sondes launched: " + sondesList; - if (json[key].hasOwnProperty('notes')) { - popupContent += "
Notes: " + json[key]["notes"]; - } - popupContent += "
Know when this site launches? Contribute here"; + popupContent += "
"; } popup.setContent(popupContent); }