Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
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){ | ||
+ | var mt = function(){ | ||
+ | var tw = $('.main-contents').width(); | ||
+ | $('.m_table,.member_box_before,.member_box_after,.member_img_profile').css({width:tw}); | ||
+ | } | ||
+ | $(function(){ | ||
+ | mt(); | ||
+ | $(window).resize(mt); | ||
+ | }); | ||
+ | |||
$(".m_menu").css("display","none"); | $(".m_menu").css("display","none"); | ||
$(".button-toggle").on("click", function() { | $(".button-toggle").on("click", function() { | ||
Line 282: | Line 291: | ||
</style> | </style> | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</head> | </head> |
Revision as of 17:50, 11 October 2014