Template:Queens Canada/Header

From 2012.igem.org

(Difference between revisions)
Line 745: Line 745:
     $window.scroll(function () {
     $window.scroll(function () {
         window.clearTimeout(scrolltimer);
         window.clearTimeout(scrolltimer);
-
         scrolltimer = window.setTimeout(function () { // use a timer for performance
+
         scrolltimer = window.setTimeout(function () {  
-
             if($window.scrollTop() <= top) // hide if at the top of the page
+
             if($window.scrollTop() <= top)  
             {
             {
                 displayed = false;
                 displayed = false;
                 $message.fadeOut(500);
                 $message.fadeOut(500);
             }
             }
-
             else if(displayed === false) // show if scrolling down
+
             else if(displayed === false)  
             {
             {
                 $message.fadeIn(500);
                 $message.fadeIn(500);

Revision as of 19:17, 5 July 2012

up
Control