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.

53 lines
1.5 KiB

4 years ago
  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}Technical Incompetence - Home{% endblock %}
  3. {% block styles %}
  4. {{super()}}
  5. <link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
  6. {% endblock %}
  7. {% block navbar %}
  8. <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
  9. <div class="navbar-brand">Technical Incompetence</div>
  10. <form class="form-inline ml-auto">
  11. {% if account_url is defined and account_url != '' %}
  12. <a class="btn btn-primary" href="{{ account_url }}" role="button">My Account</a>
  13. {% endif %}
  14. </form>
  15. </nav>
  16. {% endblock %}
  17. {% block content %}
  18. <div class="container" style="margin-top: 15px">
  19. {% if search['active'] == True %}
  20. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
  21. <input type="text" class="form-control" id="search-box" placeholder="Search">
  22. </div>
  23. <br><br>
  24. {% endif %}
  25. <div class="row">
  26. {% for app in apps %}
  27. {% include "card.j2" %}
  28. {% endfor %}
  29. </div>
  30. </div>
  31. {% endblock %}
  32. {% block scripts %}
  33. {{ super () }}
  34. <script>
  35. $("#search-box").keyup(function(event) {
  36. if (event.keyCode === 13) {
  37. window.location = '{{ search['search_url'] }}' + $('#search-box').val();
  38. }
  39. });
  40. $( ".card" ).hover(
  41. function() {
  42. $(this).addClass('shadow-lg').css('cursor', 'pointer');
  43. $(this).addClass('card-hover');
  44. }, function() {
  45. $(this).removeClass('shadow-lg');
  46. $(this).removeClass('card-hover');
  47. });
  48. </script>
  49. {% endblock %}