Line 151: | Line 151: | ||
height:1000px; | height:1000px; | ||
width: 1000px; | width: 1000px; | ||
− | overflow: auto; | + | //overflow: auto; |
− | overflow-y: hidden; | + | //overflow-y: hidden; hide vertical |
− | overflow-x: hidden; | + | //overflow-x: hidden; hide horizontal |
} | } | ||
Line 999: | Line 999: | ||
} | } | ||
− | $( | + | $('html, body').animate( { scrollTop: $(target).offset().top - 90 },1000,function() { location.hash = target; }); |
} | } | ||
Line 1,009: | Line 1,009: | ||
if (location.hash){ | if (location.hash){ | ||
setTimeout(function(){ | setTimeout(function(){ | ||
− | $( | + | $('html, body').scrollTop(0).show(); |
$("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0); | $("body").scrollspy({target: "#myScrollspy", offset:100}); jump(); }, 0); | ||
} | } |
Revision as of 13:02, 31 October 2017