Add alert for straightforward mobile testing
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
814e1ee444
commit
a3e6809e24
1 changed files with 6 additions and 4 deletions
|
@ -26,10 +26,12 @@
|
|||
function success(pos) {
|
||||
const crd = pos.coords;
|
||||
|
||||
console.log("Your current position is:");
|
||||
console.log(`Latitude : ${crd.latitude}`);
|
||||
console.log(`Longitude: ${crd.longitude}`);
|
||||
console.log(`More or less ${crd.accuracy} meters.`);
|
||||
let string = "";
|
||||
string += "Your current position is:";
|
||||
string += `Latitude : ${crd.latitude}`;
|
||||
string += `Longitude: ${crd.longitude}`;
|
||||
string += `More or less ${crd.accuracy} meters.`;
|
||||
alert(string)
|
||||
}
|
||||
|
||||
function error(err) {
|
||||
|
|
Loading…
Reference in a new issue