Skip to content

Commit

Permalink
Auto-focus google search on load. Auto-select query text on google se…
Browse files Browse the repository at this point in the history
…arch
  • Loading branch information
dracflamloc committed Feb 19, 2011
1 parent 103da86 commit fa46843
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.php
Expand Up @@ -28,6 +28,8 @@

setupFolderIntercepts();
setupBookmarkIntercepts();

$('#gsearchtext').focus();
});

function setupFolderIntercepts()
Expand Down Expand Up @@ -95,8 +97,8 @@ function setupBookmarkIntercepts()
<!-- google search box -->
<div class="desktop" id="googlesearch">
<form method="get" action="http://www.google.com/search" target="_blank">
<input type="text" name="q" size="15" maxlength="255" value="" />
<input type="submit" value="Google" />
<input type="text" id="gsearchtext" name="q" size="15" maxlength="255" value="" />
<input type="submit" value="Google" onclick="$('#gsearchtext').select();" />
</form>
</div>

Expand Down

0 comments on commit fa46843

Please sign in to comment.