Team:Gaston Day School/Project
From 2014.igem.org
(Difference between revisions)
(Prototype team page) |
|||
Line 1: | Line 1: | ||
- | < | + | {{CSS/Main}} |
+ | <html> | ||
+ | <style> | ||
+ | [class*='grid'] | ||
+ | { | ||
+ | text-align: center; | ||
+ | Width: 100%; | ||
+ | } | ||
+ | [class*='row'] | ||
+ | { | ||
+ | width: 100%; | ||
+ | } | ||
- | {{ | + | [class*='column'] |
+ | { | ||
+ | float: left; | ||
+ | width: 16%; | ||
+ | margin:10px; | ||
+ | Border: 1px solid #000000; | ||
+ | Background-color: #ffffff; | ||
+ | } | ||
+ | |||
+ | body | ||
+ | { | ||
+ | font-size: 80%; | ||
+ | font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; | ||
+ | background-image: url("http://newevolutiondesigns.com/images/freebies/retro-wallpaper-1.jpg"); | ||
+ | width:80%; | ||
+ | margin-left: 10%; | ||
+ | margin-right: 10%; | ||
+ | } | ||
+ | ul#tabs | ||
- | < | + | { |
+ | list-style-type: none; padding: 0 0 0.3em 0; | ||
+ | } | ||
+ | |||
+ | ul#tabs li | ||
+ | { | ||
+ | display: inline; | ||
+ | } | ||
+ | |||
+ | ul#tabs li a | ||
+ | { | ||
+ | color: #42454a; | ||
+ | background-color: #fefefe; | ||
+ | border: 1px solid #000000; | ||
+ | border-bottom: none; | ||
+ | padding: 0.3em; | ||
+ | border-radius: 5px; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | ul#tabs li a:hover | ||
+ | { | ||
+ | background-color: #ffffff; | ||
+ | } | ||
+ | |||
+ | ul#tabs li a.selected | ||
+ | { | ||
+ | color: #000; background-color: #ffffff; font-weight: bold; padding: 0.7em 0.3em 0.38em 0.3em; | ||
+ | } | ||
+ | |||
+ | div.tabContent | ||
+ | { | ||
+ | border: 1px solid #000000; | ||
+ | background-color: #ffffff; | ||
+ | float: left; | ||
+ | border-radius: 5px; | ||
+ | width: 100%; | ||
+ | padding: 0.5em; | ||
+ | } | ||
+ | |||
+ | div.tabContent.hide | ||
+ | { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
+ | |||
+ | <script> | ||
+ | |||
+ | <!-- Tabs --> | ||
+ | |||
+ | var tabLinks = new Array(); | ||
+ | |||
+ | var contentDivs = new Array(); | ||
+ | |||
+ | function init() | ||
+ | { | ||
+ | |||
+ | // Grab the tab links and content divs from the page | ||
+ | |||
+ | var tabListItems = document.getElementById('tabs').childNodes; | ||
+ | |||
+ | for ( var i = 0; i < tabListItems.length; i++ ) | ||
+ | { | ||
+ | if ( tabListItems[i].nodeName == "LI" ) | ||
+ | { | ||
+ | var tabLink = getFirstChildWithTagName( tabListItems[i], 'A' ); var id = getHash( tabLink.getAttribute('href') ); | ||
+ | |||
+ | tabLinks[id] = tabLink; | ||
+ | |||
+ | contentDivs[id] = document.getElementById( id ); | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | // Assign onclick events to the tab links, and | ||
+ | |||
+ | // highlight the first tab | ||
+ | |||
+ | var i = 0; | ||
+ | |||
+ | for ( var id in tabLinks ) | ||
+ | { | ||
+ | tabLinks[id].onmouseover = showTab; | ||
+ | tabLinks[id].onfocus = function() { this.blur() }; | ||
+ | if ( i == 0 ) tabLinks[id].className = 'selected'; | ||
+ | |||
+ | i++; | ||
+ | } | ||
+ | |||
+ | // Hide all content divs except the first | ||
+ | |||
+ | var i = 0; | ||
+ | |||
+ | for ( var id in contentDivs ) | ||
+ | { | ||
+ | if ( i != 0 ) contentDivs[id].className = 'tabContent hide'; | ||
+ | i++; | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | function showTab() | ||
+ | |||
+ | { | ||
+ | |||
+ | var selectedId = getHash( this.getAttribute('href') ); | ||
+ | |||
+ | // Highlight the selected tab, and dim all others. | ||
+ | |||
+ | // Also show the selected content div, and hide all others. | ||
+ | |||
+ | for ( var id in contentDivs ) | ||
+ | |||
+ | { | ||
+ | |||
+ | if ( id == selectedId ) | ||
+ | |||
+ | { | ||
+ | |||
+ | tabLinks[id].className = 'selected'; | ||
+ | |||
+ | contentDivs[id].className = 'tabContent'; | ||
+ | |||
+ | } | ||
+ | |||
+ | else | ||
+ | |||
+ | { | ||
+ | |||
+ | tabLinks[id].className = ''; | ||
+ | |||
+ | contentDivs[id].className = 'tabContent hide'; | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | // Stop the browser following the link | ||
+ | |||
+ | return false; | ||
+ | |||
+ | } | ||
+ | |||
+ | function getFirstChildWithTagName( element, tagName ) | ||
+ | |||
+ | { | ||
+ | |||
+ | for ( var i = 0; i < element.childNodes.length; i++ ) | ||
+ | |||
+ | { | ||
+ | |||
+ | if ( element.childNodes[i].nodeName == tagName ) | ||
+ | |||
+ | return element.childNodes[i]; | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | function getHash( url ) | ||
+ | |||
+ | { | ||
+ | |||
+ | var hashPos = url.lastIndexOf ( '#' ); | ||
+ | |||
+ | return url.substring( hashPos + 1 ); | ||
+ | |||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | </head> | ||
+ | |||
+ | |||
+ | |||
+ | <body onload="init()" background-image=" url("http://images.dailytech.com/nimage/Nyan_Cat_Wide.jpg")"> | ||
+ | |||
+ | <!--main content → | ||
+ | |||
+ | |||
+ | <!--Tabs(NOT SLIDESHOW!) --> | ||
+ | |||
+ | <div style="padding-left: 10px;"> | ||
+ | |||
+ | <ul id="tabs"> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School#home">Home</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Team#team">Members</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Project#project">Project</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Measurementtrack#measure">Measurement Track</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Parts#parts">Parts</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Modeling#models">Models</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Notebook#notebook">Notebook</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Safety#safety">Safety</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:Gaston_Day_School/Attributions#attrib">Attributions</a></li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Main_Page#igem"><img src="https://static.igem.org/mediawiki/igem.org/6/60/Igemlogo_300px.png" width="55px" position="absolute"></a></li> | ||
+ | |||
+ | </ul> | ||
+ | |||
+ | <!--Tab Content--> | ||
+ | |||
+ | <div class="tabContent" id="home"> | ||
+ | |||
+ | <h2>Home</h2> | ||
+ | |||
+ | <p> in tha hizzle</p> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <div class="tabContent" id="team"> | ||
+ | |||
+ | <h2>Team</h2> | ||
+ | |||
+ | <p>Teem stuff</p> | ||
+ | |||
+ | </div> | ||
- | < | + | <div class="tabContent" id="project"> |
- | + | ||
+ | <h2>Project</h2> | ||
- | + | <p>Project things </p> | |
- | + | ||
- | + | ||
- | + | ||
- | <p> | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | </div> | |
- | + | ||
- | + | ||
- | < | + | <div class="tabContent" id="measure"> |
- | + | ||
- | < | + | <h2>Measurement Track</h2> |
- | + | ||
- | + | ||
+ | <p>Measurement stuff </p> | ||
- | + | </div> | |
- | + | ||
- | < | + | <div class="tabContent" id="parts"> |
- | + | ||
- | < | + | <h2>Parts</h2> |
- | < | + | |
- | < | + | <p>Parts </p> |
- | < | + | |
- | + | </div> | |
- | + | ||
- | < | + | <div class="tabContent" id="models"> |
- | + | ||
- | < | + | <h2>Models</h2> |
- | < | + | |
- | < | + | <p>Models </p> |
- | < | + | |
- | + | </div> | |
- | + | ||
+ | <div class="tabContent" id="notebook"> | ||
- | < | + | <h2>Notebook</h2> |
- | + | ||
- | + | ||
- | < | + | <p>Notebook writings </p> |
- | + | ||
- | </ | + | |
- | + | </div> | |
- | + | ||
- | + | ||
+ | <div class="tabContent" id="safety"> | ||
+ | <h2>Safety</h2> | ||
- | < | + | <p>Safety shloop </p> |
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | + | </div> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | < | + | <div class="tabContent" id="attrib"> |
- | + | ||
- | + | ||
- | < | + | <h2>Attributions</h2> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | <p> | + | <p>Attributes 'n shiz </p> |
- | + | ||
- | </p> | + | |
- | + | </div> | |
- | + | ||
- | </ | + | |
- | < | + | <div class="tabContent" id="igem"> |
- | </ | + | <h2>Homepage</h2> |
+ | <p>Go to, ja!</p> | ||
- | </ | + | </div> |
+ | |||
+ | <div width="100%" align="center"> | ||
+ | <div> | ||
+ | <div class="grid" align="center"> | ||
+ | <div class="row1" align="center"> | ||
+ | <div class = "column1"><img href="C:\DSC_0725.jpg"></div> | ||
+ | <div class = "column2">col2</div> | ||
+ | <div class = "column3">col3</div> | ||
+ | <div class = "column4">col4</div> | ||
+ | <div class = "column5">col5</div> | ||
+ | </div> | ||
+ | <div class="row2"> | ||
+ | <div class = "column1">col1</div> | ||
+ | <div class = "column2">col2</div> | ||
+ | <div class = "column3">col3</div> | ||
+ | <div class = "column4">col4</div> | ||
+ | <div class = "column5">col5</div> | ||
+ | </div> | ||
+ | <div class="row3"> | ||
+ | <div class = "column1">col1</div> | ||
+ | <div class = "column2">col2</div> | ||
+ | <div class = "column3">col3</div> | ||
+ | <div class = "column4">col4</div> | ||
+ | <div class = "column5">col5</div> | ||
+ | </div> | ||
+ | <div class="row4"> | ||
+ | <div class = "column1">col1</div> | ||
+ | <div class = "column2">col2</div> | ||
+ | <div class = "column3">col3</div> | ||
+ | <div class = "column4">col4</div> | ||
+ | <div class = "column5">col5</div> | ||
+ | </div> | ||
+ | <div class="row5"> | ||
+ | <div class = "column1">col1</div> | ||
+ | <div class = "column2">col2</div> | ||
+ | <div class = "column3">col3</div> | ||
+ | <div class = "column4">col4</div> | ||
+ | <div class = "column5">col5</div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
</html> | </html> |
Revision as of 13:27, 14 July 2014
Home
in tha hizzle
Team
Teem stuff
Project
Project things
Measurement Track
Measurement stuff
Parts
Parts
Models
Models
Notebook
Notebook writings
Safety
Safety shloop
Attributions
Attributes 'n shiz
Homepage
Go to, ja!
col2
col3
col4
col5
col1
col2
col3
col4
col5
col1
col2
col3
col4
col5
col1
col2
col3
col4
col5
col1
col2
col3
col4
col5