DotaNoobs main site.
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.

83 lines
3.9 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Dota Noobs - Friends{% endblock %}
  3. {% block content %}
  4. <div class="uk-grid">
  5. <div class="uk-width-1-1 uk-text-center botpad">
  6. <h2 class="uk-container-center">The Legend Himself: Pyrion Flax</h2>
  7. <img src="{{ url_for('static', filename='img/pyrion.png') }}">
  8. <p>Pyrion is a pretty cool guy. He loves shane, and we love him. Check out some of his awesome work:</p>
  9. <div class="uk-grid">
  10. <div class="uk-width-1-3"><h3><a href="http://www.youtube.com/user/tedhimself">YouTube</a></h3><img src="{{ url_for('static', filename='img/pyrion-youtube.jpg') }}"></div>
  11. <div class="uk-width-1-3"><h3><a href="http://www.twitch.tv/pyrionflax">Twitch.tv</a></h3><img src="{{ url_for('static', filename='img/pyrion-twitch.png') }}"></div>
  12. <div class="uk-width-1-3"><h3><a href="http://www.facebook.com/pyrion.flax">FaceBook</a></h3><img src="{{ url_for('static', filename='img/pyrion-facebook.jpg') }}"></div>
  13. </div>
  14. </div>
  15. <div class="uk-width-large-1-2 uk-width-medium-1-1 uk-text-center uk-panel botpad">
  16. <h2>Internet Friendlies:</h2>
  17. <p>DotA related websites worth the occasional visit. We know they are no DotaNoobs, but we set a pretty high quality standard around here.</p>
  18. <ul>
  19. <li><a href="http://www.reddit.com/r/DotA2/">Reddit's r/dota2</a></li>
  20. <li><a href="http://www.dotainsight.com">DotaInsight Podcast</a></li>
  21. <li><a href="http://dotabuff.com">DotaBuff</a></li>
  22. <li><a href="http://teamliquid.net/dota2/">Team Liquid Dota2</a></li>
  23. <li><a href="http://www.purgegamers.com">Purge Gamers</a></li>
  24. </div>
  25. <div class="uk-width-large-1-2 uk-width-medium-1-1 uk-text-center uk-panel">
  26. <h2>Streams We Like</h2>
  27. <ul id="streams">
  28. </ul>
  29. </div>
  30. </div>
  31. {% endblock %}
  32. {% block pagescripts %}
  33. <script>
  34. $(document).ready(function() {
  35. {% cache 60*5 %}
  36. // Add the streams
  37. var stream_url = "https://api.twitch.tv/kraken/streams/";
  38. var channels = ["2gd", "purgegamers", "synderen", "luminousinverse", "thegdstudio"]
  39. for (var idx in channels) {
  40. $.getJSON(stream_url+channels[idx]+"?callback=?", function(data) {
  41. if (data.stream) {
  42. var $a = $("<a href='"+data.stream.channel.url+"'></a>");
  43. var $strm = $("<div class='dn-streamer uk-text-success uk-panel uk-panel-box' id='"+data.stream.channel.name+"'></div>");
  44. $strm.append("<p class='uk-text-bold'>" + data.stream.channel.display_name + "</p>");
  45. $strm.append("<img src='" + data.stream.preview.small + "' />");
  46. $strm.append("<p><i class='uk-icon-male'></i> "+data.stream.viewers+"</p>");
  47. $a.append($strm);
  48. $("#streams").prepend($a);
  49. } else {
  50. $.getJSON(data._links.channel+"?callback=?", function(data) {
  51. var $a = $("<a href='"+data.url+"'></a>");
  52. var $strm = $("<div class='dn-streamer-offline uk-text-success uk-panel uk-panel-box' id='"+data.name+"'></div>");
  53. $strm.append("<p class='uk-text-bold'>" + data.display_name + "</p>");
  54. $strm.append("<img src='" + data.logo + "' />");
  55. $strm.append("<p class='dn-offline'>Offline</p>");
  56. $a.append($strm);
  57. $("#streams").append($a);
  58. });
  59. }
  60. });
  61. }
  62. {% endcache %}
  63. $("#streams").on({
  64. mouseover: function() {
  65. $(this).addClass('dn-streamer-hover');
  66. },
  67. mouseleave: function() {
  68. $(this).removeClass('dn-streamer-hover');
  69. }
  70. }, "div");
  71. });
  72. </script>
  73. {% endblock %}