Difference between revisions of "Template:UCSF/test template"

m (toolbar)
m (toolbar)
Line 12: Line 12:
 
$(window).scroll(function(){
 
$(window).scroll(function(){
 
     // If you have scrolled down...
 
     // If you have scrolled down...
     if($(document).scrollTop() > 20)
+
     if($(document).scrollTop() > 50)
 
     {  // ...and the header is big
 
     {  // ...and the header is big
 
         if($('#header_nav').data('size') == 'big')
 
         if($('#header_nav').data('size') == 'big')
Line 39: Line 39:
 
                 height:'178px'
 
                 height:'178px'
 
             },100);
 
             },100);
             $('a.tiny').removeClass('tiny', $(document).scrollTop() <= 19);
+
             $('a.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
             $('h1.logo.tiny').removeClass('tiny', $(document).scrollTop() <= 19);
+
             $('h1.logo.tiny').removeClass('tiny', $(document).scrollTop() <= 49);
 
         }   
 
         }   
 
     }   
 
     }   

Revision as of 23:36, 3 September 2015