Team:DTU-Denmark/Templates/StartPage

From 2013.igem.org

(Difference between revisions)
Line 30: Line 30:
         $(window).scroll(function () {  
         $(window).scroll(function () {  
             var scrollPos = $(window).scrollTop();
             var scrollPos = $(window).scrollTop();
-
             if (scrollPos > 350) { <!-- this is height of banner plus 10 px -->
+
             if (scrollPos > 250) { <!-- this is height of banner plus 10 px -->
                 $(".navigation").addClass("stickToTop");
                 $(".navigation").addClass("stickToTop");
             } else {
             } else {

Revision as of 17:04, 4 October 2013