Skip to content

Instantly share code, notes, and snippets.

@andruu
Created January 6, 2013 17:12
Show Gist options
  • Save andruu/4468732 to your computer and use it in GitHub Desktop.
Save andruu/4468732 to your computer and use it in GitHub Desktop.
# Tabs
$('.tab').on 'click', ->
$('.tab').removeClass('active')
$(this).addClass('active')
opens = $(this).data('opens')
$('.tab-content').hide()
$(".tab-content[data-id='#{opens}']").show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment