Difference between revisions of "Template:ReadingTeamFunctions"

(Created page with "<html> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function buildTeamGrid(){ var index = 0; var names = ["Benny Bostock", "Chris Tucker", "Emily Capes", "Izzah Elahi", "Matt Shepher...")
 
Line 3: Line 3:
 
<HEAD>
 
<HEAD>
 
<SCRIPT LANGUAGE="JavaScript">
 
<SCRIPT LANGUAGE="JavaScript">
 +
 +
function changeBioContent(index){
 +
//add a </br> to break the line, also do not include " without a \ before, eg: \"
 +
 +
var bennyBio = "<p style=\"font-size:160%\">Benny Bostock </br> Degree: Biochemistry 1<sup>st</sup> year </br>Profile: </p>";
 +
var chrisBio = "<p style=\"font-size:160%\">Chris Tucker </br> Degree: Biochemistry 1<sup>st</sup> year </br> Profile: Chris is an avid computer gamer. He also has a shisha pipe. Nuff said.</p>";
 +
var emilyBio = "<p style=\"font-size:160%\">Emily Capes </br> Degree: Biochemistry 1<sup>st</sup> year </br> Profile:  Emily is very helpful and always offers people lifts in her car. </br> Do not accept this, she has no sense of direction or time. </br> Consequently, you will not make it to your destination.</p>";
 +
var izzahBio = "<p style=\"font-size:160%\">Izzah Elahi </br> Degree: Biological Sciences 1<sup>st</sup> year </br> Profile: </p>";
 +
var mattBio = "<p style=\"font-size:160%\">Matt Shepherd </br> Degree: Microbiology 1<sup>st</sup> year </br> Profile:</p>";
 +
var nasserBio = "<p style=\"font-size:160%\">Nasser Al-Farhan </br> Degree: Psychology and Neuroscience 1<sup>st</sup> year, previously Computer science </br> Profile: </p>";
 +
var peteRBio = "<p style=\"font-size:160%\">Pete Roe </br> Degree: Computer Science 1<sup>st</sup> year </br> Profile: Best coder in the universe. Most commonly found: Near/around computer or in the gym. </br> Life Aim: To be in both places at once</p>";
 +
var PeteWHBio = "<p style=\"font-size:160%\">Pete Whitehead </br> Degree: Biomedical Sciences 1<sup>st</sup> year </br> Profile: Can't hold alcohol. When drunk he will imitate an aeroplane, sounds effects included. </p>";
 +
var tomBBio = "<p style=\"font-size:160%\">Tom Biggs </br> Degree: Biological sciences 2<sup>nd</sup> year </br> Best known for: His Impeccable punctuality </br> Profile: Tom is our resident Genetics guru, and is an invaluable member of the team. </br> Unfortunately, he leads a sheltered life, and has not discovered the wonders of modern time-keeping. Consequently he is late, without fail, to nearly everything we do.</p>";
 +
var tomWLBio = "<p style=\"font-size:160%\">Tom Ward-Leggat </br> Degree: Microbiology 1<sup>st</sup> year </br> Profile: </p>";
 +
var bios = [bennyBio, chrisBio, emilyBio, izzahBio, mattBio, nasserBio, peteRBio, PeteWHBio, tomBBio, tomWLBio];
 +
document.getElementById("bioframe").innerHTML= bios[index];
 +
}
 +
 
function buildTeamGrid(){
 
function buildTeamGrid(){
 
var index = 0;
 
var index = 0;

Revision as of 09:26, 5 August 2015