enable search field autofocus
All checks were successful
website-main / prod-build (push) Successful in 47s
website-main / test-build (push) Successful in 17s

This commit is contained in:
Denys Konovalov 2023-09-30 12:13:37 +02:00
parent bfc072c745
commit 8408ebf944
2 changed files with 3 additions and 2 deletions

@ -29,7 +29,8 @@
zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden", zero_results: "Leider konnten keine Ergebnisse zu [SEARCH_TERM] gefunden werden",
clear_search: "Löschen" clear_search: "Löschen"
} }
}); });
document.getElementsByClassName("pagefind-ui__search-input")[0].autofocus=true;
}); });
</script> </script>

@ -67,7 +67,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
<li class="nav-item"> <li class="nav-item">
<div class="nav-link nav-search" onclick="$('#pagefind-search').modal('show');">Suche</button> <div class="nav-link nav-search" id="search-button" onclick="$('#pagefind-search').modal('show');">Suche</div>
</li> </li>
</ul> </ul>
</div> </div>