aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2021-02-23 07:49:33 -0600
committerRossTheRoss <mstrapp@protonmail.com>2021-02-23 07:49:33 -0600
commitb6babd67e90b73f94f76a69edadfffd5d83c59ca (patch)
tree8fed13f7a3f52edb69cd18b3980f3ba025826f05
parentI don't like JavaScript (diff)
downloadhomework-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
-rw-r--r--csci4131/hw3/Untitled.pngbin0 -> 91 bytes
-rw-r--r--csci4131/hw3/contacts.js5
2 files changed, 3 insertions, 2 deletions
diff --git a/csci4131/hw3/Untitled.png b/csci4131/hw3/Untitled.png
new file mode 100644
index 0000000..92a4aa1
--- /dev/null
+++ b/csci4131/hw3/Untitled.png
Binary files 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: "<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);