Team:Cornell/sandbox/general

From 2013.igem.org

(Difference between revisions)
 
Line 6: Line 6:
//change navbar position when scrolling
//change navbar position when scrolling
if (window.pageYOffset < 160) {
if (window.pageYOffset < 160) {
-
$(".navbar").css('position', 'static');
+
$(".nav").css('position', 'static');
}
}
else {
else {
-
$(".navbar").css('position', 'fixed');
+
$(".nav").css('position', 'fixed');
}
}
$(window).scroll(function() {
$(window).scroll(function() {
if (window.pageYOffset < 160) {
if (window.pageYOffset < 160) {
-
$(".navbar").css('position', 'static');
+
$(".nav").css('position', 'static');
}
}
else {
else {
-
$(".navbar").css('position', 'fixed');
+
$(".nav").css('position', 'fixed');
}
}
});
});
Line 28: Line 28:
</div>
</div>
-
<div class="navbar" style="z-index: 20; font-weight: 600;">
+
<div class="nav" style="z-index: 20; font-weight: 600;">
<a><div class="head"> Project </div></a>
<a><div class="head"> Project </div></a>
<a><div class="head"> Outreach </div></a>
<a><div class="head"> Outreach </div></a>

Latest revision as of 19:32, 19 August 2014

2014 Cornell iGEM