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.

32 lines
1.0 KiB

  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 Potato 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 = [
  13. {
  14. url: "https://pbs.twimg.com/media/BjxJdEFCcAAO15X.png:large",
  15. user: "Hraugur",
  16. user_link: "https://twitter.com/Hraugur"
  17. },
  18. {
  19. url: "https://pbs.twimg.com/media/BjxJdEFCcAAO15X.png:large",
  20. user: "Hraugur",
  21. user_link: "https://twitter.com/Hraugur"
  22. },
  23. ];
  24. var $holder = $(".uk-panel-box");
  25. art.forEach(function(elem) {
  26. var $thumb = $("<a href='"+elem.url+"' class='uk-thumbnail uk-thumbnail-small'></a>");
  27. $thumb.append("<img src='"+elem.url+"' />");
  28. $thumb.append("<div class='uk-thumbnail-caption'>Artist: <a href='"+elem.user_link+"'>"+elem.user+"</a></div>");
  29. $holder.append($thumb);
  30. });