added 'autofocus' to search page

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).
This commit is contained in:
Tom Hoover 2015-01-26 21:44:22 -06:00 committed by Michael Rose
parent 1a389c9f3f
commit 83f393b900

View file

@ -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>
@ -28,4 +28,4 @@ sitemap: false
<li><article>
<a href="##Url##">##Title## <span class="excerpt">##Excerpt##</span></a>
</article></li>
</script>
</script>