We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 067ece0 commit e9b6de5Copy full SHA for e9b6de5
index.html
@@ -245,10 +245,10 @@
245
];
246
247
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
+ 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)
252
window.open(url, "_blank");
253
});
254
</script>
0 commit comments