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 159: Line 161:
var topimg = function(){
var topimg = function(){
var w = $("#container").width;
var w = $("#container").width;
-
$(".show img,.hide img").css({width:w});
+
$("timg").css({width:w});
-
var _h = $(".show").height();
+
w /= 1920;
-
$(".timg").css({height:_h});
+
w *= 300;
 +
$(".timg").css({height:w});
}
}
$(function(){
$(function(){

Revision as of 16:33, 10 October 2014


kit