Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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