Team:Calgary/Sandbox

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
<!--
<!--
-
This version will attempt to implement the switching and functionality of the two stylesheets. Using jQuery to switch the stylesheets results in the desktop stylesheet failing to load.
+
Currently unable to implement the CSS switching due to the stupidity of the wiki. Will work on other things instead.
-
 
+
-
Source of problem discovered. Refer to the #pagestyle tags for the following:
+
-
 
+
-
Using jQuery to switch the href of #pagestyle results in an &amp; being inserted into the url rather than a &.
+
-
https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css therefore becomes
+
-
https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&amp;ctype=text/css
+
-
and cannot be processed by the browser. This can be discovered when inspecting the link element on Chrome. Changing that element on Chrome will restore the desired layout.
+
-
 
+
-
So how do we get this to do it normally...?
+
-->
-->
<head>
<head>
Line 100: Line 91:
$('#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>');
-
/* toggle nav */
+
//toggle nav
$("#menu-icon").click(function(){
$("#menu-icon").click(function(){
$("#nav").slideToggle('fast');
$("#nav").slideToggle('fast');
Line 109: Line 100:
});
});
 +
 +
//hide url bar
 +
window.scrollTo(0, 1);
/*Set stylesheet properly*/
/*Set stylesheet properly*/

Revision as of 19:43, 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.