Difference between revisions of "Template:ETH Zurich"
m |
|||
Line 9: | Line 9: | ||
</script> | </script> | ||
<link rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template.css?action=raw&ctype=text/css" /> | <link rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template.css?action=raw&ctype=text/css" /> | ||
− | <link rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css" /> | + | <link id="size-stylesheet" rel="stylesheet" type="text/css" href="https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css" /> |
<script> | <script> | ||
− | /* Used to change style using jQuery based on browser size | + | /* Used to change style using jQuery based on browser size */ |
function adjustStyle(width) { | function adjustStyle(width) { | ||
width = parseInt(width); | width = parseInt(width); | ||
if (width < 701) { | if (width < 701) { | ||
− | $("#size-stylesheet").attr("href", " | + | $("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_mobile.css?action=raw&ctype=text/css"); |
} else if (width < 900) { | } else if (width < 900) { | ||
− | $("#size-stylesheet").attr("href", " | + | $("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); |
} else { | } else { | ||
− | $("#size-stylesheet").attr("href", " | + | $("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); |
} | } | ||
} | } | ||
Line 30: | Line 30: | ||
adjustStyle($(this).width()); | adjustStyle($(this).width()); | ||
}); | }); | ||
− | }); | + | }); |
</script> | </script> | ||
Revision as of 08:24, 14 August 2015