#591, hide search field if JS is not enabled
This commit is contained in:
parent
ecbe879801
commit
90eab4a917
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
{{ if default true .Site.Params.BookSearch }}
|
||||
<div class="book-search">
|
||||
<div class="book-search hidden">
|
||||
<input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" data-hotkeys="s/" />
|
||||
<div class="book-search-spinner hidden"></div>
|
||||
<ul id="book-search-results"></ul>
|
||||
</div>
|
||||
<script>document.querySelector(".book-search").classList.remove("hidden")</script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue