2
0

video.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{post.title}} on {{post.date|date:"MM.dd"}}{% endblock %}
  3. {% block head %}
  4. {% include "/html/partials/video-head.html" %}
  5. <style type="text/css">
  6. #steemit-login-container {display: none;}
  7. </style>
  8. {% endblock %}
  9. {% block content %}
  10. <div id="custom-page">
  11. <div id="page-header">
  12. <h2>{{post.title}}</h2>
  13. </div>
  14. {% include "/html/partials/video-player.html" %}
  15. <script>
  16. //vid.onstalled, vid.onwaiting, vid.oncuechange, vid.ondurationchange, vid.onloadedmetadata. vid.onloadeddata. vid.onratechange, vid.onsuspend
  17. </script>
  18. {% if all steemit? post.steemit-permlink %}
  19. <button id="steemit-login-button" onclick="$('#steemit-login-container').show(); $(this).hide();" title="We encourage you to VIEW SOURCE, or vote on SteemIt">STEEM Login</button>
  20. <span class="view-on-steemit"><a href="https://steemit.com/@{{ post.steemit-author }}/{{ post.steemit-permlink }}">View on SteemIt</a></span>
  21. {% include "/html/partials/steem-login.html" with form-id="steemit-login" login-function="loginUser" cancel-function="cancelLoginUser" logout-function="logoutUser" %}
  22. <script>
  23. var STEEMIT_API_URL = '{{ steemit-api-url }}';
  24. var STEEMIT_AUTHOR = '{{ post.steemit-author }}';
  25. var STEEMIT_PERMLINK = '{{ post.steemit-permlink }}';
  26. </script>
  27. {% script "js/steem-login.js" %}
  28. <div id="vote-video">
  29. STEEM Vote:
  30. <button class="vote-up" onclick="voteUp()">UP <span class="count"></span></button>
  31. <button class="vote-down" onclick="voteDown()">DOWN <span class="count"></span></button>
  32. </div>
  33. {% endif %}
  34. {{post.content|safe}}
  35. {% include "/html/partials/post-pagination.html" %}
  36. </div>
  37. {% endblock %}