From b6babd67e90b73f94f76a69edadfffd5d83c59ca Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 23 Feb 2021 07:49:33 -0600 Subject: hw3 --- csci4131/hw3/Untitled.png | Bin 0 -> 91 bytes csci4131/hw3/contacts.js | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 csci4131/hw3/Untitled.png diff --git a/csci4131/hw3/Untitled.png b/csci4131/hw3/Untitled.png new file mode 100644 index 0000000..92a4aa1 Binary files /dev/null and b/csci4131/hw3/Untitled.png differ diff --git a/csci4131/hw3/contacts.js b/csci4131/hw3/contacts.js index 94340b2..a8c4b26 100644 --- a/csci4131/hw3/contacts.js +++ b/csci4131/hw3/contacts.js @@ -39,7 +39,8 @@ function addPoints(locations) { map, position: locations[x].geometry.location, title: newEntry.getElementsByClassName("name")[0].textContent, - data : { + icon: "./Untitled.png", + data: { content: "
" + "" + newEntry.getElementsByClassName("name")[0].textContent + "" + "
" + newEntry.getElementsByClassName("category")[0].textContent + "
" + @@ -52,7 +53,7 @@ function addPoints(locations) { if (!this.infoWindow) { this.infoWindow = new google.maps.InfoWindow({ content: this.data.content, - // content: newEntry.getElementsByClassName("address")[0], + }); } this.infoWindow.open(map, this); -- cgit v1.2.3