Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 161: | Line 161: | ||
var topimg = function(){ | var topimg = function(){ | ||
var w = $("#container").width; | var w = $("#container").width; | ||
- | $("timg").css({width:w}); | + | var w1 = 1920; |
- | + | var h1 = 300; | |
- | w * | + | var imgh; |
- | $(".timg").css({height: | + | $(".timg").css({width:w}); |
+ | imgh = w * w1 / h1; | ||
+ | $(".timg").css({height:imgh}); | ||
} | } | ||
$(function(){ | $(function(){ |
Revision as of 16:39, 10 October 2014