enable search field autofocus
This commit is contained in:
parent
bfc072c745
commit
8408ebf944
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user