blob: 90665e3a5dc360468c9141c2bc5b0c89f7c8f618 [file] [log] [blame]
<body onload="loaded()">
<img src="http://127.0.0.1:8080/security/resources/compass.jpg">
<script>
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
}
function showPosition(position) {
console.log("Latitude: " + position.coords.latitude + "Longitude: " + position.coords.longitude);
}
function loaded() {
if (window.opener)
window.opener.postMessage('done', '*');
}
</script>
</body>