Team:KIT-Kyoto/Modeling

From 2014.igem.org

(Difference between revisions)
Line 156: Line 156:
$(".pdimg2 img,.pdimg3 img").css({width:pd_w1});
$(".pdimg2 img,.pdimg3 img").css({width:pd_w1});
$(".PDs1,.PDs2").css({width:pd_s});
$(".PDs1,.PDs2").css({width:pd_s});
 +
}
 +
 +
var m_pdfix =function(){
 +
var mpd_w = $(".main-contents").width();
 +
$(".pdimg1 img,.pdimg2 img,.pdimg3 img").css({width:mpd_w});
}
}
$(function(){
$(function(){
     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){
 +
$(function(){
 +
m_pdfix();
 +
$(window).resize(m_pdfix);
 +
});
 +
}
}else {
}else {
$(function(){
$(function(){

Revision as of 06:10, 13 October 2014