Template:Queens Canada/Header

From 2012.igem.org

(Difference between revisions)
Line 738: Line 738:
     var scrolltimer;
     var scrolltimer;
     var displayed = false;
     var displayed = false;
-
     var $message = $('#upbutton');
+
     var $message = $("#upbutton");
     var $window = $(window);
     var $window = $(window);
-
     var top = $('#topbarcontainer').position().top;
+
     var top = $("#topbarcontainer").position().top;
    
    
     /* react to scroll event on window */
     /* react to scroll event on window */
     $window.scroll(function () {
     $window.scroll(function () {
         window.clearTimeout(scrolltimer);
         window.clearTimeout(scrolltimer);
-
         scroll_timer = window.setTimeout(function () { // use a timer for performance
+
         scrolltimer = window.setTimeout(function () { // use a timer for performance
             if($window.scrollTop() <= top) // hide if at the top of the page
             if($window.scrollTop() <= top) // hide if at the top of the page
             {
             {

Revision as of 19:13, 5 July 2012

up
Control