Team:ETH Zurich/modeling/overview

From 2014.igem.org

(Difference between revisions)
Line 4: Line 4:
<script type="text/javascript">
<script type="text/javascript">
-
     window.onresize = function() { $('img').mapster('resize',$(window).width()*0.8); };  
+
     window.onresize = function() { onWindowResize(); };  
</script>
</script>
<article>
<article>
-
<img usemap="#map4" id="map4" src="http://www.image-maps.com/m/private/0/951lqn07g2eo21sr8na25lhl00_modeling-overview.png" width="100%" style="max-width: 920px"/>
+
<center id="article">
 +
<img usemap="#map4" id="map4" src="http://www.image-maps.com/m/private/0/951lqn07g2eo21sr8na25lhl00_modeling-overview.png" style="width:100%;" />
<map id="map4" name="map4">
<map id="map4" name="map4">
<area  alt="" title="" href="https://2014.igem.org/Team:ETH_Zurich/modeling/qs" shape="rect" coords="7,82,367,531" style="outline:none;" target="_self"    />
<area  alt="" title="" href="https://2014.igem.org/Team:ETH_Zurich/modeling/qs" shape="rect" coords="7,82,367,531" style="outline:none;" target="_self"    />
Line 17: Line 18:
<area shape="rect" coords="918,1681,920,1683" alt="Image Map" style="outline:none;" title="Image Map" href="http://www.image-maps.com/index.php?aff=mapped_users_33863" />
<area shape="rect" coords="918,1681,920,1683" alt="Image Map" style="outline:none;" title="Image Map" href="http://www.image-maps.com/index.php?aff=mapped_users_33863" />
</map>
</map>
 +
</center>
</article>
</article>
Line 61: Line 63:
function resize(initial) {
function resize(initial) {
-
 
-
if (navigator.userAgent.match(/msie/i))
 
-
{
 
-
    if ($("#bxsliderText").parent().css("height") != $("#bxslider").parent().css("height"))
 
-
        setTimeout(function() {$( "#bxsliderText" ).parent().css({"height": $("#bxslider").parent().css("height")});}, 100);
 
-
}
 
-
 
if (!initial)
if (!initial)
{
{
-
     var container =  $('#bxslider > li');
+
     var container =  $('#article');
     var imgWidth = container.width();
     var imgWidth = container.width();
Line 77: Line 72:
       $(this).mapster('resize',Math.min(imgWidth, $(this).naturalWidth()) ,0,0);   
       $(this).mapster('resize',Math.min(imgWidth, $(this).naturalWidth()) ,0,0);   
   });
   });
 +
 +
    alert('Blah: ' + imgWidth);
}
}

Revision as of 18:08, 29 September 2014

iGEM ETH Zurich 2014