Difference between revisions of "Team:Reading/Team"
Line 4: | Line 4: | ||
<SCRIPT LANGUAGE="JavaScript"> | <SCRIPT LANGUAGE="JavaScript"> | ||
− | + | //each of these are the main headings for the menu, | |
+ | //lists with one entry are basic links | ||
+ | //links with two or more are submenus, the first entry is not a link but is displayed | ||
+ | //each entry must have a matching entry in the list with the "ad" prefix. | ||
− | + | var home = ["Home"]; | |
− | + | var team = ["Team"]; | |
− | + | var project = ["Project", "Description", "Experiment And Protocols", "Results", "Design"]; | |
− | + | var parts = ["Parts", "Team Parts", "Basic Parts", "Composite Parts", "Part Collection"]; | |
− | + | var notebook = ["Lab book"]; | |
− | + | var attributions = ["Attributions", "Attributions", "Collaborations", "Human Practices"]; | |
− | + | var saftey = ["Saftey"]; | |
− | + | var modeling = ["Modelling"]; | |
− | + | var measument = ["Measument"]; | |
− | + | var software = ["Software"]; | |
− | + | var entrepreneurship = ["Application"]; | |
− | + | var pagenames = [home, team, project, parts, notebook, attributions, saftey, modeling, measument, software, entrepreneurship]; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | var adhome = ["Reading"]; | |
− | + | var adteam = ["Reading/Team"]; | |
− | + | var adproject = ["Reading/Description", "Reading/Experiments", "Reading/Results", "Reading/Design"]; | |
− | + | var adparts = ["Reading/TeamParts", "Reading/BasicParts", "Reading/CompositeParts", "Reading/PartCollection"]; | |
− | + | var adnotebook = ["Reading/Notebook"]; | |
− | + | var adattributions = ["Reading/Attributions", "Reading/Collaborations", "Reading/HumanPractices"]; | |
− | + | var adsaftey = ["Reading/saftey"]; | |
− | + | var admodeling = ["Reading/Modeling"]; | |
− | + | var admeasument = ["Reading/Measument"]; | |
− | + | var adsoftware = ["Reading/Software"]; | |
− | + | var adentrepreneurship = ["Reading/Entrepreneurship"]; | |
− | + | var address = [adhome, adteam, adproject, adparts, adnotebook, adattributions,adsaftey, admodeling, admeasument, adsoftware, adentrepreneurship]; | |
− | + | var menuactive = 0; | |
− | + | var menucount = 0; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
function buildMenu(){ | function buildMenu(){ | ||
Line 103: | Line 82: | ||
Button.style.Color = '#ffffff'; | Button.style.Color = '#ffffff'; | ||
menuactive = 0; | menuactive = 0; | ||
+ | } | ||
+ | |||
+ | function buildPage(){ | ||
+ | buildMenu(); | ||
+ | buildTeamGrid(); | ||
+ | setInterval(function(){ | ||
+ | if(menuactive <= 0){ | ||
+ | menucount = menucount - 1; | ||
+ | if(menucount <= 0){ | ||
+ | document.getElementById("SubMenu").style.visibility = "hidden"; | ||
+ | } | ||
+ | } | ||
+ | },10); | ||
+ | } | ||
+ | |||
+ | function buildTeamGrid(){ | ||
+ | var index = 0; | ||
+ | var names = ["Benny Bostock", "Chris Tucker", "Emily Capes", "Izzah Elahi", "Matt Shepherd", "Nasser Al-Farhan", "Pete Roe", "Pete Whitehead", "Tom Biggs", "Thomas Ward-Leggat", "Jenny Pasang"]; | ||
+ | var pictureName = ["/c/c2/BennyBostock.jpg", "/e/ea/ChrisTucker.jpg", "/0/02/EmilyMichelleCapes.jpg", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png", "/4/41/Blankprofile.png"]; | ||
+ | var teamHTML = '<table style="width:100%; color:#05a4ff; background-color:#e3e3e3; border-spacing: 25px;">'; | ||
+ | var newline = true; | ||
+ | while(newline){ | ||
+ | teamHTML += '<tr>'; | ||
+ | for(i2 = 0; i2 < 3; i2++){ | ||
+ | if(index < names.length){teamHTML += '<td align="center"><b>' + names[index] + '</b><div style="border-style:solid; border-color:#ffffff; border-width:5px; border-radius:50px; height: 100px; width: 150px; background-size:cover; background-image:url(https://static.igem.org/mediawiki/2015' + pictureName[index] + ');" onmouseover="changeBioContent(' + index + ')"></div></td>'; | ||
+ | index += 1;} | ||
+ | else{ | ||
+ | newline = false; | ||
+ | } | ||
+ | } | ||
+ | teamHTML += '</tr>'; | ||
+ | } | ||
+ | teamHTML += '</table>'; | ||
+ | document.getElementById("teamtable").innerHTML= teamHTML; | ||
} | } | ||
Revision as of 22:42, 24 July 2015
.
|
Roll over the images to see the team member bio and extra photos in here. |