Difference between revisions of "Dev/Results"

(moar syntax error)
(Function to make the medal an image)
Line 87: Line 87:
 
},
 
},
 
{'data': 'team_name'},
 
{'data': 'team_name'},
{'data': 'medal'},
+
{
 +
'data': function(row, type, val, meta) {
 +
if (row.medal.toUpperCase() == "GOLD") {
 +
return "<img src='https://igem.org/images/medals/seal_gold.png'>";
 +
}
 +
else if (row.medal.toUpperCase() == "SILVER") {
 +
return "<img src='https://igem.org/images/medals/seal_silver.png'>";
 +
}
 +
else if (row.medal.toUpperCase() == "BRONZE") {
 +
return "<img src='https://igem.org/images/medals/seal_bronze.png'>";
 +
}
 +
else if (row.medal.toUpperCase() == "NO MEDAL") {
 +
return " ";
 +
}
 +
else {
 +
return "<img src='https://igem.org/images/medals/seal_blocked.png'>";
 +
}
 +
}
 +
},
 
{'data': 'award', 'defaultContent': ' '}
 
{'data': 'award', 'defaultContent': ' '}
 
],
 
],

Revision as of 19:02, 23 September 2015

Comprehensive Results from iGEM 2015

View: [All Teams] [Award Winners] [other?]

Team Medal Award