Template:Team:Macquarie Australia/TopNavBar

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
-
<head>
+
<head>
-
<style>
+
<style>
-
 
+
#bodyContent {
-
+
background-color:transparent;
-
#bodyContent{
+
margin: 0;
-
 
+
padding: 0;
-
background-color:transparent;
+
border: none;
-
margin: 0;
+
width: 100%;
-
padding: 0;
+
-
border: none;
+
-
width: 100%;
+
}
}
-
#content{
+
#content {
-
 
+
background-color:transparent;
-
background-color:transparent;
+
margin: 0;
-
margin: 0;
+
padding: 0;
-
padding: 0;
+
border: none;
-
border: none;
+
width: 100%;
-
width: 100%;
+
}
-
}
+
</style>
-
+
-
 
+
-
 
+
-
</style>
+
<!-- CSS -->
<!-- CSS -->
-
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/1?action=raw&ctype=text/css" rel="stylesheet">
+
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/1?action=raw&ctype=text/css" rel="stylesheet">
-
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/TopNavBar?action=raw&ctype=text/css" rel="stylesheet">
+
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/TopNavBar?action=raw&ctype=text/css" rel="stylesheet">
-
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/3?action=raw&ctype=text/css" rel="stylesheet">
+
<link href="https://2014.igem.org/Template:Team:Macquarie_Australia/css/3?action=raw&ctype=text/css" rel="stylesheet">
<!-- Fonts -->
<!-- Fonts -->
-
<link href='http://fonts.googleapis.com/css?family=Antic+Slab' rel='stylesheet' type='text/css'>
+
<link href='http://fonts.googleapis.com/css?family=Antic+Slab' rel='stylesheet' type='text/css'>
-
<link href='http://fonts.googleapis.com/css?family=Raleway:400,500,600' rel='stylesheet' type='text/css'>
+
<link href='http://fonts.googleapis.com/css?family=Raleway:400,500,600' rel='stylesheet' type='text/css'>
-
<!-- JavaScript and JQuery -->
+
<!-- JavaScript and JQuery -->
-
<script>
+
<script>
-
$(document).ready(function() {
+
$(document).ready(function() {
-
$('a[href^="http://"]').not('[href*="Team:Calgary"]').attr('target', '_blank');
+
$('a[href^="http://"]').not('[href*="Team:Calgary"]').attr('target', '_blank');
-
$('a[href^="https://"]').not('[href*="Team:Calgary"]').attr('target', '_blank');
+
$('a[href^="https://"]').not('[href*="Team:Calgary"]').attr('target', '_blank');
 +
if ($('body').width() > 868) {
 +
$('#LogoItem').css('display', 'block');
 +
}
 +
else if ($('body').width() <= 868) {
 +
$('#LogoItem').css('display', 'none');
 +
}
 +
 +
$(window).resize(function() {
if ($('body').width() > 868) {
if ($('body').width() > 868) {
$('#LogoItem').css('display', 'block');
$('#LogoItem').css('display', 'block');
Line 49: Line 50:
$('#LogoItem').css('display', 'none');
$('#LogoItem').css('display', 'none');
}
}
 +
});
-
$(window).resize(function() {
+
$('a[href^="#"]').click(function() {
-
if ($('body').width() > 868) {
+
var target = $(this.hash);
-
$('#LogoItem').css('display', 'block');
+
if (target.length == 0) target = $('a[name="' + this.hash.substr(1) + '"]');
-
}
+
if (target.length == 0) target = $('html');
-
else if ($('body').width() <= 868) {
+
$('html, body').animate({ scrollTop: target.offset().top-100 }, 1000);
-
$('#LogoItem').css('display', 'none');
+
return false;
-
}
+
-
});
+
-
+
-
$('a[href^="#"]').click(function() {
+
-
var target = $(this.hash);
+
-
if (target.length == 0) target = $('a[name="' + this.hash.substr(1) + '"]');
+
-
if (target.length == 0) target = $('html');
+
-
$('html, body').animate({ scrollTop: target.offset().top-100 }, 1000);
+
-
return false;
+
-
});
+
});
});
-
</script>
+
});
-
</head>
+
</script>
-
 
+
</head>
-
<body>
+
<body>
-
<section id="Page">
+
<section id="Page">
-
<header id="TopBar">
+
<header id="TopBar">
-
<ul id="TopLvlNav">
+
<ul id="TopLvlNav">
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia" target="_self">Home</a></li>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia" target="_self">Home</a></li>
-
<li>
+
<li>
-
<a href="https://2014.igem.org/Team:Macquarie_Australia/Project">Project</a>
+
<a href="https://2014.igem.org/Team:Macquarie_Australia/Project">Project</a>
-
<ul>
+
<ul>
-
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Project/OurChlorophyll">Our Chlorophyll</a>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Project/OurChlorophyll">Our Chlorophyll</a>
+
</ul>
-
+
</li>
-
</ul>
+
<li>
-
</li>
+
<a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam">Our Team</a>
-
 
+
<ul>
-
 
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/TeamMembers">Team Members</a></li>
-
<li>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia">Our Profile</a></li>
-
<a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam">Our Team</a>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/TheUniversity">The<br>University</a></li>
-
<ul>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/Attributions">Attributions</a></li>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/TeamMembers">Team Members</a></li>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/Sponsors">Sponsors</a></li>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia">Our Profile</a></li>
+
</ul>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/TheUniversity">The<br>University</a></li>
+
</li>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/Attributions">Attributions</a></li>
+
<li id="LogoItem"><img id="NavLogo" src="https://static.igem.org/mediawiki/2013/5/56/Mqlogobnw.fw.png"></li>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/Sponsors">Sponsors</a></li>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Notebook">Notebook</a></li>
-
</ul>
+
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Outreach">Outreach</a></li>
-
</li>
+
<li><a href="https://2014.igem.org/">iGEM</a></li>
-
<li id="LogoItem"><img id="NavLogo" src="https://static.igem.org/mediawiki/2013/5/56/Mqlogobnw.fw.png"></li>
+
</ul>
-
 
+
</header>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Notebook">Notebook</a></li>
+
</section>
-
 
+
</body>
-
<li><a href="https://2014.igem.org/Team:Macquarie_Australia/Outreach">Outreach</a></li>
+
-
 
+
-
<li><a href="https://2014.igem.org/">iGEM</a></li>
+
-
+
-
</header>
+
-
</body>
+
</html>
</html>

Revision as of 11:01, 20 August 2014