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 +++---- csci4131/hw3/myContacts.html | 21 ++++++++++++++++++--- csci4131/hw3/style.css | 27 +++++++++++++++++++++++++-- 3 files changed, 46 insertions(+), 9 deletions(-) (limited to 'csci4131') 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); }) } } diff --git a/csci4131/hw3/myContacts.html b/csci4131/hw3/myContacts.html index 79b66ad..f9f2444 100644 --- a/csci4131/hw3/myContacts.html +++ b/csci4131/hw3/myContacts.html @@ -75,9 +75,24 @@ Goldy Gopher
-

-
- + + +
+ + +
g
+
+ +
diff --git a/csci4131/hw3/style.css b/csci4131/hw3/style.css index 3617820..aec2316 100644 --- a/csci4131/hw3/style.css +++ b/csci4131/hw3/style.css @@ -47,11 +47,13 @@ tr:nth-child(odd) { animation-play-state: paused; } @keyframes rotate{ - 100%{ transform:rotate(1turn) } // or 360deg + 100%{ transform:rotate(1turn) } } #map { + float: left; + clear: both; padding-top: 30%; - margin-top: 25em; + margin-top: 1em; margin-left: .2em; position: bottom; width: 60%; @@ -61,6 +63,27 @@ tr:nth-child(odd) { .id { text-align: center; } +#GooglyMap { + overflow: hidden; + display: inline-block; + position: absolute; +} +#SearchPoints { + margin-bottom: 80em; +} +.inputBox { + float: right; + clear: both; + border: 1px solid black; + width: 30%; + margin-right: 0; +} +.inputBox:nth-child(even) { + background-color:blanchedalmond; +} +.inputBox:nth-child(odd) { + background-color: burlywood; +} /* Form */ .Form { -- cgit v1.2.3