Skip to content

Commit

Permalink
added 'autofocus' to search page
Browse files Browse the repository at this point in the history
Added 'autofocus' attribute to automatically select the search input form upon page load (eliminates the need to 'click' in the input field before typing the search term).
  • Loading branch information
tomhoover committed Jan 27, 2015
1 parent 7956577 commit 6376d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sitemap: false
<!-- Search form -->
<form method="get" action="{{ site.url }}/search/" data-search-form class="simple-search">
<label for="q">Search {{ site.title }} for:</label>
<input type="search" name="q" id="q" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" />
<input type="search" name="q" id="q" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" autofocus />
<input type="submit" value="Search" id="goog-wm-sb" />
</form>

Expand All @@ -28,4 +28,4 @@ sitemap: false
<li><article>
<a href="##Url##">##Title## <span class="excerpt">##Excerpt##</span></a>
</article></li>
</script>
</script>

0 comments on commit 6376d68

Please sign in to comment.