Team:KIT-Kyoto/Test
From 2014.igem.org
(Difference between revisions)
Line 119: | Line 119: | ||
margin:0; | margin:0; | ||
position:relative; | position:relative; | ||
- | |||
- | |||
- | |||
} | } | ||
Line 145: | Line 142: | ||
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(function(){ | + | $(function(){ |
+ | var topimg = function(){ | ||
+ | var _w = $("#container").width; | ||
+ | $(".show,.hide").css({width:_w}); | ||
+ | var _h = $(".show").height(); | ||
+ | $(".topmenu li").css({height:_h}); | ||
+ | } | ||
+ | $(function(){ | ||
+ | topimg(); | ||
+ | $(window).resize(topimg); | ||
+ | }); | ||
+ | |||
+ | |||
var ua = navigator.userAgent; | var ua = navigator.userAgent; | ||
if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 || ua.indexOf('BlackBerry') > 0 || ua.indexOf('Windows Phone') > 0){ | if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0 || ua.indexOf('BlackBerry') > 0 || ua.indexOf('Windows Phone') > 0){ |
Revision as of 15:33, 10 October 2014