Difference between revisions of "Template:ETH Zurich"
m |
m |
||
Line 48: | Line 48: | ||
<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) { | |
width = parseInt(width); | width = parseInt(width); | ||
− | + | /* if (width < 701) { | |
$("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); | $("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); | ||
} else if (width < 900) { | } else if (width < 900) { | ||
Line 56: | Line 56: | ||
} else { | } else { | ||
$("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); | $("#size-stylesheet").attr("href", "https://2015.igem.org/Template:ETH_Zurich/template_wide.css?action=raw&ctype=text/css"); | ||
− | } | + | }*/ |
+ | if (width < 1100) { | ||
+ | $('#menuContainer li').css('float', 'none'); | ||
+ | } | ||
} | } | ||
Line 64: | Line 67: | ||
adjustStyle($(this).width()); | adjustStyle($(this).width()); | ||
}); | }); | ||
− | }); | + | }); |
</script> | </script> | ||
Revision as of 19:46, 16 August 2015