Difference between revisions of "Team:Fudan-CHINA"

Line 47: Line 47:
 
var bgPicHeight=$('.bgPic').height();
 
var bgPicHeight=$('.bgPic').height();
 
var stepWidth=$('#step').width();
 
var stepWidth=$('#step').width();
var stepHeight=$('#step').height();
 
var stepY = $('#step').offset().top;
 
 
var fnWidth=$('#fullName').width();
 
var fnWidth=$('#fullName').width();
 
$("#step").css("left",0.5*(winWidth-stepWidth));
 
$("#step").css("left",0.5*(winWidth-stepWidth));
 
$("#step").css("top",0.3*bgPicHeight);
 
$("#step").css("top",0.3*bgPicHeight);
 +
    var stepHeight=$('#step').height();
 +
var stepY = $('#step').offset().top;
 
$("#fullName").css("left",0.5*(winWidth-fnWidth));
 
$("#fullName").css("left",0.5*(winWidth-fnWidth));
 
$("#fullName").css("top",stepY+1.2*stepHeight);
 
$("#fullName").css("top",stepY+1.2*stepHeight);
Line 59: Line 59:
 
var bgPicHeight=$('.bgPic').height();
 
var bgPicHeight=$('.bgPic').height();
 
var stepWidth=$('#step').width();
 
var stepWidth=$('#step').width();
var stepHeight=$('#step').height();
 
var stepY = $('#step').offset().top;
 
 
var fnWidth=$('#fullName').width();
 
var fnWidth=$('#fullName').width();
 
$("#step").css("left",0.5*(winWidth-stepWidth));
 
$("#step").css("left",0.5*(winWidth-stepWidth));
 
$("#step").css("top",0.3*bgPicHeight);
 
$("#step").css("top",0.3*bgPicHeight);
 +
    var stepHeight=$('#step').height();
 +
var stepY = $('#step').offset().top;
 
$("#fullName").css("left",0.5*(winWidth-fnWidth));
 
$("#fullName").css("left",0.5*(winWidth-fnWidth));
 
$("#fullName").css("top",stepY+1.2*stepHeight);
 
$("#fullName").css("top",stepY+1.2*stepHeight);

Revision as of 14:21, 20 September 2018

Synthetic Transducer Engineering Platform