Update footer.php
这个提交包含在:
		
							父节点
							
								
									39096628b2
								
							
						
					
					
						当前提交
						647f172789
					
				
					共有  1 个文件被更改,包括 5 次插入 和 7 次删除
				
			
		|  | @ -59,7 +59,6 @@ function load_was_map() { | ||||||
|     <script language="javascript" src="<?php echo base_url() ;?>assets/js/HamGridSquare.js"></script> |     <script language="javascript" src="<?php echo base_url() ;?>assets/js/HamGridSquare.js"></script> | ||||||
|     <script src="<?php echo base_url() ;?>assets/js/sections/station_locations.js"></script> |     <script src="<?php echo base_url() ;?>assets/js/sections/station_locations.js"></script> | ||||||
|     <script> |     <script> | ||||||
|         var x = document.getElementById("demo"); |  | ||||||
|         var position; |         var position; | ||||||
|         function getLocation() { |         function getLocation() { | ||||||
|             console.log("'clicked"); |             console.log("'clicked"); | ||||||
|  | @ -67,16 +66,15 @@ function load_was_map() { | ||||||
|                 navigator.geolocation.getCurrentPosition(showPosition); |                 navigator.geolocation.getCurrentPosition(showPosition); | ||||||
|                 console.log("'got position"); |                 console.log("'got position"); | ||||||
|             } else {  |             } else {  | ||||||
|                 x.innerHTML = "Geolocation is not supported by this browser."; |                 console.log('Geolocation is not supported by this browser.'); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         function showPosition(position) { |         function showPosition(position) { | ||||||
|             console.log("'got position"); |             console.log(position); | ||||||
|   x.innerHTML = "Latitude: " + position.coords.latitude +  |             gridsquare = latLonToGridSquare(position.coords.latitude,position.coords.longitude); | ||||||
|   "<br>Longitude: " + position.coords.longitude; |             console.log(gridsquare); | ||||||
|   console.log(position); |             document.getElementById("stationGridsquareInput").gridsquare; | ||||||
|   console.log(latLonToGridSquare(position.coords.latitude,position.coords.longitude)); |  | ||||||
|   } |   } | ||||||
|     </script> |     </script> | ||||||
| <?php } ?>
 | <?php } ?>
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用