Difference between revisions of "Template:Amsterdam/Head"
Line 52: | Line 52: | ||
<script type="text/javascript" src="https://2015.igem.org/Team:Amsterdam/jquerySmartmenusBootstrapJs?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2015.igem.org/Team:Amsterdam/jquerySmartmenusBootstrapJs?action=raw&ctype=text/javascript"></script> | ||
+ | |||
+ | |||
+ | |||
+ | <script> | ||
+ | jQuery(document).ready(function($) { | ||
+ | |||
+ | //Initial load of page | ||
+ | $(document).ready(sizeContent); | ||
+ | //Every resize of window | ||
+ | $(window).resize(sizeContent); | ||
+ | //Dynamically assign height | ||
+ | function sizeContent() { | ||
+ | var newHeight = $(window).height() * 0.6 + "px"; | ||
+ | $(".full_image").css("height", newHeight); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | }); | ||
+ | |||
+ | |||
+ | </script> | ||
Revision as of 15:31, 15 September 2015