Difference between revisions of "Dev/Results"

(Copied in a lot of Randy's source, radically shortened)
(Removed index column stuff. Plugged in AJAX data source. Hope it works.)
Line 11: Line 11:
 
             '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
 +
            'ajax': 'https://igem.org/awards/json_dump.cgi',
 +
            'columns': [
 +
            {'data': 'team_name'},
 +
            {'data': 'region'},
 +
            {'data': 'section'},
 +
            {'data': 'medal'}
 +
            ],
 
//'scrollY':        '2000px',
 
//'scrollY':        '2000px',
 
//'scrollCollapse': true,
 
//'scrollCollapse': true,
 
//'paging':        true,
 
//'paging':        true,
 
            // Code to implement an index column
 
'columnDefs': [ {
 
'searchable': false,
 
'orderable': false,
 
'targets': 0
 
} ],
 
'order': [[ 1, 'asc' ]]
 
 
} );  // close DataTable
 
} );  // close DataTable
 
t.on( 'order.dt search.dt', function () {
 
    t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
 
cell.innerHTML = i+1;
 
    } );
 
} ).draw();
 
  
 
         jQuery('#table_team').addClass('hover');
 
         jQuery('#table_team').addClass('hover');
Line 53: Line 47:
 
<THEAD>
 
<THEAD>
 
<TR>
 
<TR>
<TH></TH>
+
<TH>Team</TH>
<TH>Team (wiki)</TH>
+
 
<TH>Region</TH>
 
<TH>Region</TH>
<TH>Country</TH>
 
<TH>Track</TH>
 
 
<TH>Section</TH>
 
<TH>Section</TH>
<TH>Size</TH>
+
<TH>Medal</TH>
<TH>Status</TH>
+
 
</TR>
 
</TR>
 
</THEAD>
 
</THEAD>
<TBODY>
 
<TR>
 
<TD></TD>
 
<TD><A href="https://2015.igem.org/Team:Aachen" class="team_name">Aachen</A></TD>
 
<TD data-order="Europe">Europe</TD>
 
<TD data-order="Germany">Germany</TD>
 
<TD data-order="Manufacturing">Manufacturing</TD>
 
<TD data-order="Overgrad">Overgrad</TD>
 
<TD data-order="24" style="text-align:right;padding-right:15px;"><A href="https://igem.org/Team.cgi?team_id=1585">24</A></TD>
 
<TD data-order="Accepted"><A href="https://igem.org/Team.cgi?team_id=1585">Accepted</A></TD>
 
</TR>
 
</TBODY>
 
 
</TABLE>
 
</TABLE>
  

Revision as of 14:56, 23 September 2015

Comprehensive Results from iGEM 2015

This page requires Javascript. Please enable Javascript in your browser, then reload this page.

(This is where there were links to change region/year/etc. For me, I'd probably have links to quickly view award winners, all teams, and maybe a couple other categories)

Team Region Section Medal