Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Gallery Thumbs
    $("div.thumbs > a").click(function (e){
        $("div.thumbs > a").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".gallery_content").hide(); //Hide all tab content
        
var activeTab = $(this).attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
setTimeout(function () {          
Cufon.refresh();          
anchor_fix()        
}, 150);
e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.