Template:Team:Calgary/BasicPage

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
-
/*======
+
<html>
-
Desktop Styling
+
<!--
-
======*/
+
Currently unable to implement the CSS switching due to the stupidity of the wiki. Will work on other things instead.
 +
-->
 +
<head>
 +
<!--
 +
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
 +
-->
 +
<meta name="HandheldFriendly" content="True" />
 +
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
-
/***Nav styling***/
 
-
header{
+
<!--CSS styles: global-->
-
position: relative;
+
<link rel='stylesheet' type='text/css' href="https://2012.igem.org/Team:Calgary/static/basicpageglobal.css?action=raw&ctype=text/css" />
-
top: -45px;
+
-
}
+
-
#nav-wrap{
+
<!--Start with mobile first; change to desktop with JS-->
-
height: 0px;
+
<!--
-
margin-top: -45px;
+
<link rel='stylesheet' type='text/css' id="pagestyle" href="https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css" />
-
}
+
-->
 +
 
 +
<!--desktop-->
 +
 
 +
<link rel='stylesheet' type='text/css' media="only screen and (min-device-width:481px)" href='https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css' />
-
#nav, #nav ul{
 
-
list-style: none;
 
-
margin: 0;
 
-
padding: 0;
 
-
width: 965px;
 
-
height: 100%;
 
-
display: table;
 
-
 
-
 
-
}
 
-
 
-
/*To be moved to JQ block*/
 
-
#menu-icon{
 
-
display: none;
 
-
}
 
-
/*menu*/
+
<!--mobile-->
-
#nav li{
+
 
-
height: auto;
+
<link rel='stylesheet' title="mobile sheet" type='text/css'
-
padding: 0;
+
media="only screen and (-webkit-min-device-pixel-ratio: 1.5),
-
list-style: none;
+
only screen and (-o-min-device-pixel-ratio: 3/2),
-
float: left;
+
only screen and (min--moz-device-pixel-ratio: 1.5),
-
width: auto;
+
only screen and (min-device-pixel-ratio: 1.5),
-
margin: 0;
+
only screen and (max-device-width: 480px)"
-
background: #333333;
+
href='https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css' />
-
position: relative;
+
 
-
}
+
 
-
#nav > li a{
+
<style>
-
padding: 0 15px;
+
 
 +
@media only screen and (max-device-width: 481px){
 +
/*specific iPhone/iPod touch text*/
 +
h1{
 +
position: relative;
 +
margin-top: 20px;
 +
font-size: 2.1em;
}
}
-
#nav > li{
+
h2{
-
background: transparent;
+
position: relative;
 +
font-size: 1.8em;
}
}
-
+
p{
-
/*submenu*/
+
position: relative;
-
#nav li ul {
+
font-size: 1.2em;
-
position: absolute;
+
}
-
width: 200px;
+
-
display: none;
+
}
}
-
#nav li:hover ul {
 
-
display: block;
 
-
}
 
-
/*sub-submenu*/
 
-
#nav li ul ul{
 
-
margin-left: 230px;
 
-
margin-top: -15px;
 
-
}
 
-
#nav li:hover ul ul{
 
-
display: none;
 
-
}
 
-
#nav li:hover ul, #nav li li:hover ul{
 
-
display: block;
 
-
}
 
-
#nav a{
 
-
display: block;
 
-
font-family: Myriad Pro, Gill Sans MT, Trebuchet MS, Arial, Sans-Serif;
 
-
color: white;
 
-
}
 
-
#nav li a{
 
-
line-height: 1.4em; /*centers the text vertically*/
 
-
font-size: 2em;
 
-
}
 
-
#nav ul li > a{
 
-
width: 200px;
 
-
}
 
-
/*color change after rollover*/
 
-
#nav li a:hover, #nav li li a.drop:hover::after{
 
-
display: block;
 
-
text-decoration: none;
 
-
color: #43bbff;
 
-
}
 
-
#nav li ul li ul{
 
-
margin-top: -35px;
 
-
position: absolute;
 
-
}
 
-
/*submenu and sub-submenu*/
 
-
#nav li ul li ul li a, #nav li ul li a{
 
-
font-size: 1.8em;
 
-
}
 
-
#nav li li a.drop:after{
 
-
content: '>';
 
-
padding-left: 20px;
 
-
color: #BBB;
 
-
display: inline;
 
-
float: right;
 
-
}
 
-
/***End nav styling***/
 
-
/***Headerimage***/
+
</style>
-
#headerimage{
+
 
-
width: 968px;
+
<!--Mobile nav from http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial-->
-
position: relative;
+
<script type="text/javascript">
-
margin-left: 0px;
+
/*from annakata on StackOverflow: http://stackoverflow.com/questions/486896/adding-a-parameter-to-the-url-with-javascript*/
-
margin-bottom: 10px;
+
/*unusable
-
top: 0px;
+
function insertParam(key, value)
-
}
+
{
-
#css-full{
+
    key = escape(key); value = escape(value);
-
display: none;
+
 
-
}
+
    var kvp = document.location.search.substr(1).split('&');
-
#css-mobi{
+
 
-
display: block;
+
    var i=kvp.length; var x; while(i--)
-
top: 0px;
+
    {
-
}
+
        x = kvp[i].split('=');
 +
 
 +
        if (x[0]==key)
 +
        {
 +
                x[1] = value;
 +
                kvp[i] = x.join('=');
 +
                break;
 +
        }
 +
    }
-
/***Logo styling***/
+
    if(i<0) {kvp[kvp.length] = [key,value].join('=');}
-
#logo{
+
 
-
position: relative;
+
    //this will reload the page, it's likely better to store this until finished
-
top: -145px;
+
    document.location.search = kvp.join('&');  
-
right: 20px;
+
-
float: right;
+
}
}
 +
*/
 +
 +
jQuery(document).ready(function($){
 +
 +
//eliminate jsnotice
 +
$('#jsnotice').hide();
-
#logo img{
+
//prepend menu icon
-
width: 260px;
+
$('#nav-wrap').prepend('<div id="menu-icon">Menu</div>');
 +
 +
//toggle nav
 +
$("#menu-icon").click(function(){
 +
$("#nav").slideToggle('fast');
 +
$(this).toggleClass("active");
 +
 
 +
});
 +
 +
//hide url bar
 +
window.scrollTo(0, 1);
 +
 +
/*Set stylesheet properly*/
 +
/*Current unusable
 +
if($(window).width() > 0){
 +
$("#pagestyle").attr("href", 'https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw');
 +
$("#pagestyle").href += (/\?/.test(this.href) ? '&' : '?') + 'ctype=text/css';
}
}
-
/***Body styling***/
+
$('#css-full').click(function(){
-
h1{
+
-
font-size: 2.3em;
+
});
-
}
+
*/
-
h2{
+
-
font-size: 1.8em;
+
-
}
+
-
#bodycontainer p{
+
-
font-size: 1.1em;
+
-
}
+
-
#pagetitle{
+
-
border-bottom: 2px solid black;
+
-
padding-bottom: 10px;
+
-
padding-left: 10px;
+
-
}
+
-
#bodycontainer{
+
-
position: relative;
+
-
top: 0;
+
-
}
+
-
#bodycontainer h2, #bodycontainer p{
+
-
margin-left: 10px;
+
-
margin-right: 10px;
+
-
}
+
 +
});
-
/*Figure captions*/
+
</script>
-
.figurebox{
+
<!--switching function: thanks to http://www.digital-web.com/articles/strategies_for_css_switching/-->
-
max-width: 40%;
+
-
float: right;
+
-
}
+
-
.figureimg, .figureimg img, .figurecaption{
+
-
width: 100%;
+
-
}
+
-
.figureimg, .figurecaption{
+
-
border: 2px solid #888;
+
-
}
+
-
.figurecaption{
+
-
border-top: 0px;
+
-
}
+
-
.figurecaption p{
+
-
padding: 5px;
+
-
margin: 0 !important; /*necessary to override main page margins*/
+
-
}
+
 +
</head>
-
/* thumbnails */
+
<body>
-
div.thumb {
+
 
-
    margin-bottom: .5em;
+
<header>
-
    border-style: solid;
+
<!-- Can't use this for the time being...
-
    border-color: transparent;
+
<a id="css-full" href="#default">Full View</a>
-
    width: auto;
+
<a id="css-mobi" href="#mobile">Mobile View</a>
-
}
+
-->
-
div.thumb div {
+
<div id="headerimage"><img src="https://static.igem.org/mediawiki/2012/8/87/UCalgary2012_Header_Image_V3.0-Generic.png"></img></div>
-
    border: 1px solid #ccc;
+
<a id="logo" href="https://2012.igem.org/Team:Calgary"><img src="https://static.igem.org/mediawiki/2012/4/48/UCalgary2012_White_Low-Res_Official_Logo.png"></img></a>
-
    padding: 3px !important;
+
<div id="nav-wrap">
-
    font-size: 94%;
+
<ul id="nav">
-
    text-align: center;
+
<li><a href="https://2012.igem.org/Team:Calgary">Home</a></li>
-
    overflow: hidden;
+
<li><a class="drop" href="https://2012.igem.org/Team:Calgary/Team">Team</a>
-
}
+
<div class="col_1">
-
div.thumb div a img {
+
<a class="dropheader" href="#">MEMBERS</a>
-
    border: 1px solid #ccc;
+
<a href="#">Undergraduates</a>
-
}
+
<a href="#">Advisors</a>
-
div.thumb div div.thumbcaption {
+
<a href="#">Supervisors</a>
-
    border: none;
+
<a class="dropheader" href="http://ung.igem.org/Team.cgi?id=902">OFFICIAL PROFILE</a>
-
    text-align: left;
+
<a class="dropheader" href="#">THE UNIVERSITY</a>
-
    line-height: 1.4em;
+
</div>
-
    padding: .3em 0 .1em 0;
+
</li>
-
}
+
<li><a class="drop" href="https://2012.igem.org/Team:Calgary/Project">Project</a>
-
div.magnify {
+
<div class="col_2">
-
    float: right;
+
<div class="col_l">
-
    border: none !important;
+
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project">OVERVIEW</a>
-
    background: none !important;
+
<a href="#">Data Page</a>
-
}
+
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/Biosensor">BIOSENSOR</a>
-
div.magnify a, div.magnify img {
+
<a href="#">Sensing NAs</a>
-
    display: block;
+
<a href="#">Promoter Library</a>
-
    border: none !important;
+
<a href="#">Electrochemistry</a>
-
    background: none !important;
+
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/Hydrocarbon">FUEL CONVERSION</a>
-
}
+
<a href="#">Decarboxylation</a>
-
div.tright {
+
<a href="#">Desulfurization</a>
-
    clear: right;
+
<a href="#">Denitrification</a>
-
    float: right;
+
<a href="#">Catechol Degradation</a>
-
    border-width: .5em 0 .8em 1.4em;
+
<a href="#">Flux Analysis</a>
-
}
+
</div>
-
div.tleft {
+
-
    float: left;
+
<div class="col_r">
-
    margin-right: .5em;
+
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/Killswitch">KILLSWITCH</a>
-
    border-width: .5em 1.4em .8em 0;
+
<a href="#">Riboswitches</a>
-
}
+
<a href="#">Rhamnose Promoter</a>
 +
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/Bioreactor">BIOREACTOR</a>
 +
<a href="#">Design</a>
 +
<a href="#">Modelling</a>
 +
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/FutureDirections">FUTURE DIRECTIONS</a>
 +
<a class="dropheader" href="https://2012.igem.org/Team:Calgary/Project/Attributions">ATTRIBUTIONS</a>
 +
</div>
 +
 +
</div>
 +
</li>
 +
<li><a href="https://2012.igem.org/Team:Calgary/Parts">Parts</a></li>
 +
<li><a class="drop" href="https://2012.igem.org/Team:Calgary/Notebook">Notebook</a>
 +
<div class="col_1">
 +
<a class="dropheader" href="#">JOURNAL</a>
 +
<a class="dropheader" href="#">SAFETY</a>
 +
<a class="dropheader" href="#">PROTOCOLS</a>
 +
</div>
 +
</li>
 +
<li><a class="drop" href="https://2012.igem.org/Team:Calgary/Outreach">Outreach</a>
 +
<div class="col_1">
 +
<a class="dropheader" href="#">HUMAN PRACTICES</a>
 +
<a href="#">Video Series</a>
 +
<a href="#">Video Game</a>
 +
<a class="dropheader" href="#">FOLLOW US</a>
 +
<a href="#">Twitter</a>
 +
<a href="#">Facebook</a>
 +
</div>
 +
</li>
 +
<li><a href="https://2012.igem.org/Team:Calgary/Sponsors">Sponsors</a></li>
 +
<li><a href="https://2012.igem.org" target="_blank">iGEM Home</a></li>
 +
</ul>
 +
 
 +
</div>
 +
</header>
 +
 
 +
<div id="bodycontainer">
 +
<div id="jsnotice">
 +
<p>Hello! iGEM Calgary's wiki functions best with Javascript enabled, especially for mobile devices. We recommend that you enable Javascript on your device for the best wiki-viewing experience. Thanks!</p>
 +
</div>
 +
<h1 id="pagetitle"></html>{{{pagetitle|Page Title}}}<html></h1>
 +
</html>
 +
{{{content|<html><p>Hello! We are sorry to say that this page has yet to be created. Please check back shortly to see any new updates that we may have.</p>
 +
 +
<h2>Under Construction!</h2>
 +
<p>Currently this wiki is under construction. We hope to bring the entire site running up to full speed as soon as we can. For the time being, there will be broken links and navigation issues until we iron out the kinks. We apologize for any inconvenience.</p></html>}}}
 +
<html>
 +
</div>
 +
</body>
 +
</html>

Revision as of 21:12, 5 September 2012

Hello! iGEM Calgary's wiki functions best with Javascript enabled, especially for mobile devices. We recommend that you enable Javascript on your device for the best wiki-viewing experience. Thanks!

Page Title

Hello! We are sorry to say that this page has yet to be created. Please check back shortly to see any new updates that we may have.

Under Construction!

Currently this wiki is under construction. We hope to bring the entire site running up to full speed as soon as we can. For the time being, there will be broken links and navigation issues until we iron out the kinks. We apologize for any inconvenience.