shitpost_view.html.tera 606 B

12345678910111213141516171819202122232425262728293031
  1. {% extends "base.html.tera" %}
  2. {% block content %}
  3. <div class="container">
  4. <table>
  5. <thead>
  6. {}
  7. </thead>
  8. </table>
  9. </div>
  10. <script lang='js'>
  11. function get_vid(type_id) {
  12. axios({
  13. method:'get',
  14. url: `/shitpost/${type_id}`
  15. })
  16. .then((response) => {
  17. // handle success
  18. window.open(response.data.url, "_blank").focus();
  19. })
  20. .catch((error) => {
  21. // handle error
  22. console.log(error);
  23. })
  24. }
  25. </script>
  26. {% endblock content %}