function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition((position) => {
x = position.coords.longitude;
y = position.coords.latitude;
});
}
else { x.innerHTML = "Geolocation is not supported by this browser."; }
}