Team:Cornell/sandbox/general

From 2013.igem.org

(Difference between revisions)
(Created page with "{{:Team:Cornell/sandbox/header}} <html> <body> <div class="title"> </div> <div class="navbar" style="position: relative; z-index: 20; margin-top: -29px; font-weight:...")
 
(4 intermediate revisions not shown)
Line 1: Line 1:
{{:Team:Cornell/sandbox/header}}
{{:Team:Cornell/sandbox/header}}
<html>
<html>
 +
<head>
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
//change navbar position when scrolling
 +
if (window.pageYOffset < 160) {
 +
$(".nav").css('position', 'static');
 +
}
 +
else {
 +
$(".nav").css('position', 'fixed');
 +
}
 +
 +
$(window).scroll(function() {
 +
if (window.pageYOffset < 160) {
 +
$(".nav").css('position', 'static');
 +
}
 +
else {
 +
$(".nav").css('position', 'fixed');
 +
}
 +
});
 +
});
 +
</script>
 +
</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