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.

43 lines
1.4 KiB

  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}tia.paste{% endblock %}
  3. {% block styles %}
  4. {{super()}}
  5. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  6. {% endblock %}
  7. {% block navbar %}
  8. {% include "fragments/navbar.j2" %}
  9. {% endblock %}
  10. {% block content %}
  11. <iframe id="apps" src="https://technicalincompetence.club/frame" width="305" height="400" class="shadow-lg overlay-frame" style="display: none;"></iframe>
  12. <div id="overlay" style="display: none;" onclick="showApps();"></div>
  13. <div class="container" style="margin-top: 15px">
  14. {% if success_msg %}
  15. <div id="success-alert" class="alert alert-success" role="alert">{{ success_msg }}</div>
  16. {% endif %}
  17. <div id="error-alert" class="alert alert-danger" role="alert" style="display: none;">{{ error_msg }}</div>
  18. <form method="post" enctype="multipart/form-data">
  19. <div class="row justify-content-center">
  20. <div class="col-lg-12">
  21. <label>Select an image:</label>
  22. <br>
  23. <input type=file name=file>
  24. <br><br>
  25. <button type="submit" class="btn btn-primary" id="submit">Upload Image</button>
  26. <br>
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. {% endblock %}
  32. {% block scripts %}
  33. {{ super() }}
  34. <script>
  35. function showApps () {
  36. $("#apps").toggle();
  37. $("#overlay").toggle();
  38. }
  39. </script>
  40. {% endblock %}