Team:Cornell/sandbox/header

From 2013.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 23: Line 23:
           return $.trim($(this).html()) == '';
           return $.trim($(this).html()) == '';
}).remove();
}).remove();
-
 
-
//width of home body wrapper
 
-
$(".home").height($(document).height()-200);
 
-
 
-
$(window).resize(function() {
 
-
$(".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');
 
-
}
 
-
});
 
//parallax
//parallax

Latest revision as of 18:04, 26 July 2014

2014 Cornell iGEM