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) {
|
function success(pos) {
|
||||||
const crd = pos.coords;
|
const crd = pos.coords;
|
||||||
|
|
||||||
console.log("Your current position is:");
|
let string = "";
|
||||||
console.log(`Latitude : ${crd.latitude}`);
|
string += "Your current position is:";
|
||||||
console.log(`Longitude: ${crd.longitude}`);
|
string += `Latitude : ${crd.latitude}`;
|
||||||
console.log(`More or less ${crd.accuracy} meters.`);
|
string += `Longitude: ${crd.longitude}`;
|
||||||
|
string += `More or less ${crd.accuracy} meters.`;
|
||||||
|
alert(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
function error(err) {
|
function error(err) {
|
||||||
|
|
Loading…
Reference in a new issue