Difference between revisions of "Team:Uppsala/test5"

Line 23: Line 23:
  
 
#toc {
 
#toc {
     top: 310px;
+
     top: 650px;
 
     float: right;
 
     float: right;
 
    
 
    
Line 367: Line 367:
  
 
$(window).scroll(function(){
 
$(window).scroll(function(){
     var myFixedPositionInit = 310;
+
     var myFixedPositionInit = 650;
     $("#toc").css("top",Math.max(0, myFixedPositionInit - $(this).scrollTop()));
+
     $("#toc").css("top",Math.max(0, 650 - $(this).scrollTop()));
 +
 
 +
});
 +
 
 +
 
 +
 
  
  
Line 378: Line 383:
 
       sidebarTop = stickySidebar.offset().top;
 
       sidebarTop = stickySidebar.offset().top;
 
}
 
}
 +
 +
 +
  
 
// on scroll move the sidebar
 
// on scroll move the sidebar

Revision as of 21:49, 15 October 2018




Uppsala iGEM 2018