Template:Team:Calgary/Test
From 2013.igem.org
(Difference between revisions)
Line 34: | Line 34: | ||
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | ||
<script> | <script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
function NavSizing() { | function NavSizing() { | ||
if ($('body').width() > 868) { | if ($('body').width() > 868) { | ||
Line 52: | Line 44: | ||
} | } | ||
} | } | ||
+ | </script> | ||
+ | <script> | ||
+ | $(document).ready(function() { | ||
+ | NavSizing(); | ||
+ | |||
+ | $(window).resize(function() { | ||
+ | NavSizing(); | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
</head> | </head> | ||
</html | </html |
Revision as of 22:29, 13 August 2013