Skip to content

Commit

Permalink
setbrowser location long -ve
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed May 17, 2024
1 parent 0d0f1ab commit 0c12c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function getLocation() {//Check for Geolocation and get it.
}
}
function showPosition(position) { // Event capture for GetLocation.
document.getElementById("longitude").value = -1 * position.coords.longitude;
document.getElementById("longitude").value = position.coords.longitude;
document.getElementById("latitude").value = position.coords.latitude;
document.getElementById("timezone").value = -1* (new Date().getTimezoneOffset()/60);//"UnKnown";
document.getElementById("placename").value="BrowserLocation"
Expand Down

0 comments on commit 0c12c06

Please sign in to comment.