Difference between revisions of "Template:Team:TU Darmstadt/MainMenu"

Line 145: Line 145:
 
$window.scroll(function() {
 
$window.scroll(function() {
 
     if ( $window.scrollTop() >= distance ) {
 
     if ( $window.scrollTop() >= distance ) {
         .navbar.css('position: fixed');
+
         $('.navbar').css('position: fixed');
 
console.log('on top');
 
console.log('on top');
 
     }
 
     }

Revision as of 09:34, 13 October 2016