Created
April 16, 2014 18:03
-
-
Save procload/10914690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checks to see if a tabbed URL corresponds to make it active | |
$url = $.url() | |
$anchor = $url.attr('anchor') | |
if $anchor.length > 0 | |
$('.responsive-tab-item').removeClass 'tab-is-active' | |
$(".responsive-tabs li##{$anchor}").addClass("tab-is-active") |
jordanthomas
commented
Apr 16, 2014
# Checks to see if a tabbed URL corresponds to make it active
tab = window.location.hash
if tab != ""
$('.responsive-tab-item').removeClass 'tab-is-active'
$(tab).addClass("tab-is-active")
$tab = $(window.location.hash)
if $tab.length
$('.responsive-tab-item').removeClass 'tab-is-active'
$tab.addClass("tab-is-active")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment