Line 476: | Line 476: | ||
resizeVid(); | resizeVid(); | ||
− | $(window).resize( | + | $(window).resize(resizeVid()); |
− | + | ||
− | + | ||
function resizeVid() { | function resizeVid() { | ||
Line 485: | Line 483: | ||
height = $(document).outerHeight(true); | height = $(document).outerHeight(true); | ||
width = $(document).outerWidth(true); | width = $(document).outerWidth(true); | ||
− | ratio = width / height; | + | if (height <= 600) { |
− | + | $('.covervid-video').css('height', 720); | |
− | + | } else { | |
− | + | ratio = width / height; | |
− | + | if (ratio < 1.777777777777) { | |
+ | $('.covervid-video').css('height', height + 20) | ||
+ | } else if (ratio >= 1.777777777777) { | ||
+ | $('.covervid-video').css('width', width + 20) | ||
+ | } | ||
} | } | ||
} | } |
Revision as of 02:53, 11 October 2016
</div> </div>
Outreach
UMaryland iGEM went beyond the laboratory and engaged with nearby universities and the surrounding community about methane, global warming, and synthetic biology