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 src="<?php echo base_url() ;?>assets/js/sections/station_locations.js"></script>
|
||||
<script>
|
||||
var x = document.getElementById("demo");
|
||||
var position;
|
||||
function getLocation() {
|
||||
console.log("'clicked");
|
||||
|
|
@ -67,16 +66,15 @@ function load_was_map() {
|
|||
navigator.geolocation.getCurrentPosition(showPosition);
|
||||
console.log("'got position");
|
||||
} else {
|
||||
x.innerHTML = "Geolocation is not supported by this browser.";
|
||||
console.log('Geolocation is not supported by this browser.');
|
||||
}
|
||||
}
|
||||
|
||||
function showPosition(position) {
|
||||
console.log("'got position");
|
||||
x.innerHTML = "Latitude: " + position.coords.latitude +
|
||||
"<br>Longitude: " + position.coords.longitude;
|
||||
console.log(position);
|
||||
console.log(latLonToGridSquare(position.coords.latitude,position.coords.longitude));
|
||||
console.log(position);
|
||||
gridsquare = latLonToGridSquare(position.coords.latitude,position.coords.longitude);
|
||||
console.log(gridsquare);
|
||||
document.getElementById("stationGridsquareInput").gridsquare;
|
||||
}
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
|
|
|||
正在加载…
在新工单中引用