diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2021-02-23 07:49:33 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2021-02-23 07:49:33 -0600 |
commit | b6babd67e90b73f94f76a69edadfffd5d83c59ca (patch) | |
tree | 8fed13f7a3f52edb69cd18b3980f3ba025826f05 /csci4131 | |
parent | I don't like JavaScript (diff) | |
download | homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar.gz homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar.bz2 homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar.lz homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar.xz homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.tar.zst homework-b6babd67e90b73f94f76a69edadfffd5d83c59ca.zip |
hw3
Diffstat (limited to 'csci4131')
-rw-r--r-- | csci4131/hw3/Untitled.png | bin | 0 -> 91 bytes | |||
-rw-r--r-- | csci4131/hw3/contacts.js | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/csci4131/hw3/Untitled.png b/csci4131/hw3/Untitled.png Binary files differnew file mode 100644 index 0000000..92a4aa1 --- /dev/null +++ b/csci4131/hw3/Untitled.png 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: "<div class='id'>" + "<b>" + newEntry.getElementsByClassName("name")[0].textContent + "</b>" + "<br>" + newEntry.getElementsByClassName("category")[0].textContent + "<br>" + @@ -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); |