Skip to content

Commit

Permalink
Merge pull request #245 from jdknight/use-noscript-for-search-js-dete…
Browse files Browse the repository at this point in the history
…ction

Use noscript for search js notification
  • Loading branch information
pradyunsg authored Sep 22, 2021
2 parents 3c4e948 + 2573e84 commit 4012c4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/furo/theme/furo/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
{%- endblock htmltitle -%}

{% block content %}
<div id="fallback" class="admonition error">
<noscript>
<div class="admonition error">
<p class="admonition-title">{% trans %}Error{% endtrans %}</p>
<p>
{% trans %}Please activate JavaScript to enable the search functionality.{% endtrans %}
</p>
</div>
<script>document.getElementById('fallback').hidden = true;</script>
</noscript>

<div id="search-results"></div>
{% endblock %}
Expand Down

0 comments on commit 4012c4d

Please sign in to comment.