Difference between revisions of "Dev/Results"

(added tbody -- is that where the "Loading..." disappeared to?)
(Turned off deferRender, put alt attributes on the medal images)
Line 80: Line 80:
 
'lengthMenu': [[10, 25, 50, 100, -1],[10, 25, 50, 100, 'All']],
 
'lengthMenu': [[10, 25, 50, 100, -1],[10, 25, 50, 100, 'All']],
 
'pageLength': -1,
 
'pageLength': -1,
'deferRender': true, //improves performance
+
//'deferRender': true, //improves performance
 
'data': arrayOfTeamAwards,
 
'data': arrayOfTeamAwards,
 
'columns': [
 
'columns': [
Line 93: Line 93:
 
'data': function(row, type, val, meta) {
 
'data': function(row, type, val, meta) {
 
if (row.medal.toUpperCase() == "GOLD") {
 
if (row.medal.toUpperCase() == "GOLD") {
return "<img src='https://igem.org/images/medals/seal_gold.png'>";
+
return "<img alt='Gold Medal' src='https://igem.org/images/medals/seal_gold.png'>";
 
}
 
}
 
else if (row.medal.toUpperCase() == "SILVER") {
 
else if (row.medal.toUpperCase() == "SILVER") {
return "<img src='https://igem.org/images/medals/seal_silver.png'>";
+
return "<img alt='Silver Medal' src='https://igem.org/images/medals/seal_silver.png'>";
 
}
 
}
 
else if (row.medal.toUpperCase() == "BRONZE") {
 
else if (row.medal.toUpperCase() == "BRONZE") {
return "<img src='https://igem.org/images/medals/seal_bronze.png'>";
+
return "<img alt='Bronze Medal' src='https://igem.org/images/medals/seal_bronze.png'>";
 
}
 
}
 
else if (row.medal.toUpperCase() == "NO MEDAL") {
 
else if (row.medal.toUpperCase() == "NO MEDAL") {
return "<img src='http://web.mit.edu/kdrinkwa/Public/Pictures/seal_transparent.png'>";
+
return "<img alt='No Medal' src='http://web.mit.edu/kdrinkwa/Public/Pictures/seal_transparent.png'>";
 
}
 
}
 
else {
 
else {
return "<img src='https://igem.org/images/medals/seal_blocked.png'>";
+
return "<img alt='Medal Data Not Available' src='https://igem.org/images/medals/seal_blocked.png'>";
 
}
 
}
 
}
 
}
Line 151: Line 151:
 
<h2>Comprehensive Results from iGEM 2015</h2>
 
<h2>Comprehensive Results from iGEM 2015</h2>
  
<p>View: [All Teams] [Award Winners] [other?]</p>
+
<p>View: <a href="#" id="view-all-teams">[All Teams]</a> <a href="#" id="view-award-winners">[Award Winners]</a> | [Africa] [Asia] [Europe] [Latin America][other?]</p>
  
  

Revision as of 19:33, 23 September 2015

Comprehensive Results from iGEM 2015

View: [All Teams] [Award Winners] | [Africa] [Asia] [Europe] [Latin America][other?]

Team Medal Award