Browse Source

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).
Tom Hoover 4 years ago
parent
commit
6376d68f2a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      search/index.md

+ 2
- 2
search/index.md View File

@@ -13,7 +13,7 @@ sitemap: false
13 13
 <!-- Search form -->
14 14
 <form method="get" action="{{ site.url }}/search/" data-search-form class="simple-search">
15 15
   <label for="q">Search {{ site.title }} for:</label>
16
-  <input type="search" name="q" id="q" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" />
16
+  <input type="search" name="q" id="q" placeholder="What are you looking for?" data-search-input id="goog-wm-qt" autofocus />
17 17
   <input type="submit" value="Search" id="goog-wm-sb" />
18 18
 </form>
19 19
 
@@ -28,4 +28,4 @@ sitemap: false
28 28
   <li><article>
29 29
     <a href="##Url##">##Title## <span class="excerpt">##Excerpt##</span></a>
30 30
   </article></li>
31
-</script>
31
+</script>

Loading…
Cancel
Save