Difference between revisions of "Template:Bielefeld-CeBiTec/js/stylesheet"
Line 1: | Line 1: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
− | var shiftWindow = function() { scrollBy(0, - | + | var shiftWindow = function() { scrollBy(0, -80) }; |
window.addEventListener("hashchange", shiftWindow); | window.addEventListener("hashchange", shiftWindow); | ||
function load() { if (window.location.hash) shiftWindow(); } | function load() { if (window.location.hash) shiftWindow(); } | ||
load(); | load(); | ||
}); | }); |
Revision as of 21:10, 16 August 2015
$(document).ready(function () { var shiftWindow = function() { scrollBy(0, -80) }; window.addEventListener("hashchange", shiftWindow); function load() { if (window.location.hash) shiftWindow(); } load(); });