Skip to content

Instantly share code, notes, and snippets.

@tmeasday
Created September 29, 2011 23:42
Show Gist options
  • Save tmeasday/1252254 to your computer and use it in GitHub Desktop.
Save tmeasday/1252254 to your computer and use it in GitHub Desktop.
Tom's idea for update()
function update(url) {
var index = $buttons.find('[href=' + url + ']').parents('li').index();
$buttons.removeClass('current').eq(index).addClass('current');
$slides.removeClass('current').eq(index).addClass('current');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment