A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
703 B

  1. extends layout
  2. block content
  3. div.uk-grid
  4. br
  5. br
  6. div.uk-width-1-1.uk-text-center
  7. h1 #{ucfirst(title)} Fan Art
  8. div.uk-width-1-1
  9. div#fan-art.uk-panel.uk-panel-box
  10. block postscript
  11. script.
  12. var art = !{JSON.stringify(fanart)};
  13. var $holder = $(".uk-panel-box");
  14. art.forEach(function(elem) {
  15. var $thumb = $("<a href='"+elem.url+"' class='uk-thumbnail uk-thumbnail-small'></a>");
  16. $thumb.append("<img src='"+elem.url+"' />");
  17. $thumb.append("<div class='uk-thumbnail-caption'>Artist: <a href='"+elem.user_link+"'>"+elem.user+"</a></div>");
  18. $holder.append($thumb);
  19. });