Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 </head>
6 <body>
7 <script>
8 window.onload = function() {
9 function failureCallback() {
10 document.getElementById("msg").textContent = "Failure.";
11 }
13 function successCallback() {
14 document.getElementById("msg").textContent = "Success.";
15 }
17 navigator.geolocation.getCurrentPosition(successCallback, failureCallback);
18 };
19 </script>
20 <p id="msg">Webapp waiting for geolocation...</p>
21 </body>
22 </html>