search.html 1.3 KB

12345678910111213141516171819202122
  1. <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
  2. <a id="search_logo" href="{{ url_for('index') }}">
  3. <span hidden>SearXNG</span>
  4. {% include '__common__/searxng-wordmark.min.svg' without context %}
  5. </a>
  6. <div id="search_wrapper">
  7. <div class="search_box">
  8. <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} >
  9. <button id="clear_search" type="button" tabindex="-1"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('Clear search') }}</span></button>
  10. <button id="send_search" type="submit" tabindex="-1"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('Start search') }}</span></button>
  11. </div>
  12. <div class="search_filters">
  13. {% include 'simple/languages.html' %}
  14. {% include 'simple/time-range.html' %}
  15. </div>
  16. </div>
  17. {% set display_tooltip = true %}
  18. {% include 'simple/categories.html' %}
  19. <input type="hidden" name="safesearch" value="{{ safesearch }}" >
  20. <input type="hidden" name="theme" value="{{ theme }}" >
  21. {% if timeout_limit %}<input type="hidden" name="timeout_limit" value="{{ timeout_limit|e }}" >{% endif %}
  22. </form>