1
0
Fork 0

Autofocus search field on main page

This commit is contained in:
Piotr Dobrowolski 2017-10-02 20:20:22 +02:00
parent 09c1ac39bd
commit f3d58aaee1
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<form action="/search"> <form action="/search">
<div class="input-group input-group-lg"> <div class="input-group input-group-lg">
<input type="text" class="form-control" name="q" placeholder="search term"> <input type="text" class="form-control" name="q" placeholder="search term" autofocus>
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button> <button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</span> </span>