Team:KIT-Kyoto/Test

From 2014.igem.org

(Difference between revisions)
Line 162: Line 162:
<script type="text/javascript">
<script type="text/javascript">
$(function(){  
$(function(){  
 +
var topimg = function(){
 +
var w = $("#container").width;
 +
var w1 = 1920;
 +
var h1 = 300;
 +
var imgh;
 +
$(".timg").css({width:w});
 +
imgh = w*w1/h1;
 +
$(".timg").css({height:imgh});
 +
}
 +
$(function(){
 +
topimg();
 +
$(window).resize(topimg);
 +
});
    
    

Revision as of 16:42, 10 October 2014


kit