|
|
(40 intermediate revisions not shown) |
Line 1: |
Line 1: |
| + | {{Team:Calgary/Main}} |
| <html> | | <html> |
- | <head>
| |
- | <title>Home</title>
| |
- |
| |
- | <!-- Reset for BodyContent -->
| |
- | <style>
| |
- | #content{
| |
- | width: 100%;
| |
- | margin: 0;
| |
- | padding: 0;
| |
- | background-color:transparent;
| |
- | border: none;
| |
- | }
| |
- |
| |
- | #bodyContent{
| |
- | width: 100%;
| |
- | margin: 0;
| |
- | padding: 0;
| |
- | background-color:transparent;
| |
- | border: none;
| |
- | }
| |
- | </style>
| |
- |
| |
- | <!-- Fonts -->
| |
- | <link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500' rel='stylesheet' type='text/css'>
| |
- | <link href='http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
| |
- | <link href='http://fonts.googleapis.com/css?family=Josefin+Sans:700' rel='stylesheet' type='text/css'>
| |
- | <link href='http://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
| |
- |
| |
- | <!-- CSS Stylesheets -->
| |
- | <link href="https://2013.igem.org/Team:Calgary/StyleSheets/Reset?action=raw&ctype=text/css" rel="stylesheet">
| |
- | <link href="https://2013.igem.org/Team:Calgary/TestPageNavCSS?action=raw&ctype=text/css" rel="stylesheet">
| |
- | <link href="https://2013.igem.org/Team:Calgary/TestPageCSS?action=raw&ctype=text/css" rel="stylesheet">
| |
- | <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
| |
- | <script src="https://2013.igem.org/Team:Calgary/TestPageSliderJS?action=raw&ctype=text/javascript"></script>
| |
| <script> | | <script> |
| $(document).ready(function() { | | $(document).ready(function() { |
- | if ($('body').width() > 868) { | + | $('#Banner').css('display', 'block'); |
- | $('#TopBar').css('padding-left', Math.floor(($('body').width() - 868) / 2));
| + | $('#Page').css({'position' : 'relative', top : '19px'}); |
- | $('#LogoItem').css('display', 'block');
| + | $('#TopBar').css('position', 'static'); |
- | } | + | $('#Content').css('top', '0'); |
- | else if ($('body').width() <= 868) {
| + | |
- | if ($('body').width() > 744) {
| + | /*if (window.pageYOffset < 89) { |
- | $('#TopBar').css('padding-left', Math.floor(($('body').width() - 744) / 2));
| + | $('#Banner').css('height', '100px'); |
- | $('#LogoItem').css('display', 'none');
| + | |
- | }
| + | |
| } | | } |
| + | else { |
| + | $('#Banner').css('height', '89px'); |
| + | }*/ |
| | | |
- | var ScreenWidth = $('body').width(); | + | if (window.pageYOffset < 180) { |
- | if (ScreenWidth > 1007) {
| + | $('#TopBar').css('position', 'static'); |
- | var Margins = Math.floor(ScreenWidth * .086666);
| + | } |
- | var ElementWidth = Math.floor(ScreenWidth * .37);
| + | else { |
- |
| + | $('#TopBar').css('position', 'fixed'); |
- | $('#SectionLinks').css('padding-left', Margins); | + | |
- | $('#SectionLinks').css('padding-top', Margins);
| + | |
- | $('#SectionLinks .DescriptionLink').css('margin-right', Margins);
| + | |
- | $('#SectionLinks .DescriptionLink').css('margin-bottom', Margins); | + | |
- | $('#SectionLinks .DescriptionLink').css('width', ElementWidth);
| + | |
| } | | } |
| | | |
- | $(window).resize(function() { | + | $(window).scroll(function() { |
- | if ($('body').width() > 868) { | + | /*if (window.pageYOffset < 89) { |
- | $('#TopBar').css('padding-left', Math.floor(($('body').width() - 868) / 2)); | + | $('#Banner').css('height', '100px'); |
- | $('#LogoItem').css('display', 'block');
| + | |
| } | | } |
- | else if ($('body').width() <= 868) { | + | else { |
- | if ($('body').width() > 744) {
| + | $('#Banner').css('height', '89px'); |
- | $('#TopBar').css('padding-left', Math.floor(($('body').width() - 744) / 2));
| + | }*/ |
- | $('#LogoItem').css('display', 'none');
| + | |
- | }
| + | if(window.pageYOffset < 180) { |
| + | $('#TopBar').css('position', 'static'); |
| + | $('#Content').css('top', '0'); |
| } | | } |
- | | + | else { |
- | var ScreenWidth = $('body').width();
| + | $('#TopBar').css('position', 'fixed'); |
- | if (ScreenWidth > 1007) {
| + | $('#Content').css('top', '94px'); |
- | var Margins = Math.floor(ScreenWidth * .086666);
| + | |
- | var ElementWidth = Math.floor(ScreenWidth * .37);
| + | |
- |
| + | |
- | $('#SectionLinks').css('padding-left', Margins); | + | |
- | $('#SectionLinks').css('padding-top', Margins);
| + | |
- | $('#SectionLinks .DescriptionLink').css('margin-right', Margins); | + | |
- | $('#SectionLinks .DescriptionLink').css('margin-bottom', Margins);
| + | |
- | $('#SectionLinks .DescriptionLink').css('width', ElementWidth);
| + | |
| } | | } |
- | });
| + | }); |
| }); | | }); |
| </script> | | </script> |
- |
| |
- | </head>
| |
- |
| |
- | <body>
| |
- | <header id="TopBar">
| |
- | <ul id="TopLvlNav">
| |
- | <li><a href="https://2013.igem.org/Team:Calgary">Home</a></li>
| |
- | <li>
| |
- | <a href="https://2013.igem.org/Team:Calgary/Project">Project</a>
| |
- | <ul>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Tales">Tales</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Ferritin">Ferritin</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Linker">Linker</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Engineering">Engineering</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/HumanPractices">Human Practices</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/References">References</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Attributions">Attributions</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Project/Sponsors">Sponsors</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li>
| |
- | <a href="https://2013.igem.org/Team:Calgary/OurTeam">Our Team</a>
| |
- | <ul>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/OurTeam/TeamMembers">Team Members</a></li>
| |
- | <li><a href="https://igem.org/Team.cgi?id=1189" target="_blank">Our Profile</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/OurTeam/TheUniversity">The<br>University</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/OurTeam/ContactUs">Contact Us</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li id="LogoItem"><img id="NavLogo" src="HexLogo.png"></li>
| |
- | <li>
| |
- | <a href="https://2013.igem.org/Team:Calgary/Notebook">Notebook</a>
| |
- | <ul>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal">Journal</a>
| |
- | <ul>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal/TalesJournal">Tales</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal/FerritinJournal">Ferritin</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal/LinkerJournal">Linker</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal/EngineeringJournal">Engineering</a></li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Journal/HumanPracticesJournal">Human Practices</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Protocols">Protocols</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li><a href="https://2013.igem.org/Team:Calgary/Notebook/Parts">Parts</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li>
| |
- | <a href="https://2013.igem.org/Team:Calgary/Outreach">Outreach</a>
| |
- | <ul>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | <li><a href="#">Sub-Page</a></li>
| |
- | </ul>
| |
- | </li>
| |
- | <li>
| |
- | <a href="https://2013.igem.org" target="_blank">iGEM</a>
| |
- | </li>
| |
- | </ul>
| |
- | </header>
| |
- | </body>
| |
| </html> | | </html> |