Team:ETH Zurich/labblog/buttons
From 2014.igem.org
(Difference between revisions)
Line 47: | Line 47: | ||
var imgWidth = 0.8*container.width(); | var imgWidth = 0.8*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); |
Revision as of 21:53, 7 October 2014