Team:St Pauls London
From 2013hs.igem.org
(Difference between revisions)
(Prototype team page) |
|||
Line 1: | Line 1: | ||
- | |||
- | |||
<html> | <html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | < | + | <head> |
+ | <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"></script> | ||
+ | body { | ||
+ | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
+ | background-color: white; | ||
+ | margin: 0 auto; | ||
+ | padding-top:20px; | ||
+ | font-size: 16px; | ||
+ | } | ||
+ | |||
+ | #internet-explorer { | ||
+ | margin-top: 0px; | ||
+ | text-align: center; | ||
+ | color: #C30; | ||
+ | font-family: monospace; | ||
+ | font-weight: bold; | ||
+ | } | ||
+ | |||
+ | /*----- HEADER -----*/ | ||
+ | #header { | ||
+ | width: 900px; | ||
+ | height: 200px; | ||
+ | position: absolute; | ||
+ | left: 50%; | ||
+ | margin-left: -450px; | ||
+ | background-color: ; | ||
+ | padding-bottom: 20px; | ||
+ | } | ||
+ | |||
+ | #headerTitle { | ||
+ | text-align: center; | ||
+ | padding-left: 10px; | ||
+ | font-weight: bold; | ||
+ | font-size: 36px; | ||
+ | } | ||
+ | |||
+ | #headerBackground { | ||
+ | position: absolute; | ||
+ | z-index: -1; | ||
+ | width: 100%; | ||
+ | height: 100px; | ||
+ | bottom: 0px; | ||
+ | } | ||
+ | |||
+ | #headerSubTitle { | ||
+ | text-align: center; | ||
+ | font-size: 14px; | ||
+ | letter-spacing: 2px; | ||
+ | color: #666; | ||
+ | } | ||
+ | |||
+ | a#igem, a#igem:visited { | ||
+ | color: inherit; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | a#igem:hover, a#igem:active { | ||
+ | color: #F93; | ||
+ | text-decoration: underline; | ||
+ | } | ||
- | { | + | /*----- HEADER BUTTONS -----*/ |
- | + | .nav_button { | |
- | + | width: 100px; | |
- | + | height: 50px; | |
- | + | position: absolute; | |
- | + | bottom: 20%; | |
- | + | margin-left: -50px; | |
- | + | display: table; | |
- | + | } | |
- | + | ||
- | + | .nav_buttonText { | |
+ | color: #222; | ||
+ | text-align: center; | ||
+ | vertical-align: middle; | ||
+ | display: table-cell; | ||
+ | } | ||
+ | |||
+ | a.nav_buttonLink, a.nav_buttonLink:visited { | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | a.nav_buttonLink:hover, a.nav_buttonLink:active { | ||
+ | color: #F93; | ||
+ | text-decoration: underline; | ||
+ | } | ||
- | + | #first { | |
+ | left: 20%; | ||
+ | } | ||
+ | |||
+ | #second { | ||
+ | left: 40%; | ||
+ | } | ||
+ | |||
+ | #third { | ||
+ | left: 60%; | ||
+ | } | ||
+ | |||
+ | #fourth { | ||
+ | left: 80%; | ||
+ | } | ||
+ | /*----- END OF BUTTONS -----*/ | ||
+ | |||
+ | /*----- END OF HEADER -----*/ | ||
- | { | + | /*----- MAIN CONTENT -----*/ |
- | + | #wrapper { | |
- | + | clear: both; | |
+ | position: absolute; | ||
+ | width: 900px; | ||
+ | height: 90%; | ||
+ | margin-top: 250px; /* stops overlap with header */ | ||
+ | left: 50%; | ||
+ | margin-left: -450px; | ||
+ | border: medium 2px black; | ||
+ | background-color: ; | ||
+ | } | ||
+ | |||
+ | .title-link { | ||
+ | text-decoration: none; | ||
+ | color: inherit; | ||
+ | } | ||
+ | |||
+ | #first-panel { | ||
+ | display: ; | ||
+ | background: white; | ||
+ | border:1px solid white; | ||
+ | padding-left: 15px; | ||
+ | -moz-border-radius-topright: 20px; | ||
+ | -webkit-border-top-right-radius: 20px; | ||
+ | -moz-border-radius-bottomright: 20px; | ||
+ | -webkit-border-bottom-right-radius: 20px; | ||
+ | width: 100%; | ||
+ | height: auto; | ||
+ | } | ||
+ | |||
+ | #second-panel { | ||
+ | display: none; | ||
+ | background: white; | ||
+ | border:1px solid white; | ||
+ | padding-left: 15px; | ||
+ | -moz-border-radius-topright: 20px; | ||
+ | -webkit-border-top-right-radius: 20px; | ||
+ | -moz-border-radius-bottomright: 20px; | ||
+ | -webkit-border-bottom-right-radius: 20px; | ||
+ | width: 100%; | ||
+ | height: auto; | ||
+ | } | ||
+ | |||
+ | #third-panel { | ||
+ | display: none; | ||
+ | background: white; | ||
+ | border:1px solid white; | ||
+ | padding-left: 15px; | ||
+ | -moz-border-radius-topright: 20px; | ||
+ | -webkit-border-top-right-radius: 20px; | ||
+ | -moz-border-radius-bottomright: 20px; | ||
+ | -webkit-border-bottom-right-radius: 20px; | ||
+ | width: 100%; | ||
+ | height: auto; | ||
+ | } | ||
+ | |||
+ | #fourth-panel { | ||
+ | display: none; | ||
+ | background: white; | ||
+ | border:1px solid white; | ||
+ | padding-left: 15px; | ||
+ | -moz-border-radius-topright: 20px; | ||
+ | -webkit-border-top-right-radius: 20px; | ||
+ | -moz-border-radius-bottomright: 20px; | ||
+ | -webkit-border-bottom-right-radius: 20px; | ||
+ | width: 100%; | ||
+ | height: auto; | ||
+ | } | ||
+ | |||
+ | /*----- FIRST CONTENT -----*/ | ||
+ | |||
+ | /*----- SECOND CONTENT -----*/ | ||
+ | |||
+ | /*----- THIRD CONTENT -----*/ | ||
+ | |||
+ | /*----- FOURTH CONTENT -----*/ | ||
+ | |||
+ | /*----- FOOTER -----*/ | ||
- | === | + | #footer { |
- | + | position: absolute; | |
+ | bottom: 0; | ||
+ | } | ||
+ | |||
+ | <!-- FIRST BUTTON --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#nav-button-link-first").click(function(){ | ||
+ | $("#first-panel").toggle("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#first-title-link").click(function(){ | ||
+ | $("#first-panel").toggle("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- SECOND BUTTON --> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#nav-button-link-second").click(function(){ | ||
+ | $("#second-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#second-title-link").click(function(){ | ||
+ | $("#second-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- THIRD BUTTON --> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#nav-button-link-third").click(function(){ | ||
+ | $("#third-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#third-title-link").click(function(){ | ||
+ | $("#third-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#fourth-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <!-- FOURTH BUTTON --> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#nav-button-link-fourth").click(function(){ | ||
+ | $("#fourth-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $("#fourth-title-link").click(function(){ | ||
+ | $("#fourth-panel").toggle("fast"); | ||
+ | $("#first-panel").hide("fast"); | ||
+ | $("#second-panel").hide("fast"); | ||
+ | $("#third-panel").hide("fast"); | ||
+ | $(this).toggleClass("active"); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | </head> | ||
- | + | <body> | |
- | === | + | <div id="header"> |
- | + | <div id="headerTitle">SPS_London</div> | |
- | + | <div id="headerSubTitle">An <a id="igem" href="https://igem.org">iGEM</a> Team</div> | |
- | + | <div id="headerBackground"></div> <!--put image in here--> | |
- | === | + | <!--[if gte IE 2 ]> |
- | + | <p id="internet-explorer">This Wiki is designed for best use on <a href="https://www.google.com/intl/en_uk/chrome/browser/?hl=en-GB">Google Chrome</a> and <a href="https://www.mozilla.org/en-US/firefox/fx/#desktop">Mozilla Firefox</a>. Some key features are not available to your browser, please use a different browser or click <a href="">here</a>.</p> | |
- | + | <![endif]--> | |
- | + | <a class="nav_buttonLink" id="nav-button-link-first" href="#first"><div class="nav_button" id="first"><p class="nav_buttonText">HOME</p></div></a> | |
- | === | + | <a class="nav_buttonLink" id="nav-button-link-second" href="#second"><div class="nav_button" id="second"><p class="nav_buttonText">PROJECT</p></div></a> |
- | + | <a class="nav_buttonLink" id="nav-button-link-third" href="#third"><div class="nav_button" id="third"><p class="nav_buttonText">THE TEAM</p></div></a> | |
- | + | <a class="nav_buttonLink" id="nav-button-link-fourth" href="#fourth"><div class="nav_button" id="fourth"><p class="nav_buttonText">NOTEBOOK</p></div></a> | |
- | + | ||
- | === | + | </div> <!--of header--> |
- | + | ||
- | + | ||
- | + | <div id="wrapper"> | |
- | === | + | <a class="title-link" id="first-title-link" id="#first"><h3>first</h3></a> |
- | + | <div id="first-panel"> | |
- | + | <p>this is all inside the first panel</p> | |
- | + | ||
- | === | + | </div> |
- | + | ||
- | + | <a class="title-link" id="second-title-link" id="#second"><h3>second</h3></a> | |
- | + | <div id="second-panel"> | |
- | === | + | <p>this is all inside the second panel</p> |
- | + | ||
- | + | </div> | |
- | + | ||
- | + | <a class="title-link" id="third-title-link" id="#third"><h3>third</h3></a> | |
- | < | + | <div id="third-panel"> |
+ | <p>this is all inside the third panel</p> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <a class="title-link" id="fourth-title-link" id="#fourth"><h3>fourth</h3></a> | ||
+ | <div id="fourth-panel"> | ||
+ | <p>this is all inside the fourth panel</p> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | |||
+ | </div> <!-- of wrapper --> | ||
+ | <div id="footer">footer</div> | ||
+ | |||
+ | |||
+ | </body> | ||
+ | </html> |
Revision as of 22:16, 7 March 2013
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: white; margin: 0 auto; padding-top:20px; font-size: 16px; } #internet-explorer { margin-top: 0px; text-align: center; color: #C30; font-family: monospace; font-weight: bold; } /*----- HEADER -----*/ #header { width: 900px; height: 200px; position: absolute; left: 50%; margin-left: -450px; background-color: ; padding-bottom: 20px; } #headerTitle { text-align: center; padding-left: 10px; font-weight: bold; font-size: 36px; } #headerBackground { position: absolute; z-index: -1; width: 100%; height: 100px; bottom: 0px; } #headerSubTitle { text-align: center; font-size: 14px; letter-spacing: 2px; color: #666; } a#igem, a#igem:visited { color: inherit; text-decoration: none; } a#igem:hover, a#igem:active { color: #F93; text-decoration: underline; } /*----- HEADER BUTTONS -----*/ .nav_button { width: 100px; height: 50px; position: absolute; bottom: 20%; margin-left: -50px; display: table; } .nav_buttonText { color: #222; text-align: center; vertical-align: middle; display: table-cell; } a.nav_buttonLink, a.nav_buttonLink:visited { text-decoration: none; } a.nav_buttonLink:hover, a.nav_buttonLink:active { color: #F93; text-decoration: underline; } #first { left: 20%; } #second { left: 40%; } #third { left: 60%; } #fourth { left: 80%; } /*----- END OF BUTTONS -----*/ /*----- END OF HEADER -----*/ /*----- MAIN CONTENT -----*/ #wrapper { clear: both; position: absolute; width: 900px; height: 90%; margin-top: 250px; /* stops overlap with header */ left: 50%; margin-left: -450px; border: medium 2px black; background-color: ; } .title-link { text-decoration: none; color: inherit; } #first-panel { display: ; background: white; border:1px solid white; padding-left: 15px; -moz-border-radius-topright: 20px; -webkit-border-top-right-radius: 20px; -moz-border-radius-bottomright: 20px; -webkit-border-bottom-right-radius: 20px; width: 100%; height: auto; } #second-panel { display: none; background: white; border:1px solid white; padding-left: 15px; -moz-border-radius-topright: 20px; -webkit-border-top-right-radius: 20px; -moz-border-radius-bottomright: 20px; -webkit-border-bottom-right-radius: 20px; width: 100%; height: auto; } #third-panel { display: none; background: white; border:1px solid white; padding-left: 15px; -moz-border-radius-topright: 20px; -webkit-border-top-right-radius: 20px; -moz-border-radius-bottomright: 20px; -webkit-border-bottom-right-radius: 20px; width: 100%; height: auto; } #fourth-panel { display: none; background: white; border:1px solid white; padding-left: 15px; -moz-border-radius-topright: 20px; -webkit-border-top-right-radius: 20px; -moz-border-radius-bottomright: 20px; -webkit-border-bottom-right-radius: 20px; width: 100%; height: auto; } /*----- FIRST CONTENT -----*/ /*----- SECOND CONTENT -----*/ /*----- THIRD CONTENT -----*/ /*----- FOURTH CONTENT -----*/ /*----- FOOTER -----*/ #footer { position: absolute; bottom: 0; }
SPS_London
An iGEM Team
<div class="nav_button" id="first">
</div><div class="nav_button" id="second">
</div><div class="nav_button" id="third">
</div><div class="nav_button" id="fourth">
</div>first
this is all inside the first panel
second
this is all inside the second panel
third
this is all inside the third panel
fourth
this is all inside the fourth panel