Difference between revisions of "Template:Freiburg/MenubarTest"
Line 493: | Line 493: | ||
/*Attachable menu code*/ | /*Attachable menu code*/ | ||
$( document ).ready(function() { | $( document ).ready(function() { | ||
− | + | //overwrite css | |
+ | $("#header").css('position','fixed'); | ||
+ | $("#header").css('width','100%'); | ||
+ | $("#page-content").css('margin-top', '100'); | ||
+ | |||
+ | |||
$(window).scroll(function (event) { | $(window).scroll(function (event) { | ||
var y = $(this).scrollTop(); | var y = $(this).scrollTop(); | ||
− | + | ||
if(y>61){ | if(y>61){ | ||
+ | $("#header").css('position','fixed'); | ||
+ | $("#header").css('width','100%'); | ||
$("#header").css('margin-top','-61'); | $("#header").css('margin-top','-61'); | ||
$("#bottom-arrow").css('display','none'); | $("#bottom-arrow").css('display','none'); |
Revision as of 23:15, 9 September 2015