Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetkahya0 authored May 8, 2023
1 parent 067ece0 commit e9b6de5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@
];

button.addEventListener("click", function () {
const location = locations[Math.floor(Math.random() * locations.length)];
const url = `https://www.google.com/maps/@${location.coordinates.lat},${location.coordinates.lng},18z/data=!3m1!1e3!4m2!7m1!2e1`;

const location = locations[Math.floor(Math.random() * locations.length)];
const name = (location.name)
const url = `https://www.google.com/maps/@${location.coordinates.lat},${location.coordinates.lng},18z/data=!3m1!1e3`;
alert('You are going to: ' + name)
window.open(url, "_blank");
});
</script>
Expand Down

0 comments on commit e9b6de5

Please sign in to comment.