Add alert for straightforward mobile testing
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-07-18 17:43:16 +02:00
parent 814e1ee444
commit a3e6809e24

View file

@ -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) {