Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Forked from jrstaatsiii/gist:5877221
Created June 27, 2013 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/5877424 to your computer and use it in GitHub Desktop.
Save jchristopher/5877424 to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($){
if(location.hash){
if($(location.hash)){
setTimeout(function(){
var targetTop = $('#content').offset().top;
targetTop -= $('#header').height() + $('#nav').height() - 23;
$('body,html').scrollTop(targetTop);
}, 500);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment