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
parent 7956577cf4
commit 6376d68f2a

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>