Skip to content

Commit

Permalink
Display "#searchbox" with plain javascript instead of jQuery
Browse files Browse the repository at this point in the history
Since Sphinx removed jQuery in v6.0.0
  • Loading branch information
AutonomousCat committed Feb 2, 2024
1 parent 219da05 commit 6f6c43a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ehsphinx/searchbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
<script type="text/javascript">
document.querySelector("#searchbox").style.display="block";
</script>
{%- endif %}

0 comments on commit 6f6c43a

Please sign in to comment.