Skip to content

Commit ca0c268

Browse files
committed
Autofocus on search box
Ensure that the input box will be focused when loading the page.
1 parent 0f970e4 commit ca0c268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/releases.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1 class="brand"><i class="fa fa-cubes fa-fw"></i> Docs.rs</h1>
66

77
<form action="/releases/search" method="GET" class="landing-search-form">
8-
<div><input class="search-input" name="query" type="text" placeholder="Search"></div>
8+
<div><input class="search-input" name="query" type="text" placeholder="Search" autofocus></div>
99
<div class="buttons">
1010
<button type="submit" class="pure-button pure-button-normal">Search</button>
1111
<button type="submit" class="pure-button pure-button-normal" id="i-am-feeling-lucky-button">I'm Feeling Lucky</button>

0 commit comments

Comments
 (0)