-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearchbox.html
30 lines (28 loc) · 1.05 KB
/
searchbox.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{#
basic/searchbox.html
~~~~~~~~~~~~~~~~~~~~
Sphinx sidebar template: quick search box.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- if pagename != "search" and builder != "singlehtml" %}
<div id="searchbox" style="display: none" role="search">
<hr/>
<form class="search am-form" action="{{ pathto('search') }}" method="get">
<fieldset>
<div class="am-form-group">
<label for="#quick-search">{{ _('Quick search') }}</label>
<input id="quick-search" type="text" name="q" />
</div>
<div class="am-form-group">
<input type="submit" class="am-btn am-btn-default" value="{{ _('Go') }}" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</fieldset>
</form>
</div>
<script type="text/javascript">
window.onload = function() { $('#searchbox').show(0); }
</script>
{%- endif %}