Team:Cornell/sandbox/general

From 2013.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
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 24: Line 24:
</head>
</head>
<body>
<body>
-
<div class="title">
+
<div class="title" style="display: block; height: 160px; width: 100%;">
 +
</div>
</div>
-
<div class="navbar" style="position: relative; z-index: 20; margin-top: -29px; 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>
<div class="head">
<div class="head">
-
<img style="width: 450px; padding: 0 30px; margin-top: -10px;" src="https://static.igem.org/mediawiki/2013/f/fa/Cornell_iGEM_logo.png">
+
<img style="width: 450px; padding: 0 30px;" src="https://static.igem.org/mediawiki/2013/f/fa/Cornell_iGEM_logo.png">
</div>
</div>
<a><div class="head"> Notebook</div></a>
<a><div class="head"> Notebook</div></a>

Latest revision as of 19:32, 19 August 2014

2014 Cornell iGEM