Difference between revisions of "Template:Bielefeld-CeBiTec/js/stylesheet"
Line 4: | Line 4: | ||
function load() { if (window.location.hash) shiftWindow(); } | function load() { if (window.location.hash) shiftWindow(); } | ||
load(); | load(); | ||
+ | }); | ||
+ | |||
+ | $(document).ready(function(){ | ||
+ | |||
+ | $("#myNav").affix({ | ||
+ | |||
+ | offset: { | ||
+ | |||
+ | top: 195 | ||
+ | |||
+ | } | ||
+ | |||
+ | }); | ||
+ | |||
}); | }); |
Revision as of 22:40, 16 August 2015
$(document).ready(function () { var shiftWindow = function() { scrollBy(0, -80) }; window.addEventListener("hashchange", shiftWindow); function load() { if (window.location.hash) shiftWindow(); } load(); });
$(document).ready(function(){
$("#myNav").affix({
offset: {
top: 195
}
});
});