Template:Team:Macquarie Australia/TopNavBar
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
- | + | <head> | |
- | <style> | + | <style> |
- | + | #bodyContent { | |
- | + | background-color:transparent; | |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | border: none; | |
- | + | width: 100%; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | #content { | |
- | + | background-color:transparent; | |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | border: none; | |
- | + | width: 100%; | |
- | + | } | |
- | } | + | </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/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"> | |
<!-- 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=Raleway:400,500,600' rel='stylesheet' type='text/css'> | |
- | + | <!-- JavaScript and JQuery --> | |
- | + | <script> | |
- | + | $(document).ready(function() { | |
- | + | $('a[href^="http://"]').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'); | ||
} | } | ||
+ | }); | ||
- | + | $('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> | + | }); |
- | + | </script> | |
- | + | </head> | |
- | + | <body> | |
- | + | <section id="Page"> | |
- | + | <header id="TopBar"> | |
- | + | <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/Project">Project</a> | |
- | + | <ul> | |
- | + | <li><a href="https://2014.igem.org/Team:Macquarie_Australia/Project/OurChlorophyll">Our Chlorophyll</a> | |
- | + | </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><a href="https://2014.igem.org/Team:Macquarie_Australia">Our Profile</a></li> | |
- | + | <li><a href="https://2014.igem.org/Team:Macquarie_Australia/OurTeam/TheUniversity">The<br>University</a></li> | |
- | + | <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/Sponsors">Sponsors</a></li> | |
- | + | </ul> | |
- | + | </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/Notebook">Notebook</a></li> | |
- | + | <li><a href="https://2014.igem.org/Team:Macquarie_Australia/Outreach">Outreach</a></li> | |
- | + | <li><a href="https://2014.igem.org/">iGEM</a></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