Skip to content

Commit d94cf11

Browse files
Mark JessopMark Jessop
authored andcommitted
More values set by textContent
1 parent cbcba07 commit d94cf11

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

js/station.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ function drawHistorical (data, station) {
197197

198198
html += "<div><b>Altitude:&nbsp;</b>"+text_alt+"</div>";
199199
html += "<div><b>Time:&nbsp;</b>"+formatDate(stringToDateUTC(time))+"</div>";
200-
201-
if (landing.hasOwnProperty("type")) {
202-
html += "<div><b>Sonde Type:&nbsp;</b>" + landing.type + "</div>";
203-
};
200+
html += "<div><b>Sonde Type:&nbsp;</b><span class='landing_sonde_type'>Unknown</span></div>"
204201

205202
html += "<hr style='margin:0px;margin-top:5px'>";
206203

@@ -226,6 +223,11 @@ function drawHistorical (data, station) {
226223
div.getElementsByClassName("recovery_path")[0].onclick = function(){
227224
showRecoveredMap(serial)
228225
}
226+
227+
if (landing.hasOwnProperty("type")) {
228+
div.getElementsByClassName("landing_sonde_type")[0].textContent = landing.type;
229+
};
230+
229231
if (landing.hasOwnProperty("uploader_callsign")) {
230232
div.getElementsByClassName("landing_uploader_callsign")[0].textContent = "Last received by: " + landing.uploader_callsign.toLowerCase();
231233
};

0 commit comments

Comments
 (0)