Team:UCL/Science
From 2014.igem.org
(Difference between revisions)
Lewismoffat (Talk | contribs) |
Lewismoffat (Talk | contribs) |
||
Line 122: | Line 122: | ||
<!--=================Javascript===================--> | <!--=================Javascript===================--> | ||
<script> | <script> | ||
- | var wall = new freewall( | + | $(function() { |
- | + | $("#grid").each(function() { | |
- | + | var wall = new freewall(this); | |
- | + | wall.reset({ | |
- | + | selector: '.size320', | |
- | + | cellW: 320, | |
- | + | cellH: 320, | |
- | wall. | + | onResize: function() { |
- | } | + | wall.fitWidth(); |
+ | } | ||
+ | }); | ||
+ | wall.fitWidth(); | ||
+ | }); | ||
+ | $(window).trigger("resize"); | ||
}); | }); | ||
- | |||
- | |||
- | |||
</script> | </script> | ||
</html> | </html> | ||
{{:Team:UCL/Template:footerx}} | {{:Team:UCL/Template:footerx}} |
Revision as of 14:53, 17 October 2014