Difference between revisions of "Dev/Results"

(made the datatable a global var)
(Let's try to make toggles work)
Line 21: Line 21:
 
#table_team tbody img {
 
#table_team tbody img {
 
padding: 0px;
 
padding: 0px;
 +
}
 +
a.toggle-selected {
 +
color: red;
 
}
 
}
 
</style>
 
</style>
Line 212: Line 215:
 
}
 
}
 
} );
 
} );
 +
 +
//General click binding for all toggle elements
 +
$("#contentWrap").on('click', '.toggle a', function(event) {
 +
$(this).addClass('toggle-selected');
 +
$(this).siblings().removeClass('toggle-selected');
 +
});
 
 
 
$("#view-all-teams").click(function(event){
 
$("#view-all-teams").click(function(event){
 
console.log("view all teams");
 
console.log("view all teams");
t.search('').draw();
+
t.column(2).search('').draw();
 
return false;
 
return false;
 
});
 
});
 
$("#view-award-winners").click(function(event) {
 
$("#view-award-winners").click(function(event) {
 
console.log("view award winners");
 
console.log("view award winners");
t.columns(2).search('.*', true, false).draw();
+
t.column(2).search('.*', true, false).draw();
 
return false;
 
return false;
 
});
 
});

Revision as of 23:27, 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.