DlgzRogelio / Project-1

MIT License
0 stars 1 forks source link

add default image for non pictured profiles #38

Open DlgzRogelio opened 2 years ago

ian-dot commented 2 years ago

I will add this code to the lines 23 to 28 of the script file: var imageEl = $(''); if (imgUrl!= null){ imageEl.attr('src', "https://image.tmdb.org/t/p/w500"+imgUrl); } else { imageEl.attr('src', 'https://via.placeholder.com/468x460?text=Come+Frutas+y+Verduras');
}