mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
12 lines
270 B
HTML
12 lines
270 B
HTML
<html>
|
|
<body>
|
|
<script>
|
|
navigator.geolocation.getCurrentPosition(function(pos) {
|
|
var evt = document.createEvent('CustomEvent');
|
|
evt.initCustomEvent('georesult', true, false, pos.coords.latitude);
|
|
document.dispatchEvent(evt);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|