diff options
Diffstat (limited to 'searx/templates/base.html')
| -rw-r--r-- | searx/templates/base.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/base.html b/searx/templates/base.html index 2823c684e..d86982a59 100644 --- a/searx/templates/base.html +++ b/searx/templates/base.html @@ -13,13 +13,19 @@ {% block head %} <link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/> {% endblock %} + <script type="text/javascript"> + searx = {}; + searx.autocompleter = {% if client.autocompleter %}true{% else %}false{% endif %}; + </script> </head> <body> <div id="container"> {% block content %} {% endblock %} +{% if client.autocompleter %} <script src="{{ url_for('static', filename='js/mootools-core-1.4.5-min.js') }}" ></script> <script src="{{ url_for('static', filename='js/mootools-autocompleter-1.1.2-min.js') }}" ></script> +{% endif %} <script src="{{ url_for('static', filename='js/searx.js') }}" ></script> </div> </body> |