Added alt tag

This commit is contained in:
Brenda Wallace
2019-11-16 13:21:42 +13:00
parent c87ae7be29
commit 24f970f4f4

View File

@@ -77,7 +77,7 @@ function showMap(placesmap) {
var link = "<p><a href='/plantings/" + p.attributes.slug + "'>" + p.attributes['crop-name'] + "</a></p>";
var where = "<p><i>" + p.attributes.location + "</i></p>";
if (p.attributes['thumbnail']) {
where += '<img src="' + p.attributes['thumbnail'] + '">';
where += '<img src="' + p.attributes['thumbnail'] + ' alt="photo of planting">';
}
marker.bindPopup(link + where).openPopup();
markers.addLayer(marker);