Team:KIT-Kyoto/Test

From 2014.igem.org

(Difference between revisions)
Line 149: Line 149:
}
}
.show,.hide{
.show,.hide{
 +
width:100%;
 +
height:100%;
position:absolute;
position:absolute;
top:0;
top:0;
Line 157: Line 159:
<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:40, 10 October 2014


kit