Skip to content

Commit

Permalink
change pin size
Browse files Browse the repository at this point in the history
  • Loading branch information
geh4y8 committed Nov 16, 2014
1 parent d006065 commit 079c510
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 12 deletions.
9 changes: 9 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"firebase": "pdxshelters",
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
Binary file added img/bed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/food.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/no1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/no10+.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/no10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/no9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/pets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/shower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/wifi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions js/pdxshelters.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,23 @@ function loadMarker(child){
}

function modalContent(child){
console.log(child)
console.log(child.hours)
var contentString = "<div id='phone'>" + child.phone + "</div>" + "<div id='hours'> Open: " + child.hours.open + " Close: " + child.hours.close + "</div>" + "<a href=" + child.url + ">"+ child.url+ "</a>"
//console.log(child)
console.log(child.facilities.pets)
var contentString = "<div id='wrapper' style='width: 100%; height: 200px; font-size: 20px'><div id='name'>"+ child.name + "</div><div id='phone'>" + child.phone + "</div>" + "<div id='hours'> Open: " + child.hours.open + " Close: " + child.hours.close + "</div>" + "<a href=" + child.url + ">"+ child.url+ "</a><br/>"

if(child.showers === 1){
contentString.concat("<img src=....>")
if(child.facilities.shower == true){
contentString += ("<img src='/img/shower.png'>")
}
if(child.wifi === 1){
contentString.concat("<img src=...>")
if(child.facilities.wifi == true){
contentString += ("<img src='/img/wifi.png'>")
}
if(child.pets === 1){
contentString.concat("<img src=...>")
if(child.facilities.pets == true){
contentString += ("<img src='/img/pets.png'>")
}
if(child.food === 1){
contentString.concat("<img src=...>")
if(child.facilities.food == true){
contentString += ("<img src='/img/food.png'>")
}
return contentString
return contentString + "</div>"
}

sheltersFirebaseRef.on('value', function(dataSnapshot){
Expand Down

0 comments on commit 079c510

Please sign in to comment.