Template:MIT-results
From 2012.igem.org
(Difference between revisions)
Line 28: | Line 28: | ||
//Moving the menu down the screen, if we jump to the middle of the page. | //Moving the menu down the screen, if we jump to the middle of the page. | ||
- | + | #(window).scroll(); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
}); | }); | ||
Line 42: | Line 34: | ||
//Scrollbar moving stuff | //Scrollbar moving stuff | ||
$(function() { | $(function() { | ||
- | + | ||
var $sidebar = $("#col_nav"), | var $sidebar = $("#col_nav"), | ||
offset = $sidebar.offset(), | offset = $sidebar.offset(), | ||
topPadding = 0, | topPadding = 0, | ||
$window = $(window); | $window = $(window); | ||
- | + | ||
$window.scroll(function() { | $window.scroll(function() { |