Skip to content

Instantly share code, notes, and snippets.

@backflip
Created November 20, 2012 18:35
Show Gist options
  • Save backflip/4119970 to your computer and use it in GitHub Desktop.
Save backflip/4119970 to your computer and use it in GitHub Desktop.
$(function() {
var hash = window.location.hash,
field = document.tweetfinder.user;
if (hash) {
hash = hash.substring(1);
// Fill field
field.value = hash;
// Do the magic
checkUser(hash);
}
$('#searchform').submit(function(e) {
...
// Update URL
window.location.hash = myUser;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment