Difference between revisions of "Dev/Results"
(HAHA you know what, the team list DOESN'T GIVE THE TRACK) |
(cleaned up -- deleted old commented-out code) |
||
Line 6: | Line 6: | ||
<style type="text/css"> | <style type="text/css"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
#table_team tbody img { | #table_team tbody img { | ||
padding: 0px; | padding: 0px; | ||
margin-left: auto; | margin-left: auto; | ||
− | margin-right: auto; | + | margin-right: auto; /* **I can't get them to center, for some reason*/ |
} | } | ||
</style> | </style> | ||
Line 34: | Line 26: | ||
'<p>' + | '<p>' + | ||
// 'Track: <b>' + data.track + | // 'Track: <b>' + data.track + | ||
− | // '</b> | ' + | + | // '</b> | ' + //**Be nice to show the track but i have no API access to that |
'Region: <b>' + data.region + | 'Region: <b>' + data.region + | ||
'</b> | ' + | '</b> | ' + | ||
Line 53: | Line 45: | ||
function parseTeamsToAwards(arrayOfTeams, extraTeamInfo) { | function parseTeamsToAwards(arrayOfTeams, extraTeamInfo) { | ||
var arrayOfTeamAwards = []; | var arrayOfTeamAwards = []; | ||
− | |||
for (i = 0; i < arrayOfTeams.length; i++) { | for (i = 0; i < arrayOfTeams.length; i++) { | ||
var teamObj = jQuery.extend(arrayOfTeams[i], extraTeamInfo[i]); | var teamObj = jQuery.extend(arrayOfTeams[i], extraTeamInfo[i]); | ||
Line 80: | Line 71: | ||
timeout: 30000, | timeout: 30000, | ||
dataType: "json", | dataType: "json", | ||
− | data: {command: "get_team_list", year: currentYear}, | + | data: {command: "get_team_list", year: currentYear}, |
error: function(jqxhr, textStatus, errorThrown) { | error: function(jqxhr, textStatus, errorThrown) { | ||
alert("Failed to get list of teams. look at var teamsRequest"); | alert("Failed to get list of teams. look at var teamsRequest"); | ||
Line 110: | Line 101: | ||
'data': arrayOfTeamAwards, | 'data': arrayOfTeamAwards, | ||
'columns': [ | 'columns': [ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{ | { | ||
'data': function(row, type, val, meta) { | 'data': function(row, type, val, meta) { | ||
Line 135: | Line 120: | ||
} | } | ||
}, | }, | ||
− | |||
{ | { | ||
'data': function(row, type, val, meta) { | 'data': function(row, type, val, meta) { | ||
Line 187: | Line 171: | ||
<THEAD> | <THEAD> | ||
<TR> | <TR> | ||
− | |||
<TH></TH> | <TH></TH> | ||
<TH>Team</TH> | <TH>Team</TH> |
Revision as of 20:42, 23 September 2015
Comprehensive Results from iGEM
View: [All Teams] [Award Winners] | [Africa] [Asia] [Europe] [Latin America][other?]
Team | Award |
---|