Template:Team:Calgary/BasicPage
From 2012.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<!-- | <!-- | ||
- | + | Currently unable to implement the CSS switching due to the stupidity of the wiki. Will work on other things instead. | |
--> | --> | ||
<head> | <head> | ||
Line 9: | Line 9: | ||
<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--> | ||
<link rel='stylesheet' type='text/css' href="https://2012.igem.org/Team:Calgary/static/basicpageglobal.css?action=raw&ctype=text/css" /> | <link rel='stylesheet' type='text/css' href="https://2012.igem.org/Team:Calgary/static/basicpageglobal.css?action=raw&ctype=text/css" /> | ||
+ | |||
+ | <!--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" /> | ||
+ | --> | ||
<!--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 50: | Line 59: | ||
<!--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($){ | ||
+ | //eliminate jsnotice | ||
$('#jsnotice').hide(); | $('#jsnotice').hide(); | ||
+ | |||
/* prepend menu icon */ | /* prepend menu icon */ | ||
$('#nav-wrap').prepend('<div id="menu-icon">Menu</div>'); | $('#nav-wrap').prepend('<div id="menu-icon">Menu</div>'); | ||
Line 102: | Line 100: | ||
}); | }); | ||
+ | |||
+ | /*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'; | ||
+ | } | ||
$('#css-full').click(function(){ | $('#css-full').click(function(){ | ||
}); | }); | ||
+ | */ | ||
}); | }); | ||
+ | |||
</script> | </script> | ||
Line 115: | Line 122: | ||
<body> | <body> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
<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> | ||
Line 195: | Line 199: | ||
<div id="bodycontainer"> | <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> | <h1 id="pagetitle"></html>{{{pagetitle|Page Title}}}<html></h1> | ||
</html> | </html> |
Revision as of 18:56, 17 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.