function jsonFlickrFeed_72177720304312690(photos) { let fwitems = null; fwitems = photos.items; if (fwitems) { let fwall = document.getElementById('fwall_72177720304312690'); //let fwall = document.getElementsByClassName('fwall_72177720304312690'); fwitems.forEach(function(item) { let elem = document.createElement('li'); let link = document.createElement('a'); link.setAttribute('href', item.link.replace('/in/set-72177720304312690','')); link.setAttribute('title', item.title); link.setAttribute('target', '_blank'); elem.appendChild(link); let image = document.createElement('img'); image.setAttribute('src', item.media.m.replace('_m.','.')); // Default photos in feed are 240px wide XXXX_m.jpg photos, but I want the 500px wide XXXX.jpg photos. image.setAttribute('alt', ' [Image: ' + item.title + '] '); image.setAttribute('loading', 'lazy'); link.appendChild(image); fwall.appendChild(elem); }); fwall.appendChild(document.createElement('li')); // End with an empty item. } }