Guest User

flickr-jquery

a guest
Mar 31st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. this._printGallery = function(photos) {
  2. var element = this.element.find('.gallery-container');
  3. $.each(photos, function(key, photo) {
  4. var img = $('<img>', { 'class': 'thumb img-thumbnail flickr-img-responsive', src: photo.thumbnail });
  5. element.append($('<div></div>', { 'class': ' col-md-3 col-sm-4 col-center weblizar-flickr-div' })
  6. .append($('<a></a>', { 'class': '', title: photo.title, href: photo.href, 'data-gallery': '' }).hide()
  7. .append(img))
  8. .append($('<p></p>', { 'class': ''}).show()
  9. .append(photo.title)));
  10. });
Add Comment
Please, Sign In to add comment