Team:Calgary/Sandbox

From 2012.igem.org

(Difference between revisions)
Line 11: Line 11:
-
<link id="fullcss" title="desktop version" 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' />
-
<link id="mobicss" title="mobile version" rel='stylesheet' type='text/css' media="only screen and (-webkit-min-device-pixel-ratio: 1.5),
+
<link rel='stylesheet' type='text/css' media="only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (max-device-width: 480px)" href='https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css' />
only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (max-device-width: 480px)" href='https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css' />
Line 50: Line 50:
$(this).toggleClass("active");
$(this).toggleClass("active");
-
});
 
-
 
-
/* CSS switch */
 
-
$("#css-mobi").click(function(){
 
-
$("#fullcss").attr('href', 'https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css');
 
-
$("#mobicss").attr('href', "https://2012.igem.org/Team:Calgary/static/basicpagemobile.css?action=raw&ctype=text/css");
 
-
});
 
-
$("#css-full").click(function(){
 
-
$("#mobicss").attr('href', "https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css");
 
-
$("#fullcss").attr('href', "https://2012.igem.org/Team:Calgary/static/basicpagedesktop.css?action=raw&ctype=text/css");
 
});
});
Line 69: Line 59:
<body>
<body>
<header>
<header>
-
<a id="css-full" href="#desktop">Desktop 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/f/fc/UCalgary2012_MainHeaderImage.png"></img></div>
<div id="headerimage"><img src="https://static.igem.org/mediawiki/2012/f/fc/UCalgary2012_MainHeaderImage.png"></img></div>

Revision as of 22:51, 28 June 2012

Full View Mobile View

Header Stuff!

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut convallis eleifend interdum. Pellentesque libero magna, dignissim vitae blandit et, tincidunt nec felis. Proin et risus eget lectus lacinia mollis. Quisque rhoncus posuere lectus, eget vestibulum dolor feugiat bibendum. Vestibulum scelerisque commodo eros, in vulputate arcu tempus varius. Donec ornare malesuada mi vitae rhoncus. Nulla facilisi.

Subheader Stuff!

Viverra nisl a bibendum. Etiam cursus ultrices arcu, pretium sodales tellus euismod id. Pellentesque congue aliquam urna, commodo iaculis massa pellentesque eget. Vivamus et sem non massa tincidunt ultrices. Sed luctus justo nec dui venenatis sodales. Proin sit amet risus nibh. In hac habitasse platea dictumst. Sed pretium egestas augue, sed varius nibh consequat ac. In orci.