mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
19 lines
461 B
HTML
19 lines
461 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
<script>
|
|
function failureCallback() {
|
|
document.getElementById("msg").textContent = "Failure.";
|
|
}
|
|
function successCallback() {
|
|
document.getElementById("msg").textContent = "Success.";
|
|
}
|
|
navigator.geolocation.getCurrentPosition(successCallback, failureCallback);
|
|
</script>
|
|
<p id="msg">Webapp waiting for geolocation...</p>
|
|
</body>
|
|
</html>
|