@@ -3920,8 +3920,58 @@ function updateReceivers(r, single) {
3920
3920
receiver . lon = lon ;
3921
3921
receiver . alt = alt ;
3922
3922
receiver . age = age . toISOString ( ) ;
3923
- receiver . description = "<font style='font-size: 13px'>" + receiver . name + "</font><br/><font size='-2'><BR><B>Software: </B>" + last . software_name + "-" + last . software_version
3924
- + "<BR><B>Radio: </B>" + last . uploader_radio + "<BR><B>Antenna: </B>" + last . uploader_antenna + "<BR><B>Last Contact: </B>" + last . ts + "Z<BR></font>" ;
3923
+
3924
+ var receiver_description_html = document . createElement ( "p" )
3925
+ var receiver_name = document . createElement ( "font" )
3926
+ receiver_name . style . fontSize = "13px"
3927
+ receiver_name . textContent = receiver . name
3928
+ receiver_description_html . appendChild ( receiver_name )
3929
+ receiver_description_html . appendChild ( document . createElement ( "br" ) )
3930
+
3931
+ var subSection = document . createElement ( "font" )
3932
+ subSection . style . fontSize = "-2"
3933
+ var radioSoftware = document . createElement ( "b" )
3934
+ radioSoftware . textContent = "Software: "
3935
+ subSection . appendChild ( radioSoftware )
3936
+
3937
+ var receiverSoftware = document . createTextNode ( last . software_name + "-" + last . software_version )
3938
+ subSection . appendChild ( receiverSoftware )
3939
+
3940
+ subSection . appendChild ( document . createElement ( "br" ) )
3941
+
3942
+ if ( last . uploader_radio ) {
3943
+ var radioHeading = document . createElement ( "b" )
3944
+ radioHeading . textContent = "Radio: "
3945
+ subSection . appendChild ( radioHeading )
3946
+
3947
+ var uploaderRadio = document . createTextNode ( last . uploader_radio )
3948
+ subSection . appendChild ( uploaderRadio )
3949
+
3950
+ subSection . appendChild ( document . createElement ( "br" ) )
3951
+ }
3952
+
3953
+
3954
+ if ( last . uploader_antenna ) {
3955
+ var antennaHeading = document . createElement ( "b" )
3956
+ antennaHeading . textContent = "Antenna: "
3957
+ subSection . appendChild ( antennaHeading )
3958
+
3959
+ var uploaderAntenna = document . createTextNode ( last . uploader_antenna )
3960
+ subSection . appendChild ( uploaderAntenna )
3961
+
3962
+ subSection . appendChild ( document . createElement ( "br" ) )
3963
+ }
3964
+
3965
+ var lastContactHeading = document . createElement ( "b" )
3966
+ lastContactHeading . textContent = "Last Contact: "
3967
+ subSection . appendChild ( lastContactHeading )
3968
+
3969
+ var lastContact = document . createTextNode ( last . ts + "Z" )
3970
+ subSection . appendChild ( lastContact )
3971
+
3972
+ receiver_description_html . appendChild ( subSection )
3973
+
3974
+ receiver . description = receiver_description_html . innerHTML ;
3925
3975
receiver . fresh = true ;
3926
3976
3927
3977
updateReceiverMarker ( receiver ) ;
0 commit comments