123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {% extends 'base.html' %}
- {% load humanize %}
- {% load static %}
- {% block content %}
- <br>
- <script>
- window.onkeydown = function( event ) {
- if ( event.keyCode === 27 ) {
- window.close(); // closes current tab
- }
- };
- </script>
- <div id="untube-searchbar-results">
- <div class="d-flex justify-content-center">
- <h1> Search all of UnTube
- {% if user.profile.open_search_new_tab %}<h6>Press <kbd>Esc</kbd> to close.</h6>{% endif %}
- </h1>
- </div>
- <input class="form-control me-lg-2" type="text"
- id="untubeSearchBar"
- name="search" placeholder="Search UnTube"
- hx-post="{% url 'search_UnTube' %}"
- hx-trigger="keyup changed delay:700ms"
- hx-target="#untube-searchbar-results"
- hx-include="[id='searchbar-radio-form']"
- hx-indicator=".htmx-indicator" autofocus>
- <br>
- <div id="searchbar-radio-form">
- <div class="d-flex justify-content-center">
- <div class="form-check me-5">
- <input class="form-check-input" type="radio" name="search-settings" value="starts-with" id="starts-with-cb" checked>
- <label class="form-check-label" for="starts-with-cb">
- Starts with
- </label>
- </div>
- <div class="form-check">
- <input class="form-check-input" type="radio" name="search-settings" value="contains" id="contains-cb">
- <label class="form-check-label" for="contains-cb">
- Contains
- </label>
- </div>
- </div>
- </div>
- </div>
- <div id="spinner" class="htmx-indicator d-flex justify-content-center">
- <div class="spinner-border text-light" role="status">
- </div>
- </div>
- {% endblock %}
|