Team:Cornell/sandbox/header

From 2013.igem.org

(Difference between revisions)
Line 29: Line 29:
$(window).resize(function() {
$(window).resize(function() {
$(".home").height($(document).height()-200);
$(".home").height($(document).height()-200);
-
});
 
-
 
-
//change navbar position when scrolling
 
-
if (window.pageYOffset < 160) {
 
-
$(".navbar").css('position', 'static');
 
-
}
 
-
else {
 
-
$(".navbar").css('position', 'fixed');
 
-
}
 
-
 
-
$(window).scroll(function() {
 
-
if (window.pageYOffset < 160) {
 
-
$(".navbar").css('position', 'static');
 
-
}
 
-
else {
 
-
$(".navbar").css('position', 'fixed');
 
-
}
 
});
});

Revision as of 17:59, 26 July 2014

2014 Cornell iGEM