Skip to content

Commit e9b6de5

Browse files
authored
Update index.html
1 parent 067ece0 commit e9b6de5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@
245245
];
246246

247247
button.addEventListener("click", function () {
248-
const location = locations[Math.floor(Math.random() * locations.length)];
249-
250-
const url = `https://www.google.com/maps/@${location.coordinates.lat},${location.coordinates.lng},18z/data=!3m1!1e3!4m2!7m1!2e1`;
251-
248+
const location = locations[Math.floor(Math.random() * locations.length)];
249+
const name = (location.name)
250+
const url = `https://www.google.com/maps/@${location.coordinates.lat},${location.coordinates.lng},18z/data=!3m1!1e3`;
251+
alert('You are going to: ' + name)
252252
window.open(url, "_blank");
253253
});
254254
</script>

0 commit comments

Comments
 (0)