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.

71 lines
3.7 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.</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-online">
  28. </ul>
  29. <hr id="stream-divider" class="uk-article-divider" style="display:none;" />
  30. <ul id="streams-offline">
  31. </ul>
  32. </div>
  33. </div>
  34. {% endblock %}
  35. {% block pagescripts %}
  36. <script>
  37. $(document).ready(function() {
  38. // Add the streams
  39. var stream_url = "https://api.twitch.tv/kraken/streams/";
  40. var channels = ["sheevergaming", "purgegamers", "synderen", "luminousinverse", "lddota"]
  41. for (var idx in channels) {
  42. $.getJSON(stream_url+channels[idx]+"?callback=?", function(data) {
  43. if (data.stream) {
  44. $('#streams-online').append("<article class='uk-article' id='" + data.stream.channel.name + "'>");
  45. var jquery_selector = '#'+data.stream.channel.name;
  46. $(jquery_selector).append("<a href='"+data.stream.channel.url+"'><h4>" + data.stream.channel.display_name + "</h4></a>")
  47. var span_text = "<p class='uk-article-meta'>";
  48. span_text = span_text + "Playing: " + data.stream.game + "<br />";
  49. span_text = span_text + "Viewers: " + data.stream.viewers + "<br />";
  50. span_text = span_text + "</p>";
  51. $(jquery_selector).append(span_text);
  52. $(jquery_selector).append("<img src='" + data.stream.preview.medium + "' class='' />")
  53. $('#streams-online').append("</article>");
  54. $('#stream-divider').show();
  55. } else {
  56. $.getJSON(data._links.channel+"?callback=?", function(data) {
  57. $('#streams-offline').append("<article class='uk-article' id='" + data.name + "'>");
  58. $('#'+data.name).append("<a href='"+data.url+"'><h4>" + data.display_name + "</h4></a>");
  59. $('#'+data.name).append("<img src='" + data.logo + "' style='float: right;' width='62' height='62' /><br />");
  60. $('#'+data.name).append("<p class='uk-article-meta'><strong>Offline</strong></p>");
  61. $('#streams-offline').append("</div>");
  62. });
  63. }
  64. });
  65. }
  66. });
  67. </script>
  68. {% endblock %}