From f9851bb87eb62a1d8adf35a8db5df531abbe098d Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 23 Feb 2021 17:40:36 -0600 Subject: aaaaaaaaaaaaaaaa --- csci4131/hw3/contacts.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'csci4131/hw3/contacts.js') diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js index af8c84e..50f72d8 100644 --- a/csci4131/hw3/contacts.js +++ b/csci4131/hw3/contacts.js @@ -45,7 +45,7 @@ function initMap() { function addPoints(locations) { for (x in locations) { - newEntry = document.getElementsByClassName("entry")[x]; + var newEntry = document.getElementsByClassName("entry")[x]; var marker = new google.maps.Marker({ map, position: locations[x].geometry.location, @@ -58,16 +58,15 @@ function addPoints(locations) { newEntry.getElementsByClassName("room")[0].textContent + " " + newEntry.getElementsByClassName("street")[0].textContent + "
" + newEntry.getElementsByClassName("city")[0].textContent + "", - } + }, }); marker.addListener('click', function () { if (!this.infoWindow) { this.infoWindow = new google.maps.InfoWindow({ content: this.data.content, }); - + this.infoWindow.open(map, this); } - this.infoWindow.open(map, this); }) } } -- cgit v1.2.3