mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Revert back to vanilla search for now
This commit is contained in:
parent
aeef23f4d6
commit
3dbc1fa175
4 changed files with 3 additions and 128 deletions
|
|
@ -1,31 +0,0 @@
|
|||
{#
|
||||
basic/searchbox.html
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Variant for lunrJS search
|
||||
|
||||
#}
|
||||
{%- if pagename != "search" and builder != "singlehtml" %}
|
||||
<div id="searchbox" style="display: none" role="search">
|
||||
<h3 id="searchlabel">{{ _('Quick search') }}</h3>
|
||||
<div class="searchformwrapper">
|
||||
<form class="search" action="{{ pathto('search') }}" method="get">
|
||||
<input type="text" name="q" aria-labelledby="searchlabel" />
|
||||
<input type="submit" value="{{ _('Go') }}" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>$('#searchbox').show(0);</script>
|
||||
{%- endif %}
|
||||
|
||||
{#
|
||||
|
||||
Lunr indexed quick search
|
||||
|
||||
#}
|
||||
<p><input id="lunrsearch" type="text" placeholder="type something here"></p>
|
||||
<ul id="lunrsearchresults"></ul>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
|
||||
<script src="https://unpkg.com/lunr/lunr.js"></script>
|
||||
<script src="_static/js/lunr/search.js"></script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue