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. | |
+ | |||
+ | Source of problem discovered. Refer to the #pagestyle tags for the following: | ||
+ | |||
+ | Using jQuery to switch the href of #pagestyle results in an & 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&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 73: | Line 82: | ||
/*Set stylesheet properly*/ | /*Set stylesheet properly*/ | ||
if($(window).width() > 480){ | if($(window).width() > 480){ | ||
- | $("#pagestyle").attr("href", 'https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw& | + | $("#pagestyle").attr("href", 'https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css'); |
} | } | ||
Revision as of 19:35, 9 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.