Team:Calgary/Sandbox

From 2012.igem.org

(Difference between revisions)
Line 14: Line 14:
<!--Start with mobile first; change to desktop with JS-->
<!--Start with mobile first; change to desktop with JS-->
-
<link rel='stylesheet' 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-->
Line 71: Line 71:
});
});
-
$('#css-full').click(function(){
+
/*Set stylesheet properly*/
-
+
if($(window).width() > 480){
-
});
+
$("#pagestyle").attr("href", "https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css");
-
 
+
$("#pagestyle").attr("media", 'only screen and (min-device-width:481px)');
-
});
+
}
-
</script>
+
-
<script type='text/javascript'>
+
-
// activeCSS: Set the active stylesheet
+
-
function activeCSS(title) {
+
-
  var i, oneLink;
+
-
  for (i = 0; (oneLink = document.getElementsByTagName("link")[i]); i++) {
+
-
    if (oneLink.getAttribute("title") && findWord("stylesheet", oneLink.getAttribute("rel"))) {
+
-
      oneLink.disabled = true;
+
-
      if (oneLink.getAttribute("title") == title) {
+
-
        oneLink.disabled = false;
+
-
      }
+
-
    }
+
-
  }
+
-
}
+
-
 
+
-
// findWord: Used to find a full word (needle) in a string (haystack)
+
-
function findWord(needle, haystack) {
+
-
  return haystack.match(needle + "\\b");
+
-
}
+
-
 
+
-
jQuery(document).ready(function($){
+
-
 
+
-
$('#jsnotice').hide();
+
-
/* prepend menu icon */
+
-
$('#nav-wrap').prepend('<div id="menu-icon">Menu</div>');
+
-
+
-
/* toggle nav */
+
-
$("#menu-icon").click(function(){
+
-
$("#nav").slideToggle('fast');
+
-
$(this).toggleClass("active");
+
-
 
+
-
});
+
$('#css-full').click(function(){
$('#css-full').click(function(){

Revision as of 19:01, 9 August 2012

Full View Mobile View

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.