Difference between revisions of "Dev/Results"
(adjusting text-align and padding) |
(reordered team/medal columns & made it stay sorting by team name by default) |
||
Line 112: | Line 112: | ||
'pageLength': -1, | 'pageLength': -1, | ||
'processing': true, //enable "loading" message | 'processing': true, //enable "loading" message | ||
− | 'order': [[ | + | 'order': [[0, 'asc']], //I think this sorts by team-name by default |
'data': arrayOfTeamAwards, | 'data': arrayOfTeamAwards, | ||
'columns': [ | 'columns': [ | ||
+ | { //Team Name Column | ||
+ | 'data': function(row, type, val, meta) { | ||
+ | if (type == 'display') { | ||
+ | return "<a class='team-info-control' style='cursor: pointer;'>" + row.team_name + "</a>"; | ||
+ | } | ||
+ | else { | ||
+ | return row.team_name; | ||
+ | } | ||
+ | } | ||
+ | }, | ||
{ //Medal Column | { //Medal Column | ||
'width': "10%", | 'width': "10%", | ||
Line 153: | Line 163: | ||
else { | else { | ||
return medals_info[row.medal].html; | return medals_info[row.medal].html; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
} | } | ||
Line 222: | Line 222: | ||
<THEAD> | <THEAD> | ||
<TR> | <TR> | ||
− | |||
<TH>Team</TH> | <TH>Team</TH> | ||
+ | <TH>Medal</TH> | ||
<TH>Award</TH> | <TH>Award</TH> | ||
</TR> | </TR> |
Revision as of 21:41, 23 September 2015
Comprehensive Results from iGEM
View: [All Teams] [Award Winners] | [Africa] [Asia] [Europe] [Latin America][other?]
Team | Medal | Award |
---|---|---|
Please enable JavaScript in your browser to view results. |