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.

72 lines
2.1 KiB

4 years ago
3 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
3 years ago
4 years ago
  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}Technical Incompetence - Home{% endblock %}
  3. {% block styles %}
  4. {{super()}}
  5. <link rel="icon" type="image/png" href="{{url_for('.static', filename='favicon.png')}}" />
  6. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  7. {% if countdown is defined %}
  8. <link rel="stylesheet" href="{{url_for('.static', filename='clock.css')}}">
  9. {% endif %}
  10. {% endblock %}
  11. {% block navbar %}
  12. {% include "fragments/navbar.j2" %}
  13. {% endblock %}
  14. {% block content %}
  15. <iframe id="apps" src="http://localhost:5000/frame" width="305" height="400" class="shadow-lg overlay-frame" style="display: none;"></iframe>
  16. <div id="overlay" style="display: none;" onclick="showApps();"></div>
  17. <div class="container" style="margin-top: 15px">
  18. {% if search['active'] == True %}
  19. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
  20. <input type="text" class="form-control" id="search-box" placeholder="Search">
  21. </div>
  22. <br><br>
  23. {% endif %}
  24. {% if countdown is defined %}
  25. {% include "fragments/countdown.j2" %}
  26. {% endif %}
  27. <p>{{ description }}</p>
  28. <div class="row">
  29. {% for app in apps %}
  30. {% include "fragments/card.j2" %}
  31. {% endfor %}
  32. </div>
  33. </div>
  34. {% endblock %}
  35. {% block scripts %}
  36. {{ super () }}
  37. {% if countdown is defined %}
  38. <script>
  39. const deadline = "{{ countdown['timestamp'] }}";
  40. const tripName = "{{ countdown['name'] }}";
  41. </script>
  42. <script src="{{url_for('.static', filename='clock.js')}}"></script>
  43. {% endif %}
  44. <script>
  45. $("#search-box").keyup(function(event) {
  46. if (event.keyCode === 13) {
  47. window.location = '{{ search['search_url'] }}' + $('#search-box').val();
  48. }
  49. });
  50. $( ".card" ).hover(
  51. function() {
  52. $(this).addClass('shadow-lg').css('cursor', 'pointer');
  53. $(this).addClass('card-hover');
  54. }, function() {
  55. $(this).removeClass('shadow-lg');
  56. $(this).removeClass('card-hover');
  57. });
  58. function goToLink(link) {
  59. window.location = link;
  60. }
  61. function showApps () {
  62. $("#apps").toggle();
  63. $("#overlay").toggle();
  64. }
  65. </script>
  66. {% endblock %}