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">
/* Additional style for the +/- buttons */
 
/*td.details-control {
 
background: url('https://igem.org/common/DataTables-1.10.7/examples/resources/details_open.png') no-repeat center center;
 
cursor: pointer;
 
}
 
tr.shown td.details-control {
 
background: url('https://igem.org/common/DataTables-1.10.7/examples/resources/details_close.png') no-repeat center center;
 
}*/
 
 
#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>&nbsp;&nbsp;|&nbsp;&nbsp;' +
+
// '</b>&nbsp;&nbsp;|&nbsp;&nbsp;' + //**Be nice to show the track but i have no API access to that
 
'Region: <b>' + data.region +  
 
'Region: <b>' + data.region +  
 
'</b>&nbsp;&nbsp;|&nbsp;&nbsp;' +  
 
'</b>&nbsp;&nbsp;|&nbsp;&nbsp;' +  
Line 53: Line 45:
 
function parseTeamsToAwards(arrayOfTeams, extraTeamInfo) {
 
function parseTeamsToAwards(arrayOfTeams, extraTeamInfo) {
 
var arrayOfTeamAwards = [];
 
var arrayOfTeamAwards = [];
//arrayOfTeams.forEach(function(teamObj, index, array) {
 
 
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}, //**Make this auto-update itself
+
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': [
// { //Child-table control element
 
// 'className': 'details-control',
 
// 'orderable': false,
 
// 'data': null,
 
// 'defaultContent': ''
 
// },
 
 
{
 
{
 
'data': function(row, type, val, meta) {
 
'data': function(row, type, val, meta) {
Line 135: Line 120:
 
}
 
}
 
},
 
},
//{'data': 'team_name', 'className': 'details-control'},
 
 
{
 
{
 
'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></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