Team:ETH Zurich/modeling/overview
From 2014.igem.org
(Difference between revisions)
Line 49: | Line 49: | ||
var imgWidth = container.width(); | var imgWidth = container.width(); | ||
- | $( "# | + | $( "#map" ).each(function() { |
$(this).css('height', 'auto', 'width', 'auto'); | $(this).css('height', 'auto', 'width', 'auto'); | ||
$(this).mapster('resize',Math.min(imgWidth, $(this).naturalWidth()) ,0,0); | $(this).mapster('resize',Math.min(imgWidth, $(this).naturalWidth()) ,0,0); |