1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/webapprt/test/chrome/geolocation-prompt-noperm.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 + <head> 1.7 + <meta charset="utf-8"> 1.8 + </head> 1.9 + <body> 1.10 + <script> 1.11 + window.onload = function() { 1.12 + function failureCallback() { 1.13 + document.getElementById("msg").textContent = "Failure."; 1.14 + } 1.15 + 1.16 + function successCallback() { 1.17 + document.getElementById("msg").textContent = "Success."; 1.18 + } 1.19 + 1.20 + navigator.geolocation.getCurrentPosition(successCallback, failureCallback); 1.21 + }; 1.22 + </script> 1.23 + <p id="msg">Webapp waiting for geolocation...</p> 1.24 + </body> 1.25 +</html>