Difference between revisions of "Template:Freiburg/MenubarTest"
Line 803: | Line 803: | ||
/*Attachable menu code*/ | /*Attachable menu code*/ | ||
$( document ).ready(function() { | $( document ).ready(function() { | ||
− | + | ||
$(window).scroll(function (event) { | $(window).scroll(function (event) { | ||
var y = $(this).scrollTop(); | var y = $(this).scrollTop(); | ||
Line 827: | Line 827: | ||
}); | }); | ||
− | + | /*fix for when the page loads on a position other than top */ | |
+ | $window.scroll(); | ||
}); | }); | ||
Revision as of 21:39, 16 September 2015