Commit 4f30026a authored by Lakkakula Sai Sri Bhavya's avatar Lakkakula Sai Sri Bhavya
Browse files

Merge branch 'patch-28' into 'master'


See merge request !63
parents 6b92dd12 bf90a9fb
Pipeline #31908 passed with stage
in 14 seconds
<!DOCTYPE html>
<p><b>Click the button bellow to get your coordinates.<b></p>
<button onclick="getLocation()">Try It</button>
<p id="demo"></p>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment