Difference between revisions of "Template:ReadingTeamFunctions"

Line 65: Line 65:
 
var index = 0;
 
var index = 0;
 
var names = ["Hannah </br> Collard", "Samuel </br> Hardy"];
 
var names = ["Hannah </br> Collard", "Samuel </br> Hardy"];
var pictureName = ["/c/c2/BennyBostock.jpg", "/e/ea/ChrisTucker.jpg"];
+
var pictureName = ["/4/41/Blankprofile.png", "/4/41/Blankprofile.png"];
 
var teamHTML = '<table style="width:100%; color:#d8131d;">';
 
var teamHTML = '<table style="width:100%; color:#d8131d;">';
 
var newline = true;
 
var newline = true;
Line 71: Line 71:
 
teamHTML += '<tr>';
 
teamHTML += '<tr>';
 
for(i2 = 0; i2 < 3; i2++){
 
for(i2 = 0; i2 < 3; i2++){
if(index < names.length){teamHTML += '<td valign="bottom" align="left"><p style=\"font-size:130%\">' + names[index] + '</p><div style="border-style:solid; border-color:#ffffff; border-width:5px; width: 50%; border-radius:100%; height: 0; padding-bottom: 50%; background-size:cover; background-image:url(https://static.igem.org/mediawiki/2015' + pictureName[index] + ');"></div></td>';
+
if(index < names.length){teamHTML += '<td width = "25%" valign="bottom" align="left"><p style=\"font-size:110%\">' + members[index][0] + '</p><div style="border-style:solid; border-color:#ffffff; border-width:5px; width: 75%; border-radius:100%; height: 0; padding-bottom: 75%; background-size:cover; background-image:url(https://static.igem.org/mediawiki/2015' + members[index][1] + ');" onmouseover="changeBioContent(' + index + ')"></div></td>';
 
index += 1;}
 
index += 1;}
 
else{
 
else{

Revision as of 14:47, 18 August 2015