Fix android javascript
This commit is contained in:
parent
f9f4c79ca2
commit
27c1951a3b
|
@ -18,6 +18,7 @@
|
||||||
<form class="sticky-top" id="search-form">
|
<form class="sticky-top" id="search-form">
|
||||||
<div class="ui-widget" id="search-widget">
|
<div class="ui-widget" id="search-widget">
|
||||||
<input id="search-bar" placeholder="Search..." type="text" autocorrect="off" autocapitalize="none" autofocus>
|
<input id="search-bar" placeholder="Search..." type="text" autocorrect="off" autocapitalize="none" autofocus>
|
||||||
|
<input type="submit" style="display: none" />
|
||||||
</div>
|
</div>
|
||||||
<select id="langs">
|
<select id="langs">
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -72,7 +72,7 @@ $(document).ready(() => {
|
||||||
searchForm.on('submit', e => {
|
searchForm.on('submit', e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const word = e.target[0].value
|
const word = e.target[0].value.trim();
|
||||||
|
|
||||||
window.location.hash = `#${word}`;
|
window.location.hash = `#${word}`;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue