function change(small, row) { document.getElementsByClassName("smol")[row].src = small; } function lucky() { var image = ["carlson.jpg", "johnston.jpg", "morrill.jpg", "shepherd.jpg", "snyder.jpg", "walter.jpg"]; document.getElementById("bigboi").src = image[Math.floor(6 * Math.random())]; } let map; function initMap() { map = new google.maps.Map(document.getElementById("map"), { center: { lat: 44.9727, lng: -93.23540000000003 }, zoom: 14, }); var service = new google.maps.places.PlacesService(map); entries = document.getElementsByClassName("entry"); locations = []; for (e=0; e" + "" + newEntry.getElementsByClassName("name")[0].textContent + "" + "
" + newEntry.getElementsByClassName("category")[0].textContent + "
" + 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, // content: newEntry.getElementsByClassName("address")[0], }); } this.infoWindow.open(map, this); }) } }