MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / success

Function success

common/src/web/html5/geolocation.js:1–7  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

1function success(position) {
2 var message = document.getElementById("status");
3 message.innerHTML ="<img src='http://maps.google.com/maps/api/staticmap?center=" + position.coords.latitude + "," + position.coords.longitude + "&size=300x200&maptype=roadmap&zoom=12&&markers=size:mid|color:red|" + position.coords.latitude + "," + position.coords.longitude + "&sensor=false' />";
4 message.innerHTML += "<p>Longitude: " + position.coords.longitude + "</p>";
5 message.innerHTML += "<p>Latitude: " + position.coords.latitude + "</p>";
6 message.innerHTML += "<p>Altitude: " + position.coords.altitude + "</p>";
7}
8
9function error(msg) {
10 var message = document.getElementById("status");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected