Difference between revisions of "Team:Tokyo Tech/Team"

Line 195: Line 195:
 
     // The function to write profile
 
     // The function to write profile
 
     function write_profile(index){
 
     function write_profile(index){
var out = '<table rules="none" border="0">'
+
// Despite table, use div
+ '<tr><td class="profile_header">Name:</td><td>' + profiles[index][0] + '</td></tr>'
+
var has_course = (profiles[index][3] != null);
+ '<tr><td class="profile_header">School:</td><td>' + profiles[index][1] + '</td></tr>'
+
var out = '<div class="table">'
+ '<tr><td class="profile_header">Department:</td><td>' + profiles[index][2] + '</td></tr>';
+
+ '<div class="table_left">Name:<br />School:<br />Department:';
if(profiles[index][3] != null){
+
if(has_course){
    out += '<tr><td class="profile_header">Cource:</td><td>' + profiles[index][3] + '</td></tr>';
+
    out += '<br />Course:';
 
}
 
}
out += '</table>';
+
out += '</div><!-- /table_left -->';
 +
out += '<div class="table_right">'
 +
    +  profiles[index][0] + '<br />' + profiles[index][1] + '<br />' + profiles[index][2];
 +
if(has_course){
 +
    out += '<br />' + profiles[index][3];
 +
}
 +
out += '</div><!-- /table_right --><div class="table_clear"></div><!-- /table_clear --></div><!-- /table -->';
 
 
 
document.getElementById("member_profile").innerHTML = out;
 
document.getElementById("member_profile").innerHTML = out;

Revision as of 08:49, 18 August 2016

About Us

Team Members

Instructors