Team:Calgary/Sandbox

From 2012.igem.org

(Difference between revisions)
Line 18: Line 18:
<meta name="HandheldFriendly" content="True" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
 +
<!--CSS styles: global-->
<!--CSS styles: global-->
Line 23: Line 24:
<!--Start with mobile first; change to desktop with JS-->
<!--Start with mobile first; change to desktop with JS-->
 +
<!--
<link rel='stylesheet' type='text/css' id="pagestyle" href="https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css" />
<link rel='stylesheet' type='text/css' id="pagestyle" href="https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css" />
 +
-->
<!--desktop-->
<!--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' />
<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' />
-
-->
+
 
<!--mobile-->
<!--mobile-->
-
<!--
+
 
<link rel='stylesheet' title="mobile sheet" type='text/css'
<link rel='stylesheet' title="mobile sheet" type='text/css'
media="only screen and (-webkit-min-device-pixel-ratio: 1.5),
media="only screen and (-webkit-min-device-pixel-ratio: 1.5),
Line 39: Line 42:
only screen and (max-device-width: 480px)"
only screen and (max-device-width: 480px)"
href='https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css' />
href='https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css' />
-
-->
+
 
<style>
<style>
Line 65: Line 68:
<!--Mobile nav from http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial-->
<!--Mobile nav from http://webdesignerwall.com/tutorials/mobile-navigation-design-tutorial-->
<script type="text/javascript">
<script type="text/javascript">
 +
/*from annakata on StackOverflow: http://stackoverflow.com/questions/486896/adding-a-parameter-to-the-url-with-javascript*/
 +
/*unusable
 +
function insertParam(key, value)
 +
{
 +
    key = escape(key); value = escape(value);
 +
 +
    var kvp = document.location.search.substr(1).split('&');
 +
 +
    var i=kvp.length; var x; while(i--)
 +
    {
 +
        x = kvp[i].split('=');
 +
 +
        if (x[0]==key)
 +
        {
 +
                x[1] = value;
 +
                kvp[i] = x.join('=');
 +
                break;
 +
        }
 +
    }
 +
 +
    if(i<0) {kvp[kvp.length] = [key,value].join('=');}
 +
 +
    //this will reload the page, it's likely better to store this until finished
 +
    document.location.search = kvp.join('&');
 +
}
 +
*/
 +
jQuery(document).ready(function($){
jQuery(document).ready(function($){
Line 81: Line 111:
/*Set stylesheet properly*/
/*Set stylesheet properly*/
-
if($(window).width() > 480){
+
/*Current unusable
-
$("#pagestyle").attr("href", 'https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css');
+
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';
}
}
Line 88: Line 120:
});
});
 +
*/
});
});
 +
</script>
</script>
Line 99: Line 133:
<header>
<header>
 +
<!-- Can't use this for the time being...
<a id="css-full" href="#default">Full View</a>
<a id="css-full" href="#default">Full View</a>
<a id="css-mobi" href="#mobile">Mobile View</a>
<a id="css-mobi" href="#mobile">Mobile View</a>
 +
-->
<div id="headerimage"><img src="https://static.igem.org/mediawiki/2012/8/87/UCalgary2012_Header_Image_V3.0-Generic.png"></img></div>
<div id="headerimage"><img src="https://static.igem.org/mediawiki/2012/8/87/UCalgary2012_Header_Image_V3.0-Generic.png"></img></div>
<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>
<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>

Revision as of 21:03, 16 August 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.