Template:Team:TU Munich/LabHeader

From 2012.igem.org

(Difference between revisions)
Line 114: Line 114:
     position: fixed;
     position: fixed;
     right: 0px;
     right: 0px;
-
     width: 100px;
+
     width: 150px;
      
      
}
}
Line 180: Line 180:
  });
  });
  $('.experiment h3 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})
  $('.experiment h3 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})
-
$('h1 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})
 
-
 
-
  var top = $('#labselect').offset().top - parseFloat($('#labselect').css('marginTop').replace(/auto/, 0));
 
-
  $(window).scroll(function (event) {
 
-
    // what the y position of the scroll is
 
-
    var y = $(this).scrollTop();
 
-
 
 
-
    // whether that's below the form
 
-
    if (y >= top) {
 
-
      // if so, ad the fixed class
 
-
      $('#labselect').addClass('fixed');
 
-
    } else {
 
-
      // otherwise remove it
 
-
      $('#labselect').removeClass('fixed');
 
-
    }
 
-
  });
 
-
 
});
});
</script>
</script>
</head>
</head>
</html>
</html>

Revision as of 14:41, 12 August 2012