Created
March 23, 2012 17:38
-
-
Save nsfmc/2173090 to your computer and use it in GitHub Desktop.
This file contains 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
$(function(){ | |
$(".project_list a").click( | |
function(evt){ | |
evt.preventDefault(); | |
var dest = $(this).attr("href"); // the link destination | |
$('html,body').animate({scrollTop: $(dest).offset().top},'slow', | |
function(){window.location.hash = dest} // change the window hash | |
); | |
} | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment