diff options
author | resynth1943 <resynth1943@tutanota.com> | 2020-05-27 13:49:00 +0100 |
---|---|---|
committer | resynth1943 <resynth1943@tutanota.com> | 2020-05-27 13:49:00 +0100 |
commit | e84cdb66ae9842c304fde631517f8ebc9c7aaaaa (patch) | |
tree | 116c2b76022b0d25efd4b4ae46062c192d7c847b /searx/templates | |
parent | 2d4d0bdc0cdc239dee931ba98a95bd632eb645e2 (diff) | |
download | searxng-e84cdb66ae9842c304fde631517f8ebc9c7aaaaa.tar.gz searxng-e84cdb66ae9842c304fde631517f8ebc9c7aaaaa.zip |
Add autofocus to all search inputs
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/courgette/search.html | 2 | ||||
-rw-r--r-- | searx/templates/legacy/search.html | 2 | ||||
-rw-r--r-- | searx/templates/oscar/search.html | 2 | ||||
-rw-r--r-- | searx/templates/oscar/search_full.html | 2 | ||||
-rw-r--r-- | searx/templates/pix-art/search.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/search.html | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/searx/templates/courgette/search.html b/searx/templates/courgette/search.html index bd4efd42f..fe70fde05 100644 --- a/searx/templates/courgette/search.html +++ b/searx/templates/courgette/search.html @@ -1,6 +1,6 @@ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form"> <div id="search_wrapper"> - <input type="text" placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/> + <input type="text" autofocus placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="search" id="search_submit" /> </div> {% include 'courgette/categories.html' %} diff --git a/searx/templates/legacy/search.html b/searx/templates/legacy/search.html index 4d37f9ba1..fcd08d6d2 100644 --- a/searx/templates/legacy/search.html +++ b/searx/templates/legacy/search.html @@ -1,6 +1,6 @@ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form"> <div id="search_wrapper"> - <input type="text" placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" autocomplete="off" size="100" {% if q %}value="{{ q }}"{% endif %}/> + <input type="text" autofocus placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" autocomplete="off" size="100" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="search" id="search_submit" /> </div> {% set display_tooltip = true %} diff --git a/searx/templates/oscar/search.html b/searx/templates/oscar/search.html index 9978801ca..666a4df38 100644 --- a/searx/templates/oscar/search.html +++ b/searx/templates/oscar/search.html @@ -3,7 +3,7 @@ <div class="row"> <div class="col-xs-12 col-md-8"> <div class="input-group search-margin"> - <input type="search" name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> + <input type="search" autofocus name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> <span class="input-group-btn"> <button type="submit" class="btn btn-default" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button> <button type="reset" class="btn btn-default" aria-label="{{ _('Clear search') }}"><span class="hide_if_nojs">{{ icon('remove') }}</span><span class="hidden active_if_nojs">{{ _('Clear') }}</span></button> diff --git a/searx/templates/oscar/search_full.html b/searx/templates/oscar/search_full.html index ea821dc45..1f1c50e50 100644 --- a/searx/templates/oscar/search_full.html +++ b/searx/templates/oscar/search_full.html @@ -6,7 +6,7 @@ {% else %} <div class="input-group col-md-8 col-md-offset-2"> {% endif %} - <input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> + <input type="search" autofocus name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}" accesskey="s"> <span class="input-group-btn"> <button type="submit" class="btn btn-default input-lg" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button> <button type="reset" class="btn btn-default input-lg" aria-label="{{ _('Clear search') }}"><span class="hide_if_nojs">{{ icon('remove') }}</span><span class="hidden active_if_nojs">{{ _('Clear') }}</span></button> diff --git a/searx/templates/pix-art/search.html b/searx/templates/pix-art/search.html index 4d129ec68..bb40559db 100644 --- a/searx/templates/pix-art/search.html +++ b/searx/templates/pix-art/search.html @@ -1,6 +1,6 @@ <form method="{{ method or 'POST' }}" action="{{ url_for('index') }}" id="search_form"> <div id="search_wrapper"> - <input type="text" placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" size="100" {% if q %}value="{{ q }}"{% endif %}/> + <input type="text" autofocus placeholder="{{ _('Search for...') }}" id="q" class="q" name="q" tabindex="1" size="100" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="" id="search_submit" /> {% for category in categories %} <input type="hidden" name="category_{{ category }}" value="1"/> diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html index e9023b420..61d52dbc7 100644 --- a/searx/templates/simple/search.html +++ b/searx/templates/simple/search.html @@ -1,7 +1,7 @@ <form id="search" method="{{ method or 'POST' }}" action="{{ url_for('index') }}"> <div id="search_wrapper"> <div class="search_box"> - <input id="q" name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} > + <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} > <button id="clear_search" type="button" tabindex="-1"><span class="hide_if_nojs">{{ icon('close') }}</span><span class="show_if_nojs">{{ _('Clear search') }}</span></button> <button id="send_search" type="submit" tabindex="-1"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="show_if_nojs">{{ _('Start search') }}</span></button> </div> |