Skip to content

Instantly share code, notes, and snippets.

@haingdc
Created April 10, 2018 03:03
Show Gist options
  • Select an option

  • Save haingdc/a0f3371ae93f77b28076b178a88087b1 to your computer and use it in GitHub Desktop.

Select an option

Save haingdc/a0f3371ae93f77b28076b178a88087b1 to your computer and use it in GitHub Desktop.

Revisions

  1. haingdc created this gist Apr 10, 2018.
    12 changes: 12 additions & 0 deletions photo-lister03.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    PhotoLister = {
    photoToListItem: function(photo) {
    return [
    '<li><figure><img src="',
    photo.url,
    '" alt=""/>',
    "<figcaption>",
    photo.title,
    "</figcaption></figure></li>",
    ].join("");
    },
    };