Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<link href='https://2013.igem.org/Team:NCTU Formosa/css/reset?action=raw&ctype=text/css' rel="stylesheet"> | <link href='https://2013.igem.org/Team:NCTU Formosa/css/reset?action=raw&ctype=text/css' rel="stylesheet"> | ||
<link href='https://2013.igem.org/Team:NCTU Formosa/css/style?action=raw&ctype=text/css' rel="stylesheet"> | <link href='https://2013.igem.org/Team:NCTU Formosa/css/style?action=raw&ctype=text/css' rel="stylesheet"> | ||
+ | <link id="size-stylesheet" rel="stylesheet" type="text/css" href="https://2013.igem.org/Team:NCTU Formosa/css/style850u?action=raw&ctype=text/css" /> | ||
+ | <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | ||
+ | <script src="https://2013.igem.org/Team:Team:NCTU_Formosa/js/modernizr.custom?action=raw&ctype=text/javascript"> | ||
+ | <script> | ||
+ | function adjustStyle(width) { | ||
+ | width = parseInt(width); | ||
+ | if (width < 850) { | ||
+ | $("#size-stylesheet").attr("href", "https://2013.igem.org/Team:NCTU Formosa/css/style850b?action=raw&ctype=text/css"); | ||
+ | } else { | ||
+ | $("#size-stylesheet").attr("href", "https://2013.igem.org/Team:NCTU Formosa/css/style850u?action=raw&ctype=text/css"); | ||
+ | } | ||
+ | } | ||
+ | |||
+ | $(function() { | ||
+ | adjustStyle($(this).width()); | ||
+ | $(window).resize(function() { | ||
+ | adjustStyle($(this).width()); | ||
+ | }); | ||
+ | }); | ||
+ | </script> |
Revision as of 08:44, 28 August 2013