26 lines
		
	
	
		
			824 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			824 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<html>
 | 
						|
<head>
 | 
						|
<script>
 | 
						|
maptype = "SH"; // TODO: Get from config
 | 
						|
 | 
						|
const maps = {
 | 
						|
  "WS": ["https://www.wettersonde.net/map.php", (s)=>"?sonde="+s, (lat,lon)=>""],
 | 
						|
  "SH": ["https://sondehub.org/#!mt=Mapnik", (lat,lon)=>'&mz=7&qm=12h&mc=' + lat + ',' + lon],
 | 
						|
  "RS": ["https://radiosondy.info/", (s)=>"sonde.php?sondenumber="+s, (lat,lon)=>""],
 | 
						|
  "OW": ["https://v2.openwx.de/start.php", (s)=>"?sonde="+s, (lat,lon)=>"?mode=mobile"],
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
const data = {"gps_lat":45.62172,"gps_lon":7.02026};
 | 
						|
 | 
						|
urlarg = + maps[maptype][1] + data['gps_lat']+","+data['gps_lon'];
 | 
						|
 | 
						|
iftxt='<iframe src="' + maps[maptype][0] + urlarg +'" style="border:1px solid #00A3D3;border-radius:20px;height:98vh;width:100%"></iframe>';
 | 
						|
document.write(iftxt);
 | 
						|
document.getElementsByTagName('body')[0].innerHTML = iftxt;
 | 
						|
</script>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
</body>
 | 
						|
</html>
 |