Skip to content

Commit

Permalink
Added date in infobox
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommimon committed Apr 11, 2021
1 parent 8697d6d commit 3261a04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions map.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,8 @@ function displayInfobox(event) {

body.push('<div class="infowindow-content">');
body.push('<p>');
/*if(!(pin.metadata.image === undefined)) { // if image is defined
body.push('<img class="image" src="' + pin.metadata.image + '" alt="">');
}*/
body.push('<img class="image" src="' + imageBase + pin.metadata.goalNum + '.jpg' + '" alt="">')
body.push(pin.metadata.description + '</p>');
body.push(pin.metadata.description + '<br/>' + '<br/>' + pin.metadata.date + '</p>');
if (!(pin.metadata.link === undefined)) { // if link is defined
body.push('<div class="bottomtext"><a href="' + pin.metadata.link + '" target=_blank>Scopri di più...</a></div>');
}
Expand Down

0 comments on commit 3261a04

Please sign in to comment.