diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-03-25 18:00:45 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-03-25 18:00:45 +0100 |
| commit | 20504a0e834a99fb1274ad907c0b62fb90eb96d3 (patch) | |
| tree | e15473776d3311379c7a40234beaa7edbb97be53 /searx/templates/base.html | |
| parent | 0207070cde9d6319a3403d1a1c6b1a37c8d3c60c (diff) | |
| parent | a76525d1f3256105d45ee0a0f1301a8cc0b2e4c6 (diff) | |
Merge branch 'autocompleter' of https://github.com/pointhi/searx into autocomplete
Diffstat (limited to 'searx/templates/base.html')
| -rw-r--r-- | searx/templates/base.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/templates/base.html b/searx/templates/base.html index d1892245b..d86982a59 100644 --- a/searx/templates/base.html +++ b/searx/templates/base.html @@ -13,11 +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> |