Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created January 27, 2010 22:38
Show Gist options
  • Save fleeting/288233 to your computer and use it in GitHub Desktop.
Save fleeting/288233 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$("#whatwedo").click(function() {
if ( $('#whatwedoSlider').is(':hidden') ) {
$("#whatwedoSlider").show("slide", { direction: "left" }, "slow");
$("#whatwedo a").addClass('active');
} else {
$("#whatwedoSlider").hide("slide", { direction: "left" }, "slow");
$("#whatwedo a").removeClass('active');
}
});
$('.scrollA').click(function(){
$.scrollTo("#" + $(this).attr("title"), 1000);
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment