Team:ETH Zurich/slidermapchip

From 2014.igem.org

(Difference between revisions)
Line 47: Line 47:
     var imgWidth = container.width();
     var imgWidth = container.width();
-
   $( "#map").each(function() {
+
   $( "#map2").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 18:47, 17 October 2014