feat: autofocus on URL and search field
This commit is contained in:
parent
3e3ce025da
commit
0ae7e4a827
@ -13,7 +13,7 @@ if (search) {
|
||||
</label>
|
||||
|
||||
<form action="/search" method="get" class="input-grid main-form-search">
|
||||
<%- include("./search-form.ejs") %>
|
||||
<%- include("./search-form.ejs", {focus: true}) %>
|
||||
</form>
|
||||
<%
|
||||
}
|
||||
@ -22,7 +22,7 @@ if (search) {
|
||||
|
||||
<form action="/get" method="get" class="input-grid <%= search ? "main-form-url" : "" %>">
|
||||
<div class="input">
|
||||
<input type="text" name="url" id="url" placeholder="URL">
|
||||
<input type="text" name="url" id="url" placeholder="URL" autofocus>
|
||||
</div>
|
||||
<div class="input">
|
||||
<input type="submit" id="submit" class="button" value="Parse">
|
||||
|
@ -1,2 +1,2 @@
|
||||
<input type="text" name="q" id="search" placeholder="Search">
|
||||
<input class="button" type="submit" value="Go"/>
|
||||
<input type="text" name="q" id="search" placeholder="Search" <%= locals.focus ? "autofocus" : "" %>>
|
||||
<input class="button" type="submit" value="Go" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user