Team:ETH Zurich/data

From 2014.igem.org

(Difference between revisions)
Line 47: Line 47:
     var imgWidth = container.width();
     var imgWidth = container.width();
-
   $( "#map" ).each(function() {
+
   $( "#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);   
Line 54: Line 54:
}
}
-
 
$(document).ready(function(){
$(document).ready(function(){
-
 
+
  $('#map').mapster({
  $('#map').mapster({
-
     fillColor: #FFFFFF,
+
     fillColor: FFFFFF,
     fillOpacity: 0.5,
     fillOpacity: 0.5,
     isSelectable: false,
     isSelectable: false,
-
     clickNavigate: true
+
     clickNavigate: true,
   });
   });
 +
Line 72: Line 72:
   });
   });
resize(true);
resize(true);
 +
});
});
 +
</script>
</script>
</html>
</html>

Revision as of 16:34, 12 October 2014

iGEM ETH Zurich 2014