Skip to content

Instantly share code, notes, and snippets.

@jonathanstark
Last active December 28, 2015 20:29
Show Gist options
  • Save jonathanstark/7557800 to your computer and use it in GitHub Desktop.
Save jonathanstark/7557800 to your computer and use it in GitHub Desktop.
TechCrunch blog post: A typical functional implementation
function toggleSpeakerBio(target) {
closeTransientElementsExcept('speaker');
if (target.hasClass('active')) {
target.removeClass('active');
} else {
$('.speaker-block').removeClass('active');
target.addClass('active');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment