Team:ETH Zurich/labblog/buttons

From 2014.igem.org

(Difference between revisions)
Line 45: Line 45:
{
{
     var container =  $('#container');
     var container =  $('#container');
-
     var imgWidth = container.width();
+
     var imgWidth = 0.8*container.width();
-
   $( "#map" ).each(function() {
+
   $( "#mapTest").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